Weird problem

 

When I run a backtest the strategy tester opens and closes positions over the current period high. For example.

#6 buy 0.10 EURUSD at 1.30837

1.30837

EURUSD M1

2010.08.02 03:36

Open: 1.30823

High: 1.30827

Low: 1.30821

Close 1.30822

It does that on MT4 and MT5, on both of my 2 computers and using Moving Average.mq4 and Moving Average.ex5 or any custom EAs.

Please help me fix this problem.

 

Try running a slow motion visual backtest. It may provide some clues...........

The above example is not sufficient to draw any conclusions, as the backtester would have added the spread to the current Bid price to calculate the Ask price, so I can see no problem with the examle quoted.

 

You're right, thank you!!

Reason: