![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Dear Guru's;
I have a simple EA that calls up iStochastic for the previous bar. The %K line is exactly right when checked via the subsequent print statement. However the %D line is way off and does not correspond to any nearby bars. I have tried using both "MODE_SIGNAL" as well as "1" in the mode value but get the same incorrect results. Its baffling because
the %K value is exactly right and the code is the same, except for the Mode value.
has anyone had this problem before? Any ideas?
ps: the "HTF" refers to "Higher Time Frame. I use this to determine the Stochastic value of the previous H1 bar, just after the opening of the zero minute bar
many thanks
JGF