Get tomorrow's open
Posted: 17 Sep 2009
Hi All,
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) = 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) = monday then buy tomorrow's open
Exitlong @ tomorrow's close
How would I code this up?
Regards,
Paul
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) = 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) = monday then buy tomorrow's open
Exitlong @ tomorrow's close
How would I code this up?
Regards,
Paul