When I look into the individual trades, I notice that when Exrem is included, some valid trades are missed. I am at a loss why this is so. I thought Exrem only removes repetitive, excessive signals and not valid signal?
What are some possible ways for ExRem to affect backtest results?
ExRem removes ALL extra signals FROM THE BEGINNING of available data and NOT from your "range". Generally speaking ExRem should NOT be used. Backtester removes extra signals on its own http://www.amibroker.com/guide/h_portfolio.html
Always I mean ALWAYS use this advice if you don't understand how your code works: How do I debug my formula?
No one is going to fix your codes unless you understand what you are doing yourself.