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
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.