My results are mixed. In strategy analyzer, using optimization, I receive these results:

When I run this strategy for the period in MarketReplay, the fills are completely different (lag behind my almost a bar it seems) and my P/L is mixed.

Could someone take a look at my code and see if there's a glaring reason why the results are so different?
Thanks


Comment