Profit in strategy tester backtest optimizer is bugged.

 

Hello,

I ran a backtest of my EA I'm building using the backtest optimizer. Started with 1000 USD, ran it over 2020 year data full tick data. Was surprised to find some entries that were producing 300K profit in a year with only starting 1000 USD - Thought I had hit the jackpot there for a second. After setting "set Input parameters" and running the EA again in normal backtest mode, it only came out as profit of 3500 USD. Still good, but not as good as 300K lol. When I looked at total trades, it said 179 running the normal test, but the optimizer said it made 180. That means it probably counted an open trade or something at the end. But my trades have a tight stop loss and tight take profit so that last open position wouldn't have made it to make like 300K in one trade even with the lot size.

The backtest optimizer probably shouldn't count open trades at the end of the test.

Chris.

Reason: