Array out of range" error? #propertystrict;//This line on the topintX_1 = (int)ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR)-1;intX_2 = (int)ChartGetInteger(0,CHART_VISIBLE_BARS)-2;intX_3 = X_1-X_2;intLowBarNumber =iLowest(Symbol(),Period(),MODE_LOW,X_2,X_3);intHighBarNumb...
SimpleTest EURUSD,M5:array out of rangein 'SimpleTest.mq4' (72,41) The issue is that my condition is false on the first calculation, so there is no data for coolLineBuffer to reference in the past. What is the proper way to check for this in MQL4? I'd be happy simply setting the...
ArrayRange The function returns the number of elements in a selected array dimension. int ArrayRange( const void& array[], // array for check int rank_index // index of dimension ); Parameters array[] [in] Checked array. rank_index [in] Index of dimension. Return Value Number of ...
{ //--- receive the size of i dimension temp=ArrayRange(array,i); //--- print PrintFormat("dim = %d, range = %d",i,temp); } //--- Result // dim = 0, range = 10 // dim = 1, range = 5 // dim = 2, range = 2 // dim = 3, range = 4 }Array...