OPEN-SOURCE SCRIPT

Highlight > 0.5% Moves

153
// ------ 1 ------ //

// threshold = input(0.3, title = "threshold%")

// //threshold = 0.3
// pctChange = ((close - open) / open) * 100

// //Define the condition (More than 0.5%)
// isBigMove = pctChange > threshold


// bgcolor(isBigMove ? color.new(color.green, 90) : na)
// barcolor(isBigMove ? color.new(color.green, 60) : na)
// plotshape(isBigMove, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)

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.