Download MetaTrader 5

Same EA across several pairs.

To add comments, please log in or register
ForexTrader17
1041
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. 

John Townsend
87
John Townsend  
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
6149
Marco vd Heijden  
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
1584
Osama Shaban  

Or,

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

Xiangdong Guo
4379
Xiangdong Guo  

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
1041
ForexTrader17  
Thank you all.
To add comments, please log in or register