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. :(
IMa fails on a different period unless you have that period open on a 2nd window
https://www.mql5.com/en/forum/6760
https://www.mql5.com/en/forum/6760
BUG REPORT - Multi timeframe IMA copybuffer error
- www.mql5.com
BUG REPORT - Multi timeframe IMA copybuffer error.
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
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