How do I stop a system from reversing my positions when back testing. I know when you switch a strategy on you can stop it from opening more than a certain amount of deals. But when I backrest my long is closed before the conditions are met to open a short and it skews my results.