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

RE: date>date[1]



PureBytes Links

Trading Reference Links

Well, since TS would have thrown up an error message if I had done so, I 
may have discovered this eventually...(:-) My programming is only 
marginally better than my typing...

Ian

> > 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...
> 
> since you inadvertently typed "data" instead of "date" here, check to 
> be
> sure you aren't doing likewise in your code  :-)
> 
> ---Original Message-----
> From: Ian Waugh [mailto:ianwaugh@xxxxxxxxx] 
> Sent: Friday, January 09, 2004 11:21 AM
> To: omega-list@xxxxxxxxxx
> Cc: ianwaugh@xxxxxxxxx
> 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
> > 
> > 
>