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

Re: Calculating Last Intraday bar



PureBytes Links

Trading Reference Links

Gabriel:
>Anyone come up with a way to determine if the current or next bar is the
>last of the day, including holidays, for 2000i.

if time = Sess1EndTime then {current bar is last bar}

if TimeToMinutes(time)+BarInterval = TimeToMinutes(Sess1EndTime) then
   {next bar is last bar}

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com