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

Re[2]: What day is it?



PureBytes Links

Trading Reference Links

Good thoughts! 

But, the 2 day gap you suggest assumes that the last trading day of the week is
Friday and the first is always Monday. That's not always the case. Now if I
were running the show...

--- Jim Bronke <jvbronke@xxxxxxxx> wrote:
> 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
> :
> :
> 
>