| Index | Recent Threads | Who's Online | User List | Search |
|
|
![]() |
Portfolio123 » List all forums » Forum: Simulations and Portfolios » Thread: Prevent rebuy of ticker that resulted in previous loss |
|
Total posts in this thread: 2 |
[Request a Feature]
[Post new Thread] [Add To My Favorites] [Watch this Thread] |
| Author |
|
|
danie1
Member
|
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. |
||
|
|
strader1
Advanced Member
|
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] |
||
|
| [Show Thread Printable Version] [Post new Thread] |