John.Doe:
Hi All,
Can someone point me to the error in the array, please?
Not sure why i keep getting the array out of range on line (163,12).
Thank you.
Regards,
John
Do you expect us to count down to line 163??
Hi Keith,
Apologies, not sure how to add that counter thing at the side.
John.Doe: Can someone point me to the error in the array, please? Not sure why i keep getting the array out of range on line (163,12).
You declare "priceft[]" as an dynamic array (empty), but you don't assign it as an Indicator buffer, nor do you ever re-size it.
So, it is always empty, with no elements, and therefore, anything you try do with it will always give you a "array out of range" error.
double priceft[],fb[],fc[],f1[],v1[]; ... priceft[shift] = getPrice(inpPrice,open,close,high,low,shift,bars);
The same probably holds true for some of your other dynamic arrays.
hey Fernando,
Solved it.
Forgot my SetIndexBuffers.
Thank you Fernando and Keith.
Regards,
John
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 All,
Can someone point me to the error in the array, please?
Not sure why i keep getting the array out of range on line (163,12).
Thank you.
Regards,
John