How can tell a strategy to enter and exit a trade after three consecutive bars have closed under a certain condition. For example, if I want to make a strategy based moving average crossovers and I don't want it to enter the trade immediately after the crossover but I want it to enter the trade after three bars have closed under the condition I've set. How would that look like in terms of coding? Thanks!