Download MetaTrader 5

Handle of a Buffer?

To add comments, please log in or register
Andriy Moraru
1261
Andriy Moraru  

Is it possible to get a handle of a buffer?

I need the handle to use it in the indicator calls (like iMA, iStdDev).

Perhaps, it's possible to calculate and indicator over an array of day in some other way?

Rashid Umarov
Admin
12067
Rashid Umarov  
See example in the Section Price constants

Andriy Moraru
1261
Andriy Moraru  
Rosh :
See example in the Section Price constants


I am sorry, but how is it related to my problem?

I'll post the example here:

I have a buffer that contains some calculations:


   for (int i = 0; i < limit; i++)
       bbMacd[i] = MABuff1[i] - MABuff2[i];

The I want to calculate a MA on the data from this buffer:


myMA = iMA(NULL, 0, Period, 0, MODE_EMA, bbMacd);


Obviously, I can't pass the buffer directly, I need its handle.

To add comments, please log in or register