Download MetaTrader 5

Handle of a Buffer?

To add comments, please log in or register
Publish your article and get a reward!
Andriy Moraru
1160
Andriy Moraru 2009.12.18 15:51 

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
11995
Rashid Umarov 2009.12.18 17:40  
See example in the Section Price constants

Andriy Moraru
1160
Andriy Moraru 2009.12.18 18:28  
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