EA stops after one trade on backtest…

Q: “The backtesting script works fine for USD based currency pairs but if I use any other pairs, Yen based or other cross it gives a “exchange rate cannot be calculated error”.  
I see this on every EA that I test if the currency is not USD based.  Any ideas?

A: This is an MT4 limitation (occurs when you’re not connected to the broker’s server) when testing a non USD pair with a USD account (or a non EUR pair on an EUR account, etc.) using the backtesting scripts.
You can override this by selecting a different account currency for the back test. This is done by pressing the [Expert properties] button in the Strategy tester to bring up the following window:

Now you need to set the currency for the initial deposit to reflect the currency in the tested currency cross (for EURGBP, EURCHF and EURJPY you need to select EUR as your initial deposit currency).


VN:F [1.9.22_1171]
Rating: 7.4/10 (7 votes cast)
EA stops after one trade on backtest..., 7.4 out of 10 based on 7 ratings
Print Friendly, PDF & Email

Add a Comment