Use ArraySetAsSeries function.
Indicators are calculated from left to right, You fill cci array from left to right but data should be reversed, i.e data from 0 (current) bar must be at the end!
Indicators are calculated from left to right, You fill cci array from left to right but data should be reversed, i.e data from 0 (current) bar must be at the end!

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
Below is the indicator of CCI MA :
After I change it to EA as below, the data become inaccurate, how actually iMAOnArray work? how to solve this problem?