Is there any way to change the chart properties in MQL, such as setting the chart background color or the candle color? Possibly by loading up a new chart template in MQL?
I like to set the background color to indicate whether a pair is currently in buy or sell mode. It makes it easy to scan many charts for setups at a glance.
It would be very nice if I could set this automatically in an MQL indicator or script. I've dug around in the help and on the web and I can't find any indication that these properties can be set programmatically. Is it possible?
Change chart properties in MQL?
-
dietcoke
- Trader
- Posts: 162
- Joined: Tue Nov 15, 2011 9:59 pm
Re: Change chart properties in MQL?
Not directly, I'm afraid. The easiest idea (no code given but not too hard) I've seen is here.garyfritz wrote:Is there any way to change the chart properties in MQL, such as setting the chart background color or the candle color? Possibly by loading up a new chart template in MQL?
I like to set the background color to indicate whether a pair is currently in buy or sell mode. It makes it easy to scan many charts for setups at a glance.
It would be very nice if I could set this automatically in an MQL indicator or script. I've dug around in the help and on the web and I can't find any indication that these properties can be set programmatically. Is it possible?
http://www.forexfactory.com/showthread.php?t=161301
-
garyfritz
Re: Change chart properties in MQL?
Aha. So OBJPROP_BACK causes the box to go behind the chart and indicators, apparently? And there's a great example there. I'll experiment with it. Thanks DC!
