As far as I know, when iMA is called in an EA, the MA indicator runs in the background so historic buffer indexes are always available.
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 All,
Would greatly appreciate a pointer. Working on an EA that uses 12 different MA combinations (periods and shifts) with frequent access to MA values to earlier bars for varying combinations. Some of the periods are long. Copying each set with each bar seems extremely wasteful and given the terminal does show MAs I was wondering if historical MA values are accessible via code?
Or am I simply better off writing my own MA code?
Thanks in advance,
Lex