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

Re: first day of the month



PureBytes Links

Trading Reference Links

Yea,

I guess the problem is that it is buying on the next bar. You get the signal
on the first day.
If you were using an intra day system it would have you buy on the second
bar of the day which might work. The other answer is to come up with a way
to test for the last day of the month. Then you could buy the open of the
next bar. If you had to it would work to create an array with the number of
days in each month. Test for the last day, etc.

Jim Bronke
Phoenix, AZ
www.USACritic.com


----- Original Message -----
From: "Matt Bowen" <mattbowen@xxxxxxxxxxxxx>
To: "Jim Bronke" <jvbronke@xxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Sunday, June 30, 2002 2:28 PM
Subject: Re: first day of the month


: Thanks Jim...I did try that and it did not work.
:
: ----- Original Message -----
: From: "Jim Bronke" <jvbronke@xxxxxxx>
: To: "Matt Bowen" <mattbowen@xxxxxxxxxxxxx>; <omega-list@xxxxxxxxxx>
: Sent: Sunday, June 30, 2002 5:04 PM
: Subject: Re: first day of the month
:
:
: > OK,
: >
: > So try:
: >
: > If DayOfMonth(date)=0 then Buy at open;
: >
: >
: > Jim Bronke
: > Phoenix, AZ
: > www.USACritic.com
: >
: >
: > ----- Original Message -----
: > From: "Matt Bowen" <mattbowen@xxxxxxxxxxxxx>
: > To: <omega-list@xxxxxxxxxx>
: > Sent: Sunday, June 30, 2002 1:36 PM
: > Subject: first day of the month
: >
: >
: > : Anybody know how to get TradeStation 2000i to buy the first bar of
every
: > : month?
: > :
: > : I'm trying to buy the first day of the month and exit on close(same
day)
: > : with $1500 stop.
: > :
: > : The problem is TradeStation 2000i keeps selecting the second day (Go
: > : figure).
: > : ---------------------------------------------------------
: > : Inputs: PositionBasis(True), Amount(0),Period(1);
: > : If DayOfMonth(date)=1 then Buy at open;
: > :
: > : Exitlong on close;
: > :
: > : If PositionBasis Then
: > :  SetStopPosition
: > : Else
: > :  SetStopContract;
: > :
: > : SetStopLoss(1500);
: > :
: > :
: > :
: >
: >
: >
:
: