Testing two experts advisors

 

how can i run  two expert advisors (by strategy tester) on the same chart in the same time (or two expert advisors on two charts of the same Currency Pair [EURUSD] in the same time) in the backtest ?

Thanks

EURUSD (Euro vs US Dollar): Live Forex Charts
EURUSD (Euro vs US Dollar): Live Forex Charts
  • 2025.04.29
  • www.mql5.com
EURUSD exchange rate has changed by -0.24% for today. During the day, the instrument was traded at a low of 1.13696 and at a high of 1.14217
 
mhae20032003:

how can i test (by strategy tester) two expert advisors on the same chart in the same time (or two expert advisors on two charts of the same Currency Pair [EURUSD] in the same time) ?

Thanks

Forum on trading, automated trading systems and testing trading strategies

Magic Numbers and Strategy Tester

Marco vd Heijden, 2020.10.11 18:15

You can only test one EA with one magic number at a time so what do you want exactly ? 

If you define int EXPERT_MAGIC = 1234; and you do a Print(EXPERT_MAGIC); then it should tell you 1234 or what is the magic number.


 
Dude, I don't think it's possible... I even tested it here with two of my robots and it didn't work... but you can open several charts of the same asset with the same timeframe, for example eurusd m1, and in each chart you put a robot so that they all work together.

One important thing: put open order checkers + balance checker in your robot, so that there are no conflicts and your robots don't give errors of opening infinite orders. :)
 
Samuel Cavalcanti Costa #:
Dude, I don't think it's possible... I even tested it here with two of my robots and it didn't work... but you can open several charts of the same asset with the same timeframe, for example eurusd m1, and in each chart you put a robot so that they all work together.

One important thing: put open order checkers + balance checker in your robot, so that there are no conflicts and your robots don't give errors of opening infinite orders. :)

i think that you missed the point of the ops. he wants to test 2 eas in strategy tester -- at the same time.