void fillMyBuffer(double &arr[]){ ArrayResize(arr, ArraySize(myArr)); for(int i = 0; i < ArraySize(myArr); i++){ arr[i] = myArr[i] - 158; } }
Thanks Konstantin,
I got that fixed, but after the code is run, I do not see the plotting of the line. Did I miss something else in order to see the line on the main chart window?
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
This mql5 code produces a run time error "array out of range", could some one please help to fix it?
An array with double data type in "file2.mqh" needs to be ploted with each value reduced by a given number. I have done some reading as this is the first time to code this.
Thank you.