Hi great Folks!!! Hope all is well. It seems like automation and coding just never ends as errors ever present. Kindly assist with fixing an issue with the moving average. Code is written to read exponential moving average at current and at a prior shifted value to determine bullish or bearish trend. However, the code attached returns the same values regardless of pair and time frame and always reads BULLISH( Current is always greater than Prior). Any help will be highly appreciated. A link, a tutorial,,,
Thank you much!!!!! Great day yo"all!!
you need to assign a handle in the init function using the function you used
MT5 is not the same logic as MT4
and then use copyBuffer when you need to retrieve the actual MA data
you need to assign a handle in the init function using the function you used
MT5 is not the same logic as MT4
and then use copyBuffer when you need to retrieve the actual MA
Much appreciated Jean Francois Le Bas,,, Thanks!!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi great Folks!!! Hope all is well. It seems like automation and coding just never ends as errors ever present. Kindly assist with fixing an issue with the moving average. Code is written to read exponential moving average at current and at a prior shifted value to determine bullish or bearish trend. However, the code attached returns the same values regardless of pair and time frame and always reads BULLISH( Current is always greater than Prior). Any help will be highly appreciated. A link, a tutorial,,,
Thank you much!!!!! Great day yo"all!!