Indicator CCI MA convert to EA
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!
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?