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
claudio.zeccolella: I thought that index buffer number was referring to number set via SetIndexBuffer().
It is — of the indicator you are reading. Moving Average only has one buffer (index zero).
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 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.