Where is the link to the 'Heiken Ashi Stochastic indicator' from CodeBase?
Your posted code | //| Stochastic.mq5 | |
Your iCustom call | handle_hasto = iCustom(NULL,0,"STOCH HA",periodoSTOCH,K,D); |
They do not match.
I changed the stochastic of the normal candles using the closing prices of the heikin ashi

Stochastic Oscillator
- www.mql5.com
The Stochastic Oscillator compares where a security’s price closed relative to its price range over a given time period.

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
I am trying to access the previous values of the Heiken Ashi stochastic from an indicator in MQL5. But when I do that the values are different from the ones on the indicator's chart. For example when the EA opens a trade on a candle, I print the Stoch Heiken Ashi value of the previous candle but it gives me a different value (the one highlighted in yellow) from the one on the chart (the signal one on the white box on the chart). Here's the image to explain better:
***
This is how i get the values:
This is the code of the Heiken Ashi Stochastic indicator:
THANK YOU!