stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Change chart properties in MQL?
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=896
Page 1 of 1
Author:  garyfritz [ Sun Oct 21, 2012 2:39 pm ]
Post subject:  Change chart properties in MQL?

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?
Author:  dietcoke [ Sun Oct 21, 2012 4:02 pm ]
Post subject:  Re: Change chart properties in MQL?

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?
Not directly, I'm afraid. The easiest idea (no code given but not too hard) I've seen is here.

http://www.forexfactory.com/showthread.php?t=161301
Author:  garyfritz [ Sun Oct 21, 2012 5:03 pm ]
Post subject:  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!
All times are UTC Page 1 of 1