I'm trying to modify the MACD EFS (macdx-overband.efs) found on another thread for backtesting. First, I add a filter to the condition
&& ((vMACD1 > .25) || (vMACD1 < -.25))
and that seems to work as far as limiting trades but it creates a new problem. Due to the filter, not all trades are closed before a new one in the same direction occurs. For example, system goes short, it would have gone long except for the filter, and then it goes short again. The result in backtesting appears to be two short positions. Can someone help me with this? When I try to fix I get extremes in both directions (no trades or thousands of trades).
Thanks.
Mark
&& ((vMACD1 > .25) || (vMACD1 < -.25))
and that seems to work as far as limiting trades but it creates a new problem. Due to the filter, not all trades are closed before a new one in the same direction occurs. For example, system goes short, it would have gone long except for the filter, and then it goes short again. The result in backtesting appears to be two short positions. Can someone help me with this? When I try to fix I get extremes in both directions (no trades or thousands of trades).
Thanks.
Mark
Comment