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

first day of the month



PureBytes Links

Trading Reference Links

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