MQL4 Add indicator to chart from EA - page 6

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Alain Verleyen:
Hello
I am trying to use this code in a SCRIPT, but sometimes my metatrader close soddenly
Do you know what is the problem ?
Chart.mqh is pretty obvious........
You just have to add code to simulate key stroke, like you do manually.
Doesn't work. I need to execute the add indicator code from an indicator. I have tried many solutions, but I get no results. The indicator I want to add gets added, but the indicator configuration window stays on and waits for manual confirmation.
To be clear, those codes work from script fine, and the keyboard emulation works from script, too.I am doing this in MT4 Build 1353.
No luck from an indicator...
Hello everyone,
I would like to thanks Georgiy Liashchenko, and I would like to share my upgraded version of his code that add the indicator directly into the chart with AutomaticallyAcceptDefaults (when it is on "true").
I hope it will help some people that need to insert indicators from the expert.
Note : I works for custom indicators, else change the windows name
Note2 : Don't use indicators with more than 15 characters (before the ".ex4")
Great
Hi
with all the different codes related to user32.dll and messages, it should be a good idea to share an updated version of the include file with additionnal codes.
Here is the include file I am using:
Hello everyone,
I would like to thanks Georgiy Liashchenko, and I would like to share my upgraded version of his code that add the indicator directly into the chart with AutomaticallyAcceptDefaults (when it is on "true").
I hope it will help some people that need to insert indicators from the expert.
Note : I works for custom indicators, else change the windows name
Note2 : Don't use indicators with more than 15 characters (before the ".ex4")
Hello everyone,
This solution is really interesting and works well, but there is a small problem. If the same EA is active on more than one chart, on the first the loading of the indicator is automatic, on the others it requires manual confirmation on OK. Is there any solution?