@darrow You need to specify that when MA-cross-buy is true, at the same time, MA-cross-sell is false. You can do that just adding the other variable inside blocks 17 and 31. Just use another slot insode them. That way you wil be sure that a buy can be done and a sell will never be done until a reversal crossing happens. Onviously you will have to opdate the positions of those variables accordingly.