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

AW: next day open DLL



PureBytes Links

Trading Reference Links

So what do you all believe, is it good to give the user the power to
access future bars or should a software restrict that? 



||-----Ursprüngliche Nachricht-----
||Von: Gary Fritz [mailto:fritz@xxxxxxxx]
||Gesendet: Mittwoch, 1. Oktober 2003 23:15
||An: omega-list@xxxxxxxxxx
||Betreff: Re: next day open DLL
||
||> If I write If date<>Date[1] then Todaysopen=Open of tomorrow;  {so
||> i'll be able to write later . Buy at Todaysopen + N*Range stop;} I
||> immediately get an error which says: " Cannot mix next bar prices
||> with data streams other than data1"
||
||Yup.  That's one of the restrictions of looking at future bars.
||
||But you're doing the wrong thing anyway.  "if date<>Date[1]" will
||be true on the first bar of the new day.  On that bar you want
||Open, not Open of tomorrow.  You use Open of tomorrow if you want
||to access the next day's open at the close of the PREVIOUS day.
||
||Gary