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.
 
It seems this is now possible. Example here: https://www.mql5.com/en/code/1349
Change the color of the candles
Change the color of the candles
  • www.mql5.com
The indicator that allows modifying color of the candles.
 
Rob Perrett #:
It seems this is now possible. Example here: https://www.mql5.com/en/code/1349
It's an indicator, that uses DRAW_COLOR_CANDLES as Alain already explained 11 years ago.

Please don't reply to old topics without any reason.
 
Fabio Cavalloni #:
It's an indicator, that uses DRAW_COLOR_CANDLES as Alain already explained 11 years ago.

Please don't reply to old topics without any reason.
Please be a bit more understanding. It's a forum. People are allowed to contribute. If replies aren't welcome then the thread needs to be locked.
 
youcrazykids #:
Please be a bit more understanding. It's a forum. People are allowed to contribute. If replies aren't welcome then the thread needs to be locked.
I totally understand. But it's a useless reply sent 11 years after the correct reply.

How can it even contribute?
 
Fabio Cavalloni #:
I totally understand. But it's a useless reply sent 11 years after the correct reply.

How can it even contribute?
He posted a link to a finished indicator to color candles. A finished indicator is a contribution. 
The OP might not be active anymore, but this would prevent other people from asking the same question so the bump isn't necessarily a bad thing...