OPEN-SOURCE SCRIPT

Acl

51
//version=5
indicator("Breakout Momentum (LONG)", overlay=true)

// --- Conditions ---
rsiValue = ta.rsi(close, 14)
ema20 = ta.ema(close, 20)
volSMA10 = ta.sma(volume, 10)
highest20 = ta.highest(high, 20)

longCondition = close > highest20 and
volume > 2 * volSMA10 and
rsiValue > 55 and
close > ema20 and
close > 50 and
volume > 100000

// --- Plot signals on chart ---
plotshape(longCondition, title="Breakout Momentum", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.large, text="LONG")

// --- Alerts ---
if (longCondition)
alert("📈 Breakout Momentum (LONG) signal detected!", alert.freq_once_per_bar_close)

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.