problem with backtest

 

In MT4 strategy tester EA enter and exit in the prices that did not even existed.why this happen?


 
Rasool soveizi: In MT4 strategy tester EA enter and exit in the prices that did not even existed.why this happen?

Forum on trading, automated trading systems and testing trading strategies

Weird positions of backtest orders

Fernando Carreiro, 2023.02.06 17:50

It's called "spread"! There is a Ask price and a Bid price. Charts only shows the bars/candles based on Bid prices.

  • A "buy" position opens at the Ask price and closes at the Bid price.
  • A "sell" position opens at the Bid price and closes at the Ask price.
EDIT: Enable the Ask price line on your chart so that you can track the current value visually.