AI Smart Liquidity Signal SMC Gold ๐

Description:
This indicator is a comprehensive technical analysis tool designed to identify potential trading opportunities. It combines two core methodologies: a primary signal engine based on pivot trendline breakouts, and a sophisticated confirmation layer using both classic technical indicators and modern Smart Money Concepts (SMC). This document provides a detailed, transparent explanation of all underlying logic and calculations.
1. Core Engine: Pivot-Based Liquidity Trendline Signals
The indicator's foundational signal is generated from a custom method we call "Liquidity Trendlines," which aims to identify potential shifts in momentum.
How It Works:
The script first identifies significant swing points using ta.pivothigh() and ta.pivotlow().
It then draws a trendline connecting consecutive pivot points (e.g., two pivot highs).
A "Liquidity Breakout" signal (liquidity_plup for buy, liquidity_pldn for sell) is generated when the price closes decisively across this trendline, forming the basis for a potential trade.
2. Confirmation Layer 1: Classic Technical Filters
A raw Liquidity Breakout signal is only a starting point. To enhance reliability, it can be passed through a series of user-enabled classic filters. A signal is only considered valid if all active filter conditions are met.
General & Smart Trend Filters: These filters use a combination of moving averages (50, 100, 200 EMA), DMI (ADX), and market structure (higher highs/lower lows) to define the short-term and long-term trend. A signal must align with the calculated trend direction to be valid.
RSI & MACD Filters: These are used for momentum confirmation. For example, a buy signal can be configured to be valid only if the MACD line is above its signal line and the RSI is below a certain threshold.
ATR (Volatility) Filter: Ensures trades are considered only when market volatility is sufficient, calculated as the ATR value relative to the closing price.
Support & Resistance (S&R) Filter: Blocks buy signals forming too close to a resistance zone and sell signals near a support zone.
Higher Timeframe (HTF) Filter: Provides confluence by checking that the trend on higher timeframes (e.g., 1H, 4H) aligns with the signal on the current timeframe.
3. Confirmation Layer 2: Smart Money Concepts (SMC) Filters
This optional but powerful layer analyzes price action for signs of institutional activity. When enabled, the base signal must also satisfy all active SMC conditions.
Break of Structure (BoS):
Logic: Confirms a trend continuation. A buy signal is validated if the price has recently broken above a significant prior swing high (bosUp). A sell signal is validated by a break below a prior swing low (bosDown).
Change of Character (ChoCh):
Logic: Identifies a potential trend reversal. It becomes valid when a pattern of falling lows is broken by a new high (chochUp), or vice-versa, adding strength to a reversal signal.
Liquidity Sweep:
Logic: A "sweep" suggests that liquidity has been taken. A buy signal is confirmed if the price recently swept below a prior low and then closed bullishly (sweepUp).
Supply/Demand Zone Filter:
Logic: The script identifies simple supply and demand zones based on the current high/low. It then checks if a signal is occurring in a "safe" area (i.e., a buy signal is not inside a supply zone).
Order Block (OB) / FVG Filter:
Logic: This is a simplified filter that checks the strength of the signal candle's body. A valid order block is considered to have a strong real body, and the script checks if the candle's body-to-range ratio (obValid) meets a minimum threshold.
4. ICT-Based Structure & Premium/Discount Zones
Separate from the filtering system, the indicator also includes a module for plotting key ICT (Inner Circle Trader) concepts, which can be used for manual analysis.
ICT Market Structure: It plots labels for Change of Character (CHoCH), Shift in Market Structure (SMS), and Break of Market Structure (BMS) based on a Donchian-channel-like logic that tracks highs and lows over a set period.
ICT Premium & Discount Zones: When enabled, it draws zones on the chart corresponding to Premium (for selling), Discount (for buying), and Equilibrium levels, calculated based on the range between the highest high and lowest low over the ICT period.
5. Risk Management & Additional Features
TP/SL Calculations: Automatically calculates Take Profit (TP) and Stop Loss (SL) levels for every valid signal based on the Average True Range (ATR).
Multi-Timeframe (MTF) Scanner: A dashboard that monitors and displays the final Buy/Sell signal status across multiple timeframes.
Session Filter & Alerts: Allows for restricting trades to specific market sessions and configuring alerts for any valid signal.
By combining pivot-based breakout detection with these rigorous, multi-layered confirmation processes, this indicator provides a structured and transparent approach to identifying trading opportunities.
Skrip jemputan sahaja
Hanya pengguna yang diluluskan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Ini selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi terus shadyshaban.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diluluskan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Ini selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi terus shadyshaban.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.