CopyBuffer

samjesse

Active Trader
Aug 30, 2011
118
0
27
Hi

I need to copy the latest 300 values of the iStochastics into an stochBuffer
Is the following correct?

MQL5:
   stoHandle = iStochastic(_symbol, _period, 14, 3, 3, MODE_SMA, STO_LOWHIGH);
   CopyBuffer(stoHandle, 0, 0, 300, stochBuffer);
 
Last edited by a moderator:

samjesse

Active Trader
Aug 30, 2011
118
0
27
Is there a way to copy the latest 300 values of the iStochastic indicator in a code running in a CLASS/INCLUDE file where rates_total is out of scope to do:
MQL5:
CopyBuffer(stoHandle, 0, rates_total-300, 300, stochBuffer);

or. how can I get the ArraySize(iStochastic); since iStochastic returns an int?
 
Last edited by a moderator: