Multi symbol EA crash
-
Hi,
I'm trying to build a multi symbol EA.
I want to create an EA that will loop on multiple pairs, check indicators and values of each pairs and create trades accordingly.
However, when I try the "buy now" block on a different pair, it crashes and gives me a "zero divide" error.Here is an example:
https://fxdreema.com/shared/6yS9injAdIf this EA is assigned to the EURUSD pair, then it will crash with the following error:

Line 5094 is this one:

I tried without the "set market" block, but the result is the same.
Any idea how to solve this ?
Thank you in advance,
Valentin -
Ok, after some additional research I found out it is impossible to backtest multiple currencies with MT4.
I tried with MT5 and it works fine.
Issue resolved.
Thank you, -
Tu EA es un sistema de arbitraje entre diferentes activos?