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

using tomorrow's data



PureBytes Links

Trading Reference Links

Hi All,

I'm using TS2000i and I want to find out what happens on a particular day. Eg: are Monday's up or down?

Normally I would write a system

If DOW(today) = 5 {Friday} then buy next bar on open.
Exitlong MOC

The problem is if Monday is a holiday then the results would include some Tuesday data.

I want to create a system where....

If lastbaronchart = false then begin {so I don't produce an error on the last bar}
If DOW(tomorrow) = 1 {monday} then buy tomorrow's open
Exitlong @ tomorrow's close

How would I code this up?

I tried to download AnyOHLC.zip from traders2traders but that site's database
wasn't working and I'm not sure if it can reference tomorrow's date either?

Regards,
Paul