Discrepancy in calculation of Stochastic?

 

Hi,

 In most of the literature around the Stochastic oscillator is defined as:

 %K = 100*(CLOSE - MIN (LOW, Pk), Sk) / (MAX (HIGH, Pk) - MIN (LOW, Pk)), Sk) 

 However in MT4 the Stochastic is defined as:

 %K = 100*SUM (CLOSE - MIN (LOW, Pk), Sk) / SUM (MAX (HIGH, Pk) - MIN (LOW, Pk)), Sk)

The main difference is the summation over a period Sk in both the numerators and denominators. Why is this? Are the two definitions equivalent?

Thank you,

Nikos 

 
https://forum.mql4.com/47539