Position held by calendar days

StrataSearch has many powerful features, with many techniques and approaches to explore. Here we discuss the things we've done, and the things we'd like to do.

Position held by calendar days

Postby Lee247 » Thu Apr 24, 2014 10:03 pm

Is there a way to code an exit after "N" calendar days not trading days?
My 401k(probably many other retirement plans too) has a 30 days restriction regarding moving money in or out of the mutual funds.
Lee247
 
Posts: 7
Joined: Sun Feb 03, 2013 8:32 pm

Re: Position held by calendar days

Postby Overload » Fri Apr 25, 2014 10:04 am

Sorry, but no, there isn't a specific feature for exiting after a certain number of calendar days instead of trading days. But what I've used in the past is to assume there are 21 days in a month, and then tack a few extra days onto the end. So to exit after 60 calendar days, you might use $daysheld > 45. It's not as precise as using actual calendar days, but I've found it to be sufficient.

Pete
Overload
 
Posts: 2248
Joined: Wed Nov 30, 2005 12:14 pm

Re: Position held by calendar days

Postby Lee247 » Fri Apr 25, 2014 7:02 pm

Thank you Pete, i'll try and see how it pans out.
Lee247
 
Posts: 7
Joined: Sun Feb 03, 2013 8:32 pm


Return to General Discussion

cron