Tester cannot calculate prices in Strategy Tester with MT4

 

Hi!


I've downloaded tick data from Dukascopy and whenever I try to backtest any of my EA's in MT4 I get the below error "tester cannot calculate prices". If i remove all the data from Dukascopy and simply get the historical data from my broker (IG) I can backtest the EA just fine, although just the limited time that is offered.


Anyone knows why this keeps on happening?


I've tried with both SPX500 and DAX (GER30) and it's the same issue with both.


0 19:31:34.094 Expert Strategy 3.1.113(1) SPX500,H1: loaded successfully

3 19:31:34.096 TestGenerator: file "C:\IG MetaTrader 4 Terminal\tester\history\SPX50060_0.fxt" is read-only

3 19:31:34.100 TestGenerator: symbol SPX500 period 60 model 0 from 2020.03.19 to 2020.09.17

2 19:31:34.102 1970.01.01 00:00:00  Strategy 3.1.113(1) inputs: MagicNumber=11111; mmRiskPercent=2; mmDecimals=0; mmStopLossPips=100; mmLotsIfNoMM=0.5; mmMaxLots=1; ExitAtEndOfDay=0; ExitOnFriday=0; LimitTimeRange=0; ExitAtEndOfRange=0; MaxTradesPerDay=0; MinimumSL=0; MinimumPT=0; MaximumSL=0; MaximumPT=0; UseSQTickSize=0; MainChartTickSizeSQ=1; sqDisplayInfoPanel=1; ModifyInsteadOfReplacing=1; OpenBarDelay=0; 

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 Starting the EA

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 Starting the EA

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 Warning! Min distance of this symbol is greater than min distance set in SQ! The backtest results may differ

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 Warning! Min distance of this symbol is greater than min distance set in SQ! The backtest results may differ

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 MT min distance: 1.00000000, SQ min distance: 0.00000000

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 MT min distance: 1.00000000, SQ min distance: 0.00000000

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 00:00 --------------------------------------------------------

0 19:31:34.180 2020.03.19 00:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.201 2020.03.19 01:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.207 2020.03.19 02:00:01  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.214 2020.03.19 03:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.222 2020.03.19 04:00:01  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.226 2020.03.19 05:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.230 2020.03.19 06:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.234 2020.03.19 07:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.239 2020.03.19 08:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.246 2020.03.19 09:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.251 2020.03.19 10:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.256 2020.03.19 11:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.260 2020.03.19 12:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.266 2020.03.19 13:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.275 2020.03.19 14:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.292 2020.03.19 15:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: NOT ENOUGH DATA: Less Bars than 30

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Computing Money Management for order -  Risk fixed % of account

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 MODE_TICKSIZE: 0.01, MODE_TICKVALUE: 21.897675, MODE_POINT: 0.01

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Computing Money Management - Smallest_Lot: 0.01, Largest_Lot: 30, Computed LotSize: 0

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Max money to risk: 20, SL:2344.9, One lot drawdown: 197079.075, Point value: 2189.7675

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Calculated LotSize is <= 0. Using LotsIfNoMM value: 0.5)

0 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Opening order type BUY STOP with price 2434.9. Current market prices: 2424.3 / 2423.7

2 19:31:34.307 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: open #1 buy stop 0.50 SPX500 at 2434.9 ok

0 19:31:34.312 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Modifying order with ticket: 1, SL: 2344.90000000 and PT: 2734.90000000

2 19:31:34.312 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: modify #1 buy stop 0.50 SPX500 at 2434.9 sl: 2344.9 tp: 2734.9 ok

0 19:31:34.312 2020.03.19 16:00:00  Strategy 3.1.113(1) SPX500,H1: - SQ LOG 2020.03.19 16:00 Order modified successfuly

1 19:31:34.312 2020.03.19 16:00:00  Strategy 3.1.113(1): tester cannot calculate prices

0 19:31:34.312 SPX500,H1: 208314 tick events (17 bars, 13786738 bar states) processed in 0:00:00.219 (total time 0:00:00.219)

0 19:31:50.087 Expert Strategy 3.1.113(1) SPX500,H1: removed

0 19:31:50.094 Expert Moving Average SPX500,H1: loaded successfully

3 19:31:50.096 TestGenerator: file "C:\IG MetaTrader 4 Terminal\tester\history\SPX50060_0.fxt" is read-only

3 19:31:50.096 TestGenerator: symbol SPX500 period 60 model 0 from 2020.03.19 to 2020.09.17

2 19:31:50.098 1970.01.01 00:00:00  Moving Average inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3; MovingPeriod=12; MovingShift=6; 

2 19:31:50.211 2020.03.25 11:00:11  Moving Average SPX500,H1: open #1 sell 0.10 SPX500 at 2414.9 ok

1 19:31:50.211 2020.03.25 11:00:11  Moving Average: tester cannot calculate prices

2 19:31:50.211 2020.03.25 11:00:11  Tester: order #1 is closed

0 19:31:50.211 SPX500,H1: 1403006 tick events (103 bars, 13786738 bar states) processed in 0:00:00.109 (total time 0:00:00.109)

0 19:32:04.332 Expert Moving Average SPX500,H1: removed

 
I accidentally pasted to much of the log, but as you can see I tried the standard built-in "Movine Average" EA with the same error. I strongly believe there is something wrong with the Dukascopy data but I can't seem to figure out what.
 
Tried with EURUSD data from Dukascopy and it works just fine. How come SPX500 and DAX doesn't work?
 
The FXT files were set to "read-only". My version of MT4 didn't like that at all. After disabling "read-only" on all FXT files everything started to work correctly.
 
snam #:
The FXT files were set to "read-only". My version of MT4 didn't like that at all. After disabling "read-only" on all FXT files everything started to work correctly.

Sorry to bump such an old thread,

But I've just encountered the same issue, and your comment had helped me.

I can confirm that this resolves this, for anyone else experiencing the same thing.

 
snam #:
The FXT files were set to "read-only". My version of MT4 didn't like that at all. After disabling "read-only" on all FXT files everything started to work correctly.

Tell me how to change the rights to FXT?