This forum is now read-only. You can discuss you questions on Forums of MQL4.community and MQL5.community
coloring candlebarsBack to topics list |
|
AlexK
2006.05.28 16:03
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.
|
269 |
Tatyana
2006.05.29 15:24
Try to modify 'Heiken Ashi' indicator: "MQL4: Heiken Ashi"
|
|
AlexK
2006.05.29 15:53
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. |
269 |
Tatyana
2006.05.29 17:53
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;
double prev1,prev2; prev1=ExtMapBuffer3[pos]; prev2=ExtMapBuffer4[pos];
haOpen=(prev1+prev2)/2; |
|
AlexK
2006.05.29 19:32
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... |
269 |
Tatyana
2006.05.29 19:50
Sorry, but this is possible. You should to more modify the indicator. Try to refer to http://docs.mql4.com/
|
|
AlexK
2006.05.29 20:36
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. |
