I’ve coded a section preventing my system from opening a new position in the same direction as the old position just after a close of the old position. (I use a time exit so the entry signal can still be valid at close). It works on the backtest but I just wanted to double check if this is correct or if there is another way to do the same thing?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.