for(int iCnt=ArraySize(iS); iCnt>=0; iCnt--){ ⋮ else{iS[iCnt]=iS[iCnt+1];}
Array exceeded. iCnt is the size of iS. Therefor indexes of iS are [0 … iCnt - 1]
William Roeder:
Array exceeded. iCnt is the size of iS. Therefor indexes of iS are [0 … iCnt - 1]
Yes Sir -
Thankx
Brian Lillard:
Yes Sir -
Thankx
You also want it to be
for(int iCnt =ArraySize(iSp)-1; ...
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
Confusing how ArraySize doesn't work in a loop.
I am looping the array elements to move all down and update the zero array with the latest spread.
The string should show the spreads like "5 3 1 1 7 4 4 3"