Download MetaTrader 5

Is iMA data history buffered and accessible?

To add comments, please log in or register
What are the latest MQL5.community news? The Wall section will tell you!
lex2pb
42
lex2pb 2016.11.27 00:24 

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 

Keith Watford
Moderator
9627
Keith Watford 2016.11.27 00:31  
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.
To add comments, please log in or register