OPEN-SOURCE SCRIPT

Breakout Alert (High + Volume)

221
//version=5
indicator("Breakout Alert (High + Volume)", overlay=true)

length = input.int(10, title="Lookback for Resistance", minval=1)
volMultiplier = input.float(1.5, title="Volume Multiplier", minval=1.0)

recentHigh = ta.highest(high, length)
recentVolume = ta.sma(volume, length)

// Breakout Conditions
isBreakout = close > recentHigh and volume > (recentVolume * volMultiplier)

plotshape(isBreakout, title="Breakout Signal", location=location.abovebar, color=color.green, style=shape.labelup, text="Breakout", size=size.small)

// Optional lines for visual aid
plot(recentHigh, title="Recent High", color=color.red, linewidth=1, style=plot.style_line)

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
OSZAR »