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

Re: date>date[1]



PureBytes Links

Trading Reference Links

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
> 
>