Blog

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.0/10 (6 votes cast)
EA stops after one trade on backtest..., 7.0 out of 10 based on 6 ratings
Print Friendly, PDF & Email
0

Add a Comment