Home Simple EMA + Volume + Supertrend Buy/Sell Simple EMA + Volume + Supertrend Buy/Sell Simple EMA + Volume + Supertrend Buy/Sell Software Technique Web Technique All Computer Language and Computer Language Practice Computer Educa July 21, 2025 0 Comments Share: Facebook Twitter Google+ Pinterest Whatsapp TREDING //@version=5 indicator("Simple EMA + Volume + Supertrend Buy/Sell", overlay=true) // === Inputs === emaLen = input.int(21, title="EMA Length") volSMA_len = input.int(20, title="Volume SMA Length") supertrend_len = input.int(10, title="Supertrend ATR Length") supertrend_mult = input.float(3.0, title="Supertrend Multiplier") // === EMA Trend === ema = ta.ema(close, emaLen) emaUp = close > ema emaDown = close < ema // === Volume Trend === volSMA = ta.sma(volume, volSMA_len) volUp = volume > volSMA volDown = volume < volSMA // === Supertrend === [supertrend, dir] = ta.supertrend(supertrend_mult, supertrend_len) superUp = dir == 1 superDown = dir == -1 // === Buy & Sell conditions === buySignal = emaUp and volUp and superUp sellSignal = emaDown and volDown and superDown // === Plot Buy/Sell Signals === plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY") plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL") // === Plot EMA and Supertrend === plot(ema, title="EMA", color=color.orange) plot(supertrend, title="Supertrend", color=superUp ? color.green : color.red, linewidth=2) Copy Copied Text:
No comments