You don't need it to make money trading so don't waste your time looking for the perfect system with a 100% winning rate, just play the odds, manage your risk and you will be fine.
Do the opposite for short positions. Stop is the middle of the range of the 40 previous bars. Liquidate long position and take profit if two consecutive bars are completely below (or above for short positions) the 2 moving averages.