iHighest for the highest price but.... - page 2 12 New comment palepalepale 2020.07.20 05:22 #11 Hello.Im getting the following message when declaring the array: '[' - invalid index value when I do this: double higharray[L]; L is a candle number amount that changes and it is calculated before declaring the array "higharray", it might be any number usually from 30 to 100. Why is this two-dimensional Questions from a "dummy" array size declarator won't Keith Watford 2020.07.20 05:33 #12 Show the code palepalepale 2020.07.20 06:29 #13 double jopo=44; double higharray[jopo]; Its not even letting me do this. probably something very basic. Dont I need to declare the size of the array? I havent used arrays up until this point. Keith Watford 2020.07.20 06:45 #14 double jopo=44; double higharray[]; ArrayResize(higharray,jopo); Keith Watford 2020.07.20 06:46 #15 I just realised that you are working in MQL4 I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section. In future please post in the correct section. I will move your topic to the MQL4 and Metatrader 4 section. Buy if current price EA to open position please help solve this palepalepale 2020.07.20 06:48 #16 Keith Watford: got it, arrays need to have a defined number size or resize it if its a variable. Very thankfull sir. palepalepale 2020.07.20 06:49 #17 Keith Watford: I just realised that you are working in MQL4 I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section. In future please post in the correct section. I will move your topic to the MQL4 and Metatrader 4 section. Oh ok, sorry and thanks again. 12 New comment
Hello.
Im getting the following message when declaring the array:
'[' - invalid index value
when I do this:
double higharray[L];
L is a candle number amount that changes and it is calculated before declaring the array "higharray", it might be any number usually from 30 to 100.
Its not even letting me do this. probably something very basic.
Dont I need to declare the size of the array? I havent used arrays up until this point.
I just realised that you are working in MQL4
I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
got it, arrays need to have a defined number size or resize it if its a variable. Very thankfull sir.
I just realised that you are working in MQL4
I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
Oh ok, sorry and thanks again.