[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: referencing last bar on chart



PureBytes Links

Trading Reference Links

On Wed, 23 Jan 2002, Clive wrote:

> Is there a way  to reference the close of last bar in a chart to use as a
> variable in a strategy?
> 
> Clive
> 

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.