Hello all,

 I found this code in one of the files on the autrading group. I think
herman wrote it.

PrevDT = StaticVarGet("DateTime");

DT = LastValue(DateTime());

NewBar = DT != PrevDT;

StaticVarSet("DateTime",DT);

My question is how could DT != PrevDt.,

Because  DT is lastvalue date time and the staticvar datetime is set to DT.
Should not they always be the same. What am I  missing here. Appreciate your
help.

thanks
zeek

Reply via email to