KiyanWest Texas Intermediate Crude Oil cashBLACKBULL:WTIkiyan_aghaei//@version=5 indicator("DTC Style Trading Indicator 1.3.6 (Replica)", overlay=true) // === Inputs === fastEMA = input.int(21, "Fast EMA") slowEMA = input.int(50, "Slow EMA") trendEMA = input.int(200, "Trend EMA") rsiLen = input.int(14, "RSI Length") // === Moving Averages === emaFast = ta.ema(close, fastEMA) emaSlow = ta.ema(close, slowEMA) emaTrend = ta.ema(close, trendEMA) // === RSI Filter === rsi = ta.rsi(close, rsiLen) // === Trend Conditions === bullTrend = close > emaTrend bearTrend = close < emaTrend // === Cloud === cloudTop = emaFast cloudBottom = emaSlow // === Entry Conditions === buySignal = bullTrend and ta.crossover(emaFast, emaSlow) and rsi > 50 sellSignal = bearTrend and ta.crossunder(emaFast, emaSlow) and rsi < 50 // === Plot Cloud === plot(cloudTop, color=color.new(color.green, 60)) plot(cloudBottom, color=color.new(color.red, 60)) fill(plot(cloudTop), plot(cloudBottom), color = bullTrend ? color.new(color.green, 80) : color.new(color.red, 80)) // === Plot EMAs === plot(emaTrend, color=color.orange, linewidth=2) // === Buy / Sell Labels === plotshape(buySignal, title="BUY", style=shape.labelup, location=location.belowbar, color=color.green, text="BUY") plotshape(sellSignal, title="SELL", style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL") // === Alerts === alertcondition(buySignal, title="Buy Alert", message="DTC Style BUY Signal") alertcondition(sellSignal, title="Sell Alert", message="DTC Style SELL Signal")