Dhiraj 1

Dhiraj 1

//@version=5
indicator("TRIDENT-3 Signal", overlay=true)

// 1. ट्रेंड फ़िल्टर
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 20)
trendUp = emaFast > emaSlow
trendDown = emaFast < emaSlow

// 2. वॉल्यूम स्पाइक (150% of 20-period avg)
volAvg = ta.sma(volume, 20)
volSpike = volume > 1.5 * volAvg

// 3. मोमेंटम (RSI + MACD)
rsi = ta.rsi(close, 14)
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
momentumBullish = rsi > 50 and macdLine > 0

// 4. सिग्नल जनरेशन
buySignal = trendUp and volSpike and momentumBullish and (close > emaFast)
sellSignal = trendDown and volSpike and (rsi < 45) and (close < emaFast)

// प्लॉटिंग
plotshape(buySignal, style=shape.triangleup, color=color.green, location=location.belowbar, size=size.small)
plotshape(sellSignal, style=shape.triangledown, color=color.red, location=location.abovebar, size=size.small)

Read More

Share:

Latest News