need afl code for change candlestick color when satisfied certain conditions

#2
u can use following line:

Plot(C,"close",IIf(RSI()<30,colorWhite,IIf(RSI()>70,colorBlack,colorBlue)),styleCandle);


here candle will be blue if rsi 30 but <70.
 

Similar threads