How to change the color of a particular candle to particular color ?

 

I use candlestick chart, with red for bearish candle and Green for bullish candle. 

i know how to detect pin bar and other patterns programatically. 

How to change programatically the color for pin bar candle ,  hammer  etc...  to specific colors.

 
chandra100:

I use candlestick chart, with red for bearish candle and Green for bullish candle. 

i know how to detect pin bar and other patterns programatically. 

How to change programatically the color for pin bar candle ,  hammer  etc...  to specific colors.

You can't change the color of a particular candle. You have to create a custom indicator with DRAW_COLOR_CANDLES style.
Reason: