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: 16
Posts: 16   Pages: 2   [ Previous Page | 1 2 ]
[Request a Feature] [Post new Thread]
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1164 times and has 15 replies Next Thread
marco


UNITED STATES
Joined: Jan 1, 1970
Posts: 3991
Status: Online

Re: simulation error?/ backtest error? Reply to this Post
Reply with Quote

Finally take a look at the % cash invested in sims. It never quite reaches 100% due to the position sizing algorithm. By the time it gets to the last position it can't quite get to 100%. It probably needs to be recursive and try a few iterations to use up all the cash. At the moment it only does one pass. since it doesn't know if there will be enough positions that pass the buy restrictions it can't be optimal on the first pass.

The screen assumes 100% of the cash invested
----------------------------------------
Attachment piot3.png (28188 bytes) (Download Count: 89)

----------------------------------------
Portfolio123 Staff
[Nov 22, 2011 4:54:41 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
chris319
Advanced Member


UNITED STATES
Joined: May 17, 2006
Posts: 65
Status: Offline

Re: simulation error?/ backtest error? Reply to this Post
Reply with Quote

Marco -

I still can't get the simulation to match the backtest anywhere near as closely as you have. I have made my version of the simulation public if you want to look at it.

The simulation doesn't allow me to select an integer number of stocks each period. The backtester allows exactly 15 stocks, whereas it's 15.2 stocks in the simulator. In spite of this, my simulation shows 6 stocks being held rather than 15.

The only modification I have made to the backtest is to set slippage to 0.
----------------------------------------
[Edit 1 times, last edit by chris319 at Dec 5, 2011 10:59:16 PM]
[Dec 5, 2011 10:58:07 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
marco


UNITED STATES
Joined: Jan 1, 1970
Posts: 3991
Status: Online

Re: simulation error?/ backtest error? Reply to this Post
Reply with Quote

Chris, you can't use $100 as the starting capital. Teh simulator buys whole shares. Try $100,000
----------------------------------------
Portfolio123 Staff
[Dec 6, 2011 12:10:04 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
chris319
Advanced Member


UNITED STATES
Joined: May 17, 2006
Posts: 65
Status: Offline

Re: simulation error?/ backtest error? Reply to this Post
Reply with Quote

Bumping this thread.

Back to the same quandary: a screen "backtest" gives an annualized return of 54.86%. The same screen "simulation" gives an annualized return of 112.89%. The test period is from 12/11/07 to 12/11/12.

These are just too far apart to be due to differences in transaction costs (all transaction costs are set to zero) or not having enough starting capital.

I see this and conlcude that I cannot trust Portfolio123.
[Dec 17, 2012 1:09:40 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
marco


UNITED STATES
Joined: Jan 1, 1970
Posts: 3991
Status: Online

Re: simulation error?/ backtest error? Reply to this Post
Reply with Quote

You have 'Long Weight%' set to 50%. You are basically investing 1/2 the $. With 100% the screen returns 112.44%
----------------------------------------
Portfolio123 Staff
[Dec 17, 2012 9:22:40 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
chris319
Advanced Member


UNITED STATES
Joined: May 17, 2006
Posts: 65
Status: Offline

Re: simulation error?/ backtest error? Reply to this Post
Reply with Quote

Ah, OK. I had taken "Long Weight" to mean the sizing of each position, which on the simulator is 50%.

Does that mean if the "Long Weight" is over 100% it simulates margin trading?

Thanks Marco.
----------------------------------------
[Edit 1 times, last edit by chris319 at Dec 18, 2012 12:03:27 AM]
[Dec 17, 2012 9:47:14 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
Posts: 16   Pages: 2   [ Previous Page | 1 2 ]
[Show Thread Printable Version] [Post new Thread]

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