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

Re: date>date[1]



PureBytes Links

Trading Reference Links

try using time instead of date.
date only works on dayonly data (not globex, ie ES, NQ)
so something like

if time = sess1firstbartime then ...

ERic

----- Original Message ----- 
From: "Ian Waugh" <ianwaugh@xxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Cc: <ianwaugh@xxxxxxxxx>
Sent: Friday, January 09, 2004 8:21 AM
Subject: Re: date>date[1]


> Anyone...?
> 
> Ian
> 
> > Going bananas with this...
> > 
> > On intra-day charts, I quite often want to set up some variables on 
> > the first bar of the day and usually use:
> > 
> > if data>date[1] then...
> > 
> > and it usually seems to work okay. However, I have a chart with 
> > minute bars as data1 and daily bars as data2 and it doesn't seem to 
> > be working correctly. Should it?
> > 
> > However, this:
> > 
> > if date>date[1] of data2 then...
> > 
> > does seem to work. Comments?
> > 
> > However, if I want to use the same code on charts which may not have 
> > a second data set it causes problems.
> > 
> > Does anyone have any alternative suggestions for code to set up 
> > variables on the first bar of the day?
> > 
> > Ian
> > 
> > 
>