//@version=6 indicator(“NQ Smart Money 0DTE PRO | Strict Aggre

//@version=6 indicator(“NQ Smart Money 0DTE PRO | Strict Aggre

US Tech 100 CAPITALCOM:NAS100



//@version=6
indicator(“NQ Smart Money 0DTE PRO | Strict Aggressive”, overlay=true, max_labels_count=500, max_lines_count=100)

//====================================================
// 1. INPUTS
//====================================================

groupTrend = “01 – Multi Timeframe Trend”
tf4h = input.timeframe(“240”, “4H Timeframe”, group=groupTrend)
tf1h = input.timeframe(“60”, “1H Timeframe”, group=groupTrend)
tf15 = input.timeframe(“15”, “15M Timeframe”, group=groupTrend)

groupSignal = “02 – Signal Settings”
swingLen = input.int(10, “Liquidity Swing Length”, minval=3, group=groupSignal)
mssLen = input.int(5, “MSS Lookback”, minval=2, group=groupSignal)
sweepWindow = input.int(8, “Sweep Valid Bars”, minval=1, group=groupSignal)
fvgWindow = input.int(4, “FVG Valid Bars”, minval=1, group=groupSignal)
volMult = input.float(1.30, “Volume Multiplier”, minval=1.0, step=0.05, group=groupSignal)
rsiLen = input.int(14, “RSI Length”, group=groupSignal)
rsiBull = input.float(55, “Bullish RSI Minimum”, group=groupSignal)
rsiBear = input.float(45, “Bearish RSI Maximum”, group=groupSignal)
displacementMult = input.float(0.50, “Displacement ATR Multiplier”, step=0.05, group=groupSignal)

groupRisk = “03 – Aggressive Risk Management”
atrLen = input.int(14, “ATR Length”, group=groupRisk)
initialStopATR = input.float(1.20, “Initial Stop ATR”, step=0.10, group=groupRisk)
trailATR = input.float(1.50, “Trailing Stop ATR”, step=0.10, group=groupRisk)
targetR = input.float(3.0, “Profit Target R”, minval=1.0, step=0.25, group=groupRisk)
useTarget = input.bool(true, “Enable Profit Target”, group=groupRisk)
useTrailing = input.bool(true, “Enable ATR Trailing Stop”, group=groupRisk)

groupVisual = “04 – Visual Settings”
showVWAP = input.bool(true, “Show VWAP”, group=groupVisual)
showEMA = input.bool(true, “Show EMA 20/50”, group=groupVisual)
showFVG = input.bool(true, “Show FVG Markers”, group=groupVisual)
showDashboard = input.bool(true, “Show Dashboard”, group=groupVisual)
showLevels = input.bool(true, “Show Entry / Stop / Target”, group=groupVisual)

//====================================================
// 2. MULTI TIMEFRAME TREND
//====================================================

trendFunction() =>
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
close > ema20 and ema20 > ema50

trend4h = request.security(syminfo.tickerid, tf4h, trendFunction(), lookahead=barmerge.lookahead_off)
trend1h = request.security(syminfo.tickerid, tf1h, trendFunction(), lookahead=barmerge.lookahead_off)
trend15Bull = request.security(syminfo.tickerid, tf15, trendFunction(), lookahead=barmerge.lookahead_off)

bearFunction() =>
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
close < ema20 and ema20 < ema50

bear4h = request.security(syminfo.tickerid, tf4h, bearFunction(), lookahead=barmerge.lookahead_off)
bear1h = request.security(syminfo.tickerid, tf1h, bearFunction(), lookahead=barmerge.lookahead_off)
bear15 = request.security(syminfo.tickerid, tf15, bearFunction(), lookahead=barmerge.lookahead_off)

bullTrend = trend4h and trend1h and trend15Bull
bearTrend = bear4h and bear1h and bear15

//====================================================
// 3. VWAP / EMA / VOLUME / RSI / ATR
//====================================================

vwapValue = ta.vwap(hlc3)
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)

rsiValue = ta.rsi(close, rsiLen)
atrValue = ta.atr(atrLen)

volAverage = ta.sma(volume, 20)
highVolume = volume > volAverage * volMult

bullMomentum = close > vwapValue and close > ema20 and ema20 > ema50 and rsiValue >= rsiBull
bearMomentum = close < vwapValue and close < ema20 and ema20 < ema50 and rsiValue <= rsiBear

bullDisplacement = close > open and math.abs(close – open) >= atrValue * displacementMult
bearDisplacement = close < open and math.abs(close – open) >= atrValue * displacementMult

//====================================================
// 4. LIQUIDITY SWEEP
//====================================================

previousLow = ta.lowest(low, swingLen)
previousHigh = ta.highest(high, swingLen)

bullSweep = low < previousLow and close > previousLow
bearSweep = high > previousHigh and close < previousHigh

barsSinceBullSweep = ta.barssince(bullSweep)
barsSinceBearSweep = ta.barssince(bearSweep)

recentBullSweep = not na(barsSinceBullSweep) and barsSinceBullSweep <= sweepWindow
recentBearSweep = not na(barsSinceBearSweep) and barsSinceBearSweep <= sweepWindow

//====================================================
// 5. MARKET STRUCTURE SHIFT
//====================================================

bullMSS = close > ta.highest(high, mssLen)
bearMSS = close < ta.lowest(low, mssLen)

barsSinceBullMSS = ta.barssince(bullMSS)
barsSinceBearMSS = ta.barssince(bearMSS)

recentBullMSS = not na(barsSinceBullMSS) and barsSinceBullMSS <= 3
recentBearMSS = not na(barsSinceBearMSS) and barsSinceBearMSS <= 3

//====================================================
// 6. FAIR VALUE GAP
//====================================================

bullFVG = low > high
bearFVG = high < low

barsSinceBullFVG = ta.barssince(bullFVG)
barsSinceBearFVG = ta.barssince(bearFVG)

recentBullFVG = not na(barsSinceBullFVG) and barsSinceBullFVG <= fvgWindow
recentBearFVG = not na(barsSinceBearFVG) and barsSinceBearFVG <= fvgWindow

plotshape(showFVG and bullFVG, title=”Bullish FVG”, style=shape.square, location=location.belowbar, color=color.new(color.lime, 20), size=size.tiny)
plotshape(showFVG and bearFVG, title=”Bearish FVG”, style=shape.square, location=location.abovebar, color=color.new(color.red, 20), size=size.tiny)

//====================================================
// 7. SIGNAL SCORE
//====================================================

bullScore = (bullTrend ? 1 : 0) +
(bullMomentum ? 1 : 0) +
(highVolume ? 1 : 0) +
(recentBullSweep ? 1 : 0) +
(recentBullMSS ? 1 : 0) +
(recentBullFVG ? 1 : 0)

bearScore = (bearTrend ? 1 : 0) +
(bearMomentum ? 1 : 0) +
(highVolume ? 1 : 0) +
(recentBearSweep ? 1 : 0) +
(recentBearMSS ? 1 : 0) +
(recentBearFVG ? 1 : 0)

//====================================================
// 8. STRICT ENTRY CONDITIONS
//====================================================

bullSetup = bullTrend and bullMomentum and highVolume and recentBullSweep and recentBullMSS and recentBullFVG and bullDisplacement

bearSetup = bearTrend and bearMomentum and highVolume and recentBearSweep and recentBearMSS and recentBearFVG and bearDisplacement

//====================================================
// 9. TRADE STATE
//====================================================

var bool inLong = false
var bool inShort = false

var float entryPrice = na
var float stopPrice = na
var float targetPrice = na
var float extremePrice = na

var bool callSignal = false
var bool putSignal = false
var bool longExit = false
var bool shortExit = false

callSignal := false
putSignal := false
longExit := false
shortExit := false

//====================================================
// 10. EXIT MANAGEMENT
//====================================================

if inLong and not inShort
longStopHit = low <= stopPrice
longTargetHit = useTarget and high >= targetPrice
longReverse = bearSetup

if longStopHit or longTargetHit or longReverse
longExit := true
inLong := false
entryPrice := na
stopPrice := na
targetPrice := na
extremePrice := na
else
extremePrice := math.max(extremePrice, high)
if useTrailing
stopPrice := math.max(stopPrice, extremePrice – atrValue * trailATR)

if inShort and not inLong
shortStopHit = high >= stopPrice
shortTargetHit = useTarget and low <= targetPrice
shortReverse = bullSetup

if shortStopHit or shortTargetHit or shortReverse
shortExit := true
inShort := false
entryPrice := na
stopPrice := na
targetPrice := na
extremePrice := na
else
extremePrice := math.min(extremePrice, low)
if useTrailing
stopPrice := math.min(stopPrice, extremePrice + atrValue * trailATR)

//====================================================
// 11. NEW ENTRIES
//====================================================

if barstate.isconfirmed and not inLong and not inShort
if bullSetup and bullScore == 6
callSignal := true
inLong := true
entryPrice := close
stopPrice := close – atrValue * initialStopATR
targetPrice := close + (close – stopPrice) * targetR
extremePrice := high

else if bearSetup and bearScore == 6
putSignal := true
inShort := true
entryPrice := close
stopPrice := close + atrValue * initialStopATR
targetPrice := close – (stopPrice – close) * targetR
extremePrice := low

//====================================================
// 12. PLOTS
//====================================================

plot(showVWAP ? vwapValue : na, “Session VWAP”, color=color.yellow, linewidth=2)
plot(showEMA ? ema20 : na, “EMA 20”, color=color.lime, linewidth=2)
plot(showEMA ? ema50 : na, “EMA 50”, color=color.red, linewidth=2)

plot(showLevels and (inLong or inShort) ? entryPrice : na, “Entry”, color=color.blue, linewidth=2, style=plot.style_linebr)
plot(showLevels and (inLong or inShort) ? stopPrice : na, “Stop / Trailing”, color=color.red, linewidth=2, style=plot.style_linebr)
plot(showLevels and (inLong or inShort) and useTarget ? targetPrice : na, “Target”, color=color.green, linewidth=2, style=plot.style_linebr)

plotshape(callSignal, title=”CALL ENTRY”, style=shape.labelup, location=location.belowbar, color=color.green, text=”CALL”, textcolor=color.white, size=size.small)
plotshape(putSignal, title=”PUT ENTRY”, style=shape.labeldown, location=location.abovebar, color=color.red, text=”PUT”, textcolor=color.white, size=size.small)

plotshape(longExit, title=”CALL EXIT”, style=shape.xcross, location=location.abovebar, color=color.yellow, text=”EXIT”, size=size.small)
plotshape(shortExit, title=”PUT EXIT”, style=shape.xcross, location=location.belowbar, color=color.yellow, text=”EXIT”, size=size.small)

//====================================================
// 13. DASHBOARD
//====================================================

var table dash = table.new(position.top_right, 2, 10, border_width=1)

trendText = bullTrend ? “BULLISH” : bearTrend ? “BEARISH” : “MIXED”
trendColor = bullTrend ? color.green : bearTrend ? color.red : color.gray

biasText = bullMomentum ? “BULLISH” : bearMomentum ? “BEARISH” : “NEUTRAL”
biasColor = bullMomentum ? color.green : bearMomentum ? color.red : color.gray

signalText = inLong ? “CALL ACTIVE” : inShort ? “PUT ACTIVE” : callSignal ? “CALL” : putSignal ? “PUT” : “NO TRADE”
signalColor = inLong or callSignal ? color.green : inShort or putSignal ? color.red : color.gray

if showDashboard and barstate.islast
table.cell(dash, 0, 0, “NQ SMART MONEY”, bgcolor=color.black, text_color=color.white)
table.cell(dash, 1, 0, “0DTE PRO”, bgcolor=color.black, text_color=color.white)

table.cell(dash, 0, 1, “4H TREND”)
table.cell(dash, 1, 1, trend4h ? “BULL” : bear4h ? “BEAR” : “MIXED”, text_color=trend4h ? color.lime : bear4h ? color.red : color.gray)

table.cell(dash, 0, 2, “1H TREND”)
table.cell(dash, 1, 2, trend1h ? “BULL” : bear1h ? “BEAR” : “MIXED”, text_color=trend1h ? color.lime : bear1h ? color.red : color.gray)

table.cell(dash, 0, 3, “15M TREND”)
table.cell(dash, 1, 3, trend15Bull ? “BULL” : bear15 ? “BEAR” : “MIXED”, text_color=trend15Bull ? color.lime : bear15 ? color.red : color.gray)

table.cell(dash, 0, 4, “BIAS”)
table.cell(dash, 1, 4, biasText, text_color=biasColor)

table.cell(dash, 0, 5, “VOLUME”)
table.cell(dash, 1, 5, highVolume ? “HIGH” : “NORMAL”, text_color=highVolume ? color.lime : color.gray)

table.cell(dash, 0, 6, “BULL / BEAR SCORE”)
table.cell(dash, 1, 6, str.tostring(bullScore) + ” / ” + str.tostring(bearScore))

table.cell(dash, 0, 7, “SWEEP”)
table.cell(dash, 1, 7, recentBullSweep ? “LOW SWEEP” : recentBearSweep ? “HIGH SWEEP” : “NONE”)

table.cell(dash, 0, 8, “MSS / FVG”)
table.cell(dash, 1, 8, (recentBullMSS and recentBullFVG) ? “BULLISH” : (recentBearMSS and recentBearFVG) ? “BEARISH” : “WAIT”)

table.cell(dash, 0, 9, “FINAL SIGNAL”, bgcolor=color.black, text_color=color.white)
table.cell(dash, 1, 9, signalText, bgcolor=signalColor, text_color=color.white)

//====================================================
// 14. ALERTS
//====================================================

alertcondition(callSignal, title=”NQ CALL Signal”, message=”NQ Smart Money PRO: CALL setup confirmed.”)
alertcondition(putSignal, title=”NQ PUT Signal”, message=”NQ Smart Money PRO: PUT setup confirmed.”)
alertcondition(longExit, title=”NQ CALL Exit”, message=”NQ Smart Money PRO: Exit CALL.”)
alertcondition(shortExit, title=”NQ PUT Exit”, message=”NQ Smart Money PRO: Exit PUT.”)

Previous Article

SPX500 long opportunity

Next Article

EURUSD FREE SIGNAL|LONG|

You might be interested in …

XAUUSD — H1 Intraday: Market Outlook — Bearish Under 3703.22

XAUUSD — H1 Intraday: Market Outlook — Bearish Under 3703.22 Gold OANDA:XAUUSD burnettaeastin06061990 1. Thesis D1/H4/H1/M15 all BEARISH after the Nov 18-19 crash. Gold has extended the fall overnight: price ~3,606 sits far below the most recent bearish FVG 3,692.25-3,703.22 (Nov 19 16:00 UTC) and below H1 EMA20 (~3,682-3,689 live). The Nov 19 low 3,667.58 and the ATR projections 3,648.33 […]

EUR/JPY BULLISH BIAS RIGHT NOW| LONG

EUR/JPY BULLISH BIAS RIGHT NOW| LONG EURO VS JAPANESE YEN TRADENATION:EURJPY EliteTradingSignals EUR/JPY SIGNAL Trade Direction: long Entry Level: 175.672 Target Level: 176.251 Stop Loss: 175.286 RISK PROFILE Risk level: medium Suggested risk: 1% Timeframe: 1h Disclosure: I am part of Trade Nation’s Influencer program and receive a monthly fee for using their TradingView charts in my analysis. ✅LIKE AND […]

larger btcusd correction

larger btcusd correction Bitcoin CRYPTO:BTCUSD neo8175 I think we will bottom out around 62k and move up for wave C before correct again.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *