can someone tell me y it's not working ?

 

& how can i get it work

  int Cnt = 500;
  double TestArray[Cnt];

this is the error i get

 

MQL does not support variable array initalisation.

You have to use:

int Cnt=500;
double TestArray[];
ArrayResize(TestArray,Cnt);

//z

 

oh, thanks

 
qjol:

& how can i get it work

this is the error i get

Hi ALTii here did you have a chance to look at my ea, it runs in backtesting but on a demo account it does nothing, please assist

A

Reason: