How to control the candlestick color in price pane according to some indicator value? For example, when the current RSI > 80, the candlestick is drawn in red color. I tried to use setBarFgColor(), but it seems not working. The candlestick is alway red when ithe close price of the bar is lower than open and green when higher. Does setBarFgColor() only work in indicator panes? Thanks for any help.
Announcement
Collapse
No announcement yet.
control candlestick color
Collapse
X
-
Re: control candlestick color
I have found the answer. I should use setPricebarColor().
Originally posted by clearpicks
How to control the candlestick color in price pane according to some indicator value? For example, when the current RSI > 80, the candlestick is drawn in red color. I tried to use setBarFgColor(), but it seems not working. The candlestick is alway red when ithe close price of the bar is lower than open and green when higher. Does setBarFgColor() only work in indicator panes? Thanks for any help.
Comment