PureBytes Links
Trading Reference Links
|
Have a question about EasyLanguage:
Is there a property or function that I can access in EL that will tell me
that the strategy is looking at the latest quote rather than a quote in
history?
I thought of doing it this way but it sure seems awkward:
Vars: SavTime(0), ItIsRealTimeNow(0);
{GET CAUGHT UP TO THE REAL TIME MINUTE}
If (Date = CurrentDate) and (Time = CurrentTime) Then begin
SavTime = Time;
end;
{NOW SET TO GO AT NEXT MINUTE}
If (Time > SavTime) and (SavTime > 0) Then Begin
ItIsRealTimeNow = 1;
end;
{OK NOW THE PART OF MY STRAT THAT NEEDS TO KNOW DOES THIS}
If (ItIsRealTimeNow > 0) Then Begin
{DO MY THING WITH MY DLL FUNCTION}
end;
Thanks,
Mike.
|