OPEN-SOURCE SCRIPT

Breakout + Volume Filter

359
//version=5
indicator("Breakout + Volume Filter", overlay=true)
length = input.int(20)
volMultiplier = input.float(1.5)

highestHigh = ta.highest(high, length)
breakout = close > highestHigh[1]
avgVol = ta.sma(volume, length)
validBreakout = breakout and volume > avgVol * volMultiplier

plotshape(validBreakout, title="Breakout Up", location=location.abovebar, color=color.green, style=shape.triangleup)
alertcondition(validBreakout, title="Breakout Detected", message="פריצה עם נפח גבוה!")

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.