Didn t find anything here and in the net but on mql5 where they wrote i CAN T be possible:
To create an array of a struct! I tried 4 my class to store informations and the declarations is here:
Also a little testing if it works:
So U haven t to create an array for every information....and you can put arrays in the struct and make an array...and resize however U want...interesting & good for clearly coding!
To create an array of a struct! I tried 4 my class to store informations and the declarations is here:
Inserted Code
struct TSupRes{
int value;
double indizes[];
double type[];
int noOfHighs;
int noOfLows;
int noOfLowHighs;
}; Also a little testing if it works:
Inserted Code
TSupRes supRes[];
// Resizing the whole array
ArrayResize(supRes,10,10);
// Resizing the indizes array of the first(0) element
ArrayResize(supRes[0].indizes,5,5);
// Looping through my arr and some settings and output for testing!
for (int k=0; k<ArraySize(supRes);k++){
ArrayResize(supRes[k].indizes,5);
supRes[k].noOfLows=2+k;
supRes[k].indizes[0]=3;
Alert(k+":"+supRes[k].noOfLows);
Alert(k+":"+supRes[k].indizes[0]);
} Vucking good EA coder... https://t.ly/AZjRM