// Pine Script v5 – Advanced Scalping Strategy with ATR + Volume

Wait 5 sec.

// Pine Script v5 – Advanced Scalping Strategy with ATR + VolumeCardano / TetherUSBINANCE:ADAUSDTehsanvhosein2021// Pine Script v5 – Advanced Scalping Strategy with ATR + Volume Filter indicator("Scalp Entry Alert – Advanced (ATR + Volume)", overlay=true) // === INPUTS === emaFast = input.int(20, title="EMA Fast", minval=1) emaSlow = input.int(50, title="EMA Slow", minval=1) macdSrc = input.source(close, title="MACD Source") rsiPeriod = input.int(14, title="RSI Period") atrLength = input.int(14, title="ATR Period") volMultiplier = input.float(1.5, title="Volume Multiplier Threshold", step=0.1) // === EMA === ema20 = ta.ema(close, emaFast) ema50 = ta.ema(close, emaSlow) // === MACD === = ta.macd(macdSrc, 12, 26, 9) // === RSI === rsi = ta.rsi(close, rsiPeriod) // === ATR & Volume === atr = ta.atr(atrLength) vol = volume volMA = ta.sma(volume, 20) // === Entry Conditions with Volume Filter === longCond = ema20 > ema50 and ta.crossover(macdLine, signalLine) and rsi > 50 and rsi < 70 and vol > volMA * volMultiplier shortCond = ema20 < ema50 and ta.crossunder(macdLine, signalLine) and rsi < 50 and rsi > 30 and vol > volMA * volMultiplier // === Alerts === if (longCond) alert("📈 LONG Entry Signal (Strong Volume + ATR)", alert.freq_once_per_bar) label.new(bar_index, high, "Long ✅", style=label.style_label_up, color=color.green, textcolor=color.white) if (shortCond) alert("📉 SHORT Entry Signal (Strong Volume + ATR)", alert.freq_once_per_bar) label.new(bar_index, low, "Short 🚫", style=label.style_label_down, color=color.red, textcolor=color.white) // === Plot EMAs === plot(ema20, color=color.blue, title="EMA 20") plot(ema50, color=color.orange, title="EMA 50") // === Optional: Plot Volume MA and ATR (for info) plot(volMA, title="Volume MA", color=color.gray, display=display.none) plot(atr, title="ATR", color=color.purple, display=display.none)