Code: Select all
//Function _fRateOfChangeArray
Inputs:
C2[MaxSize](numericarray),
Len(numericsimple);
…
Code: Select all
…
For counter=0 to Ma1+1
Begin
RocArray[counter]=_fRateOfChangeArray(PriceArray[counter],Roc1Len); // bad code (PriceArray[counter]) in this line.
End;
//It expects an array and not a single value.
What I am trying to do is to change the starting index of the given array.
It should start with position counter and not with “0”.
So RocArray[0] should get the _fRateOfChangeArray which starts from index “0”.
RocArray[10] should get the _fRateOfChangeArray which starts from index ”10” – the function itself will consider the index “10” as the starting index and will continue from there.
Does someone has an idea how to change the starting index of an passing array?