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

RE: Fixed # of days exit



PureBytes Links

Trading Reference Links

Dave,

Try the Bars SinceEntry(#) function (Pg 298 in Easy Language Manual)

Something like this;

If BarsSinceEntry(0) = 5 then Exit Tomorrow;

BarsSinceEntry(0) returns a zero if you entered the position today.

Hope this helps,

Aongus O'Gorman
Gandon Financial Fund Mgt.



 ----------
From:  borger@xxxxxxxxxxxxx[SMTP:PC @INTERNET {borger@xxxxxxxxxxxxx}]
Sent:  03 February 1998 16:40
To:  omega-list@xxxxxxxxxx
Subject:  Fixed # of days exit

 --------------------------------------------------------------------------  
 --
What is the proper/best way to have a system exit after a fixed number
of days?  I understand that there are problems with the MarketPosition
function which would probable by used here (if long and oldtrade then
exit long).  I believe there is also a function (DaysInPosition) which
counts the days/bars.  (I'm not at my TradeStation machine so I can't
check on the exact name.)  I presume I would use this.  Is my entry day
day 1?  If the days in position is 2 and 2 is my upper limit to hold
does it exit day two or day 3.  Thanks.

Dave