I'm using Alain's code and it works in the sense that the classic indicator form appears asking me to fill the parameter and then click Ok to activate the indicator and it's similar to manually attach the indicator. Is it possible to completely automate the entire operation even the settings of the required parameters? Thanks
I don't have this problem (with the code I posted).
Check that hWnd is different from 0.
You can also try to increase the sleep value to 50 or 100.
This comment to many help, I need other question,
Can I bypass the input popup and use default of indicator? How to coding?
Can I delete indicator from the chart?
Thanks this is what i am looking for, i can add my custom indicator, just one more question, how to unload it ?
Congratulaions, it works fine.
I'm using your code, but I have a problem with it's name.
2018.01.11 12:06:15.864 cannot open file 'C:\............\MQL4\indicators\MACDèõšp.ex4' 
2018.01.11 12:04:00.518 cannot open file 'C:\.............\MQL4\indicators\MACD.ex4' 
First line is raised when
name2='M'; name2='A'; name2='C'; name2='D';
Second line is raised when
I changed First code it's working now!
name2='M'; name2='A'; name2='C'; name2='D'; name2=0;