Backtesting optimization causing strange results

 

Hello,

I'm attempting to backtest an EA using optimization and getting these strange results:


The first pass goes fine but then all following passes have huge (incorrect) profits. If I stop the backtest and double click on one of the bad passes and run it individually without optimization it works fine.

Any ideas on how to fix this?

Thanks!