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. קרא עוד בתנאים וההגבלות.