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

Re: first day of the month



PureBytes Links

Trading Reference Links

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);
: 
: 
: