Same EA across several pairs.

 

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. 

 
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

 
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.
 

Or,

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

 

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);
 
Thank you all.