Loading an indicator via an EA?

 

This should be an easy question, hopefully.

Is there any code available that I can use to have my EA load an indicator in the current chart window(0)? I'm not looking to get any data from the indicator, just would like the EA to force it to display in the current window.

 
inkexit:

This should be an easy question, hopefully.

Is there any code available that I can use to have my EA load an indicator in the current chart window(0)? I'm not looking to get any data from the indicator, just would like the EA to force it to display in the current window.

im looking for this too,

But That's not easy too;-)


i think if we use some api functions to call indicator menu's we can add them to chart;-)

this is the only way i think

 
inkexit:

Is there any code available that I can use to have my EA load an indicator in the current chart window(0)? I'm not looking to get any data from the indicator, just would like the EA to force it to display in the current window.

See https://www.mql5.com/en/forum/115967
 

Great code Jjc, thanks. I missed that one.

Is there any chance you can share how to execute programs like excel or other via MQ4 ? Thanks.

 
cameofx:

Is there any chance you can share how to execute programs like excel or other via MQ4 ? Thanks.

Have a look at posts such as https://www.mql5.com/en/forum/117418 which discuss the use of ShellExecuteA.
 
jjc:
Have a look at posts such as https://www.mql5.com/en/forum/117418 which discuss the use of ShellExecuteA.


Owh, I almost miss this one. Never get the hang of subscribing...

Thanks a lot jjc, very valuable piece of information.