Thanya Kanapornpong / Publications
Forum
Array Out Of Range Problem, Why it related to Global scope variable declaration?
I have tested simple code below and i got Array Out of Range Error. #property strict void OnTick () { Test(); } void Test() { double a[ 500 ]; Print (a[ 10 ]); ArraySetAsSeries (a, true ); double ma = iMAOnArray(a, 0 , 10 , 0 , MODE_EMA , 1 ); } but when i add one variable in