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

Re: What day is it?



PureBytes Links

Trading Reference Links

Easiest way is to just put an array of some sort that defines the
exceptions.But, since the beginning day of the week is always at least 2
greater than the last day of the week a julian date comparison could be
done.

Jim Bronke
Phoenix, AZ



----- Original Message -----
From: "Thomas Alexander" <alexander@xxxxxxxxxxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Sunday, December 09, 2001 5:53 PM
Subject: What day is it?


: Greetings!
:
: Running TS5 I have a day of week dilemma. On the last trading day of the
week I
: want to put in an order for the next bar, the first trading day of the
next
: week. But because of the way I calculate my orders, I can only calculate
my
: order on the last trading day of the week.
:
: What's the best way to do this since the last trading day of the week may
not
: be Friday, so I can't test for that. And, the first trading day of the
next
: week may not be Monday so I can't test for that. And finally, once you put
in a
: trading order for the next bar, you can't get it out of the TS order
system on
: that next bar so I can't wait for the bar to show up to test it!
:
: Any clever ideas?
:
: Thanks
:
: