coloring candlebars

 
Hi, I want to color candlebars in different colors when certain condition are met. This is possible with Visual Trader for example, but can't see a way to do it in MT4.
 
Try to modify 'Heiken Ashi' indicator: "MQL4: Heiken Ashi"
 
Already tried that, it does the job partly, but it can't display hollow candles, so it's pretty much useless for my needs. Again, VT can do this perfectly (but it lacks in other fields, no loops for example).

Thanks anyway.
 
To hide indicators for certain values, try to use 'EMPTY_VALUE' like the fillowing:
ExtMapBuffer1[pos]=EMPTY_VALUE;
ExtMapBuffer2[pos]=EMPTY_VALUE;
ExtMapBuffer3[pos]=EMPTY_VALUE;
ExtMapBuffer4[pos]=EMPTY_VALUE;


But first, you have to save previous values of bars, for example:

double prev1,prev2;
prev1=ExtMapBuffer3[pos];
prev2=ExtMapBuffer4[pos];


And then you have to recalculate open prices:

haOpen=(prev1+prev2)/2;
 
Thanks, but that's not applicable to my problem. I want to see hollow candle bodies too, but in different color. EMPTY_VALUE will just give me standard colored candles.

Example: http://kwikpop.infotogo.net/AMIQQQ.GIF

That's impossible to do with MT4...
 
Sorry, but this is possible. You should to more modify the indicator. Try to refer to https://docs.mql4.com/
 
No, you can't have an *empty bodied* candle with different color *body outline* than is set in settings.
I am no beginner in MQL4 and I've tried at all.
Reason: