The stochastic oscillator uses a quite complex mathematical formula to calculate simple moving averages:
%K=100(C–L14)/(H14–L14)L14=thelowofthe14previoustradingsessionsWhere:
C=themostrecentclosingpriceH14=thehighestpricetradedduringthesame14daysperiod%K=thecurrentmarketrateforthecurrencypair%D=3periodmovingaverageof%K
This step is similar to the previous rule, but this time we apply the rules on the 15-minute time frame: wait for the Stochastic indicator to hit level 20 and the %Kline (blue line) is crossing above the %D line (orange line).