Download MetaTrader 5
To add comments, please log in or register
Interested in MetaTrader 5 features? Learn more about them!
ForexTrader17
1042
ForexTrader17 2016.05.04 03:30 

Is there a way in MT4 to remove or add the same EA across several charts at a time?  have 10 to 14 charts running on a VPS and want to find a way to remove all EAs on the charts at the same time or add an EA on all charts at once.

Thank you. 

John Townsend
83
John Townsend 2016.05.04 05:20  
ForexTrader17:

Is there a way in MT4 to remove or add the same EA across several charts at a time?  have 10 to 14 charts running on a VPS and want to find a way to remove all EAs on the charts at the same time or add an EA on all charts at once.

Thank you. 

Assuming you have access to the source code for the EAs, one solution is to define a single global variable and manually change its value from 1 to 0 & back again when ever you wish.  Code the EAs to read the global variable and exit without doing any actions if the global variable is 0 or continue with all normal actions if the global variable is 1.  So one single change would turn them all on or off ...

HTH
John

Marco vd Heijden
Moderator
4506
Marco vd Heijden 2016.05.04 08:15  
ForexTrader17:

Is there a way in MT4 to remove or add the same EA across several charts at a time?  have 10 to 14 charts running on a VPS and want to find a way to remove all EAs on the charts at the same time or add an EA on all charts at once.

Thank you. 

No but you can use one EA that runs 10 to 14 on one chart.
Osama Shaban
1385
Osama Shaban 2016.05.04 09:03  

Or,

Use template to make opening new charts easier. Closing is easy as all we know!.

Xiangdong Guo
3706
Xiangdong Guo 2016.05.04 14:14  

Save your EA in a template.

Run your controller EA, then:

To ADD to chart

long chart_n_id = ChartOpen(symbol_n, timeframe_n);

ChartApplyTemplate(chart_n_id, template_name);

To REMOVE EA, just

ChartClose(chart_n_id);
ForexTrader17
1042
ForexTrader17 2016.05.04 17:11  
Thank you all.
/
To add comments, please log in or register