OPEN-SOURCE SCRIPT
NQ 5m Structure

This indicator combines four core SMC/ICT concepts into one clean, minimal overlay — designed for NQ and MNQ futures traders on the 5m chart.
Swing Rays
Confirms pivot highs and lows using configurable swing length. Each confirmed point prints a short dashed ray extending right — marking unmitigated structural levels without cluttering the chart with infinite lines.
Auto Fib Retracement
Automatically anchors a Fibonacci retracement to the most recent confirmed swing leg. Draws 0 / 0.382 / 0.5 / 0.618 / 1 levels and updates direction based on whether the last pivot was a high or low. Use the 0.618 zone for OTE entries in line with bias.
Dual Timeframe EMA Bias
Plots EMA 20 and EMA 50 on both the current timeframe and a configurable HTF (default 15m). The bias label shows four states:
▲ LONG [15m+5m] — full conviction long
▼ SHORT [15m+5m] — full conviction short
▲ HTF LONG / 5m ▼ — caution, pullback in uptrend
▼ HTF SHORT / 5m ▲ — caution, bounce in downtrend
Liquidity Levels
Detects equal highs (EQH) and equal lows (EQL) within a configurable threshold — the stacked liquidity pools NQ targets before reversing. Equal levels print solid and bright. Regular swing BSL/SSL print faded and dashed. When a level is swept (wick through, close back) it turns gray with a ✂ tag.
Settings:
Swing Length (default 7 for NQ/MNQ)
Ray Length (default 20)
EMA Fast/Slow (default 20/50)
HTF Timeframe (default 15m)
Fib Extension (default 60 bars)
Equal H/L Threshold % (default 0.05%)
Liquidity Ray Length (default 30)
Recommended Use:
Wait for HTF and LTF bias to agree (green or red label)
Identify nearest EQH or EQL as the draw on liquidity
Wait for price to sweep the level and retrace into the 0.618–0.705 OTE zone
Enter on bullish or bearish candle close confirmation at the fib level
Instruments: NQ, MNQ, MGC, CL, MCL
Timeframe: Best on 5m — use 15m for bias confirmation
Swing Rays
Confirms pivot highs and lows using configurable swing length. Each confirmed point prints a short dashed ray extending right — marking unmitigated structural levels without cluttering the chart with infinite lines.
Auto Fib Retracement
Automatically anchors a Fibonacci retracement to the most recent confirmed swing leg. Draws 0 / 0.382 / 0.5 / 0.618 / 1 levels and updates direction based on whether the last pivot was a high or low. Use the 0.618 zone for OTE entries in line with bias.
Dual Timeframe EMA Bias
Plots EMA 20 and EMA 50 on both the current timeframe and a configurable HTF (default 15m). The bias label shows four states:
▲ LONG [15m+5m] — full conviction long
▼ SHORT [15m+5m] — full conviction short
▲ HTF LONG / 5m ▼ — caution, pullback in uptrend
▼ HTF SHORT / 5m ▲ — caution, bounce in downtrend
Liquidity Levels
Detects equal highs (EQH) and equal lows (EQL) within a configurable threshold — the stacked liquidity pools NQ targets before reversing. Equal levels print solid and bright. Regular swing BSL/SSL print faded and dashed. When a level is swept (wick through, close back) it turns gray with a ✂ tag.
Settings:
Swing Length (default 7 for NQ/MNQ)
Ray Length (default 20)
EMA Fast/Slow (default 20/50)
HTF Timeframe (default 15m)
Fib Extension (default 60 bars)
Equal H/L Threshold % (default 0.05%)
Liquidity Ray Length (default 30)
Recommended Use:
Wait for HTF and LTF bias to agree (green or red label)
Identify nearest EQH or EQL as the draw on liquidity
Wait for price to sweep the level and retrace into the 0.618–0.705 OTE zone
Enter on bullish or bearish candle close confirmation at the fib level
Instruments: NQ, MNQ, MGC, CL, MCL
Timeframe: Best on 5m — use 15m for bias confirmation
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.