iBandsOnArray

 

Hello

I want to use iBandsOnArray on data of a moving average (iMA) . could you please tell me how can I have an array from outputs of iMA? Is there any sample available?

Thanks

 
AR,

See the ATR code ( "[MetaTrader Dir]\experts\indicators\ATR.mq4" ).

It only uses "iMAOnArray", but i think it will help you.

See too:

https://docs.mql4.com/indicators/iBandsOnArray
 

So it means that we must transfer array cell by cell, there is no way to copy data from indicator(iMA) buffer all to gether or point to indicator buffer? Am I right?

 
AR,

see the "ArrayCopy" function. You can copy an entire array to another one.

https://docs.mql4.com/array/ArrayCopy
 

Thanks rfiche

Reason: