问题
I wanna to make pine script code to check is that candle the largest one of the previous 50 candles and color it yellow i tried hard ,but i can't
回答1:
You could use:
r = high - low
barcolor(rising(r,50) ? color.yellow : na)
来源:https://stackoverflow.com/questions/62582115/how-to-check-if-the-candle-is-the-largest-one-in-pine-script