HomeReady-2-GoPortfolioRankingScreenerStockETFToolsCommunityHelp
ForumsEmail UserPollsFeature RequestsGroups


  Index  | Recent Threads  | Who's Online  | User List  | Search
  Search  
Quick Go »
Thread Status: Normal
Total posts in this thread: 2
[Request a Feature] [Post new Thread]
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 273 times and has 1 reply Next Thread
danie1
Member


UNITED STATES
Joined: Jul 14, 2012
Posts: 3
Status: Offline

Prevent rebuy of ticker that resulted in previous loss Reply to this Post
Reply with Quote

Most losses in my simulation are from tickers that had previously been bought and sold at a loss. Is there a way to add a ticker to the restricted buy list during a simulation if that ticker had previously caused a loss? Or any other way of excluding those tickers from future buys? This is easy to do in a portfolio in real time, but I want to backtest it in a simulation. Thanks.
[Aug 7, 2012 5:52:43 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
strader1
Advanced Member


UNITED STATES
Joined: Aug 20, 2006
Posts: 274
Status: Offline

Re: Prevent rebuy of ticker that resulted in previous loss Reply to this Post
Reply with Quote

From the P123 documentation:

"LastSellDaysLT(days): Returns TRUE or 1 if the stock was sold within the last no. of days, otherwise it returns FALSE or 0 (LT stands for Less Than).

Ex: to avoid buying a stock that was sold within the last 30 days, enter the following Buy rule:

LastSellDaysLT(30)=FALSE "

I hope this helps.

Bill
----------------------------------------
[Edit 1 times, last edit by portfolio123 at Aug 29, 2012 5:23:01 PM]
[Aug 8, 2012 5:04:12 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
[Show Thread Printable Version] [Post new Thread]

Free Trial  /  Log In
Username or Email
Password
Stay logged in
Can't remember username or password?