Yes but the system is not based just on the cross, the cross must happen and the stochk must be above 20 for an up cross and below 80 for a down cross so what the script does is determine if the price is above or below the 100 ema and that the stochs are in the right order, then as long as no other orders are open it will trade as long as the criteria are met. This means that if the price is above the 100 ema && the stochs are crossed && the stochs are above 20 that it will take a long order. Similar for short.

This prevents it from entering when the stochs cross below 20 and above 80. In testing this does make a difference to the profitability.