PureBytes Links
Trading Reference Links
|
Hello VK,
Of course it is a good idea. For backtesting purposes; however, if your
software doesn't have TS's logic restrictions maybe it's not required.
Either way, good software should allow you to determine at the close
to enter on the next bar's open plus or minus whatever.
Wednesday, October 1, 2003, 4:59:32 PM, you wrote:
V> So what do you all believe, is it good to give the user the power to
V> access future bars or should a software restrict that?
V> ||-----Ursprüngliche Nachricht-----
V> ||Von: Gary Fritz [mailto:fritz@xxxxxxxx]
V> ||Gesendet: Mittwoch, 1. Oktober 2003 23:15
V> ||An: omega-list@xxxxxxxxxx
V> ||Betreff: Re: next day open DLL
V> ||
||>> 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"
V> ||
V> ||Yup. That's one of the restrictions of looking at future bars.
V> ||
V> ||But you're doing the wrong thing anyway. "if date<>Date[1]" will
V> ||be true on the first bar of the new day. On that bar you want
V> ||Open, not Open of tomorrow. You use Open of tomorrow if you want
V> ||to access the next day's open at the close of the PREVIOUS day.
V> ||
V> ||Gary
--
Best regards,
Roger mailto:mailrs@xxxxxxxxxx
|