| Index | Recent Threads | Who's Online | User List | Search |
|
|
![]() |
Portfolio123 » List all forums » Forum: Errors » Thread: Sim didn't sell XJT |
|
Total posts in this thread: 3 |
[Request a Feature]
[Post new Thread] [Add To My Favorites] [Watch this Thread] |
| Author |
|
|
DennyHalwes
Advanced Member UNITED STATES Joined: Apr 28, 2004 Posts: 1556 Status: Offline |
Marco, I have a problem with this Sim: not selling a stock, XJT when it should have due to the sell rule, PctFromHi < -15. This Sim uses weekly rebalance so it should sell the stock if it is < -15% down on any Friday’s close. XJT was purchased at $9.54 on Monday 01/22/07. 15% down from that price would be $8.109. It closed on Friday 01/26/07 at $7.98, down 16.77% according to the P123 data. However, the Sim didn’t sell it on Monday 01/29/07. On Friday 02/02/07 it closed at $7.85 down 18.12%, but again it didn’t sell it on Monday. On Friday 02/09/07 it closed at $7.50 down 21.78%, and finally sold it on Monday. So for some reason the Sim sold XJT 2 weeks later than I think it should have. Of all the stocks that Sim sold that had a 15% or greater loss, XJS was the only one that wasn’t sold on the Monday after the loss. Denny ![]() ---------------------------------------- "The significant problems we face cannot be solved at the same level of thinking that we were at when we created them". Albert Einstein ---------------------------------------- [Edit 1 times, last edit by DennyHalwes at Jun 15, 2007 11:19:55 AM] |
||
|
|
marco
|
PctFromHi uses close price. XJT was bought on 1/22 and the close price was 9.18. The stop loss would then trigger if the price closed below 7.803 When it check the prices it uses Friday's close: 1/26 9.18 2/02 7.85 2/09 7.5 Therefore it would have triggered on 2/09, but at that time the Rank rule triggered first. ---------------------------------------- Portfolio123 Staff ---------------------------------------- [Edit 1 times, last edit by marco at Jun 15, 2007 10:57:14 AM] |
||
|
|
DennyHalwes
Advanced Member UNITED STATES Joined: Apr 28, 2004 Posts: 1556 Status: Offline |
Marco, OK, so the Sim did exactly what it was programmed to do with PctFromHi. However, I would sure like to be able to test a Sim that would sell 15% down from the high since I bought it, and that would include the purchase price and any inter-day high. This would more accurately simulate real world Trailing % Stops that I place on all the stocks I hold. So it looks like we need a new factor, something like; MaxHi, which would be the Maximum High since bought, and would only apply to sell rules like PctFromHi does now. Then we could write a stop loss rule like; Low(1) / MaxHi < 0.85 , if we are using daily rebalance, or; Low(5) / MaxHi < 0.85 , it we are using weekly rebalance. Community, MaxHi is a Feature request from Traderblues back on 10/28/05. You can vote for it here: To enable simulation of inter-day trading you need to vote for this Feature Request here: And this one if you want your Sim to rebalance daily to check the sell rules, but only buy with weekly rebalance. Denny ![]() ---------------------------------------- "The significant problems we face cannot be solved at the same level of thinking that we were at when we created them". Albert Einstein |
||
|
| [Show Thread Printable Version] [Post new Thread] |