PureBytes Links
Trading Reference Links
|
At 7:26 AM -0600 1/23/02, Mike Eggleston wrote:
>I did this recently. Look at, I think,
>if lastchartday = date and lastcharttime > (time - 3) then begin
>...
>end;
>
>That will get you right at the end of the most current day.
But only on time-based charts. On tick-based charts it will be true for every bar with the same last date/time stamp.
The following will get you the first bar with the last data/time stamp but I know of no way to get the true last bar.
Vars: LbInit(TRUE);
if LbInit and LastBarOnChart then begin
LbInit = FALSE;
.....
end;
Bob Fulks
|