Announcement

Collapse
No announcement yet.

control candlestick color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • control candlestick color

    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.

  • #2
    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

    Working...
    X