Download MetaTrader 5
To add comments, please log in or register
Code Base will help you in mastering your theoretical skills. Come and learn!
mizantropul
71
mizantropul 2013.10.29 17:38 

Hi , I want to apply ALFA.mql EA on GBPUSD M1 chart , BRAVO.mql EA on GBPUSD M30 chart , and no EA on the GBPUSD  M5, M15, etc...

 Can anyone explain me how can I do that?

TIA ! 

Alain Verleyen
Moderator
28658
Alain Verleyen 2013.10.29 17:54  
mizantropul:

Hi , I want to apply ALFA.mql EA on GBPUSD M1 chart , BRAVO.mql EA on GBPUSD M30 chart , and no EA on the GBPUSD  M5, M15, etc...

 Can anyone explain me how can I do that?

TIA ! 

You have to use the magic number in your EA, or choose EAs that handle this magic. See these articles The Optimal Method for Calculation of Total Position Volume by Specified Magic Number and The Use of ORDER_MAGIC for Trading with Different Expert Advisors on a Single Instrument.

Alternatively you can use 2 different accounts or find a broker who provide several name for the same pairs.

Paul Anscombe
3867
Paul Anscombe 2013.10.29 17:56  
mizantropul:

Hi , I want to apply ALFA.mql EA on GBPUSD M1 chart , BRAVO.mql EA on GBPUSD M30 chart , and no EA on the GBPUSD  M5, M15, etc...

 Can anyone explain me how can I do that?

TIA ! 

simply have two charts for the symbol open ie: M1 and M5  and apply the EAs accordingly.

The issue will come in that MT5 has a single position so those EA's will need to be able to handle that otherwise they will get muddled up and potentially opening/closing wrong.

There are a number of articles about on how to manage virtual positions  in MT5 do a search.

 regards

mizantropul
71
mizantropul 2013.10.29 22:19  
angevoyageur:

You have to use the magic number in your EA, or choose EAs that handle this magic. See these articles The Optimal Method for Calculation of Total Position Volume by Specified Magic Number and The Use of ORDER_MAGIC for Trading with Different Expert Advisors on a Single Instrument.

Alternatively you can use 2 different accounts or find a broker who provide several name for the same pairs.

Thank you ! Another question, please :  magic number "trick" works in MQL4 , too ?

Alain Verleyen
Moderator
28658
Alain Verleyen 2013.10.29 23:02  
mizantropul:

Thank you ! Another question, please :  magic number "trick" works in MQL4 , too ?

Yes, it's more easy with mql4. See mql4.com.
MQL4: automated forex trading, strategy tester and custom indicators with MetaTrader
  • www.mql4.com
MQL4: automated forex trading, strategy tester and custom indicators with MetaTrader
/
To add comments, please log in or register