2018.06.05 19:42:23.176 2016.03.01 00:03:30 array out of range in 'Ratio expert advisor.mq5' (54,20)
- Journal of Testing - Algorithmic Trading, Trading Robots
- Williams' Percent Range - Oscillators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
- Double Exponential Moving Average - Trend Indicators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
17003821:
2018.06.05 19:42:23.176 2016.03.01 00:03:30 array out of range in 'Ratio expert advisor.mq5' (54,20)
You need to set the size of the array.
Look at the ArrayResize() function.
Anthony Garot:
Thank you very much for your assistence, very sorry to trouble you where and how exactly do I resize the array.
You need to set the size of the array.
Look at the ArrayResize() function.
17003821:
Thank you very much for your assistence, very sorry to trouble you where and how exactly do I resize the array.
Thank you very much for your assistence, very sorry to trouble you where and how exactly do I resize the array.
if ( ArrayResize(RatioArray,lookbackperiod-1) == -1 ) { Print("Failed to resize"); } for(int x=0; x<lookbackperiod - 1;x++) { double k=ChartArray[x]/TheOtherCurrencyPairArray[x]; RatioArray[x]=k; }
Before you assign values to it.
Marco vd Heijden:
Before you assign values to it.
Before you assign values to it.
Thank you very much

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