It is what I found in documentation here:
MQL5 Reference - Technical Indicators - iStochastic
int iStochastic( string symbol, // symbol name ENUM_TIMEFRAMES period, // period int Kperiod, // K-period (number of bars for calculations) int Dperiod, // D-period (period of first smoothing) int slowing, // final smoothing ENUM_MA_METHOD ma_method, // type of smoothing ENUM_STO_PRICE price_field // stochastic calculation method );
![MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5 MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5](https://c.mql5.com/36/55/mql5-reference-how-to-use-algorithmic.png)
- www.mql5.com
%K = (C−L14/H14−L14) × 100
Wrong.
%K = ( (C−L14)/ (H14−L14) ) × 100
It is what I found in documentation here:
MQL5 Reference - Technical Indicators - iStochastic
Thanks, but I can't find how to calculate this, variables is here with comments:
handle=iStochastic(name,period,Kperiod,Dperiod,slowing,ma_method,price_field);
Function with all parameters that need to calculate, but nothing about how to calculate this ... if I'm setting "Slowing" to 0 - I will lost all data of Stochastic. I think that is multiplier, but I don't know how to set value for exclude their works here (zero is not good, maybe 1 ... )
Get full formula will be better ...
They are not write about too ...
![Stochastic Oscillator - Oscillators - Indicators - Charts - MetaTrader 5 for Android - MetaTrader 5 Android Help Stochastic Oscillator - Oscillators - Indicators - Charts - MetaTrader 5 for Android - MetaTrader 5 Android Help](https://c.mql5.com/36/55/stochastic-oscillator-oscillators.png)
- www.metatrader5.com
Learn to search the CodeBase: Stochastic Oscillator by MetaQuotes.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have this
but I see that in MT5 using additional parameter "Slowing" that change result, but I can't find formula with this parameter ... Maybe anybody know or maybe I can see it in the program sources?