Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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