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

Fixed # of days exit



PureBytes Links

Trading Reference Links

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