Help: Change Color of a CandleStick

 

Hi,


I am new to metatrader MQL but have heavy experience in programming.
I am trying to change the color of a candlestick bar based off an indicator.


For instance if stochastics or RSI is greater then 80 then i want the candlestick bar for that tick to be blue

if it is less then 20 i want the candlestick bar for the tick to be yellow

if it is between 80 and 20 i want it to be white.


Can someone help me out with this or point me to the right direction.


Any help is appreciated.


Thanks in advance.

 

As far as I know, you can't change the main candles programmatically.

What you can do is to draw additional objects (via ObjectCreate()) on top of the candles, or draw fancy charts in a separate indicator window.

Reason: