i had this code which would run only once during the first run of the afl. now
its seems to be running every time. i upgraded to 5.3 recently.
CurrentBarNo=LastValue(TimeNum());
//Lastbarvalues=StaticVarGet("LastBar");
if(IsNull(StaticVarGet("LastBar"))){
StaticVarSet("LastBar", CurrentBarNo );
_TRACE("setting static array" + NumToStr(CurrentBarNo));
}
i was using a version that did not support static arrays before and so i may be
missing something that i should be doing when checking for existance of a
static variable. can someone point out what mistake i am making.