Wait until the short moving average has crossed the long moving average, and at least three bars have closed with the short moving average remaining on the same side of the long moving average.
In the example trade, the long moving average is the dark blue line, and the short moving average is the light blue line. The cross of the moving averages is shown by the yellow arrow, and the three subsequent bars are shown in white.


