Problem with copy buffer
The iMA indicator has only one indicator buffer.
Your code contains an error:
CopyBuffer(ema_handle,0,0,rates_total,emaBuffer); CopyBuffer(ema_handle2,1,0,rates_total,emaBuffer2);
it is correct to write like this:
CopyBuffer(ema_handle,0,0,rates_total,emaBuffer); CopyBuffer(ema_handle2,0,0,rates_total,emaBuffer2);
Hi Vladimir,
Yes I fixed a minute ago.
CopyBuffer( ind_handle , indexbuffernumber , start pos , array[] ). I thought that index buffer number was referring to number set via SetIndexBuffer(). The ref guide is misleading sometimes.
In this case is the number of iMa buffer which is only 1.
Thank you very much indeed
It is — of the indicator you are reading. Moving Average only has one buffer (index zero).
Hi Guys ,
I'm having a problem with CopyBuffer(). As soon as I change the input parameter indicator buffer from 0 to 1 no data is shown on the chart. Does anybody know what's going on ? The reference guide is not helpful at all.
Thank you very much indeed.