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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。