The tester tries to retrieve the history of an unrelated currency pair.

 
I need help.

I'm trying to optimize an EA I created myself on MT5, but it won't run when I press the start button.

The broker is DECODE Fx and target currency pair is XAUUSD, but the operation log shows it's also trying to download historical data for XAUJPY, which is unrelated.

Since there's no historical data for the test period, the tester seems to be stopping. Why is this happening? Is there a way to avoid this?

I'm trying re-install MT5 and doing test again.

The situation did not change.



2026.08.13 11:31:32.220 Tester XAUUSD: history data begins from 2024.04.18 00:00

2026.08.13 11:31:32.220 Tester XAUJPY: found history data from 2026.08.07 00:00 to 2026.08.13 00:00, specified period is out of this range

2026.08.13 11:31:32.220 Tester no history data, stop testing
 
関輝嗣:
The... target currency pair is XAUUSD, but the operation log shows it's also trying to download historical data for XAUJPY, which is unrelated.

99% of the time, problems such as this are proverbially "your code." Inspect your symbol calling code for accuracy. To avoid any doubt whatsoever about your code, consider hardcoding all instances of symbol calls as "XAUUSD." 

 
関輝嗣:
I need help.

I'm trying to optimize an EA I created myself on MT5, but it won't run when I press the start button.

The broker is DECODE Fx and target currency pair is XAUUSD, but the operation log shows it's also trying to download historical data for XAUJPY, which is unrelated.

in my experiences, this happens when there are gaps in the history of the symbol you are testing. This has result of mt5 to make fake history to fill those gaps. These can be easily detected at the start of your backtest log in the journal. Post the start of the journal, before the 2nd trade is opened and we will point it out to you.

but this also happens if the margin currency is not the same as your account's deposit currency. This has result of mt5 to retrieve a similar symbol with the margin currency so that it can convert between the 2 currencies.

 
Thank you all for your responses.

My code uses the _Symbol variable, and the tester's currency pair setting is XAUUSD.


I have also asked the broker's representative to investigate the cause.
 
関輝嗣:
I need help.

I'm trying to optimize an EA I created myself on MT5, but it won't run when I press the start button.

The broker is DECODE Fx and target currency pair is XAUUSD, but the operation log shows it's also trying to download historical data for XAUJPY, which is unrelated.

Since there's no historical data for the test period, the tester seems to be stopping. Why is this happening? Is there a way to avoid this?

I'm trying re-install MT5 and doing test again.

The situation did not change.



2026.08.13 11:31:32.220 Tester XAUUSD: history data begins from 2024.04.18 00:00

2026.08.13 11:31:32.220 Tester XAUJPY: found history data from 2026.08.07 00:00 to 2026.08.13 00:00, specified period is out of this range

2026.08.13 11:31:32.220 Tester no history data, stop testing

Maybe your account currency is jpy, in that case strategy tester downloads the additional pair in order to be able to convert profits to your account currency.

I.e. if you test USDJPY on an EUR Account, also EURJPY is downloaded and so on...

 
関輝嗣 #:
Thank you all for your responses.

My code uses the _Symbol variable, and the tester's currency pair setting is XAUUSD.


I have also asked the broker's representative to investigate the cause.
you need to read the responses again.