how to add external value to array

 

hi im trying to add some external bool var to array i dont want to use the array resize meathod because it will shrink my array 

if(M1)
   {
   ArrayResize(TimeFrame, ArraySize(TimeFrame) + 1)
   TimeFrame[ArraySize(TimeFrame) - 1] = "M1";
   }

 how to add them as they are 

extern bool trade_the5=False;
extern bool trade_the15=True;
extern bool trade_the30=True;
extern bool trade_the60=True;
extern bool trade_the4h=True;
bool choies []={trade_the5,trade_the15,trade_the30,trade_the60,trade_the4h};

i get the constant expersion required , im asking this because i want the array size to match another array this will be esaier , thanks 

 

The bracket version only works with constants.

When in doubt, THINK!

bool choies [5];
OnInit(){
   choies [0]=trade_the5; 
   choies [1]=trade_the15;
   ⋮
}
 
William Roeder:

The bracket version only works with constants.

When in doubt, THINK!

 I don’t know how I messed that in the documentation, thanks 
Reason: