The results between the backtest in sq and in mt5 are clearly very different. The backtest data in strategyquant are eurusd downloaded from dukascopy and cloned to est+07 new york. The strategy settings are the same in both platforms and the data used in mt5 are exported by sq, so the difference in number of trades has no justification except that it is a bug. Attached photos of the results and the strategy.