//@version=5 indicator("EMA Smart Confirmation Pro", overlay=truBitcoin / TetherUSBINANCE:BTCUSDTGefrii//@version=5 indicator("EMA Smart Confirmation Pro", overlay=true, max_labels_count=500) // ===== Inputs ===== emaFastLen = input.int(20, "EMA Fast", minval=1) emaSlowLen = input.int(50, "EMA Slow", minval=1) showEMA = input.bool(true, "Show EMA") showSignals = input.bool(true, "Show Buy/Sell") // Pin Bar Settings minWickRatio = input.float(2.0, "Min Wick / Body Ratio", step=0.1) maxBodyPercent = input.float(0.30, "Max Body % of Candle", step=0.01) // ===== EMA ===== ema20 = ta.ema(close, emaFastLen) ema50 = ta.ema(close, emaSlowLen) plot(showEMA ? ema20 : na, color=color.yellow, linewidth=2, title="EMA20") plot(showEMA ? ema50 : na, color=color.blue, linewidth=2, title="EMA50") bullTrend = ema20 > ema50 bearTrend = ema20 < ema50