Indicator is slow and don't work in other time than 1 hour, why?
Your indicator was written in non effective way. You should read the article 3 Methods of Indicators Acceleration by the Example of the Linear Regression.
Did you mean non efficient way, Rosh ?
There's already a loop right inside ExponentialMAOnBuffer() function, and what makes your CI very slow, is that you call this function twice from inside a main loop. A 2 loops within a main loop. I don't blame you. This is typical MQL4 programmers, where he would simply call iMA () function specify MODE_EMA, and just changing last parameter of bar shift. :(
https://www.mql5.com/en/forum/6760
- www.mql5.com
Hi,
I was trying to built the Acceleration Bands indicator. I finished it, it looks okay, except by it does not seems to work in other time than 1 hour and takes long time to plot into the chart.
If someone knows why, please help. I will provide it for free in this forum.
Thank you
rodrigosm