Opening Capital in new Portfolio
Author: angelogangemi
Creation Date: 7/26/2015 7:20 PM
profile picture

angelogangemi

#1
As a new user, how can I set up a new portfolio strategy with an opening capital of say 100k as at today, whilst making use of the back-testing data, to determine which stock to buy?

As is, the Strategy assumes that the initial 100k of capital has been invested for past 5/6 years and when a new stock to buy is alerted, the Strategy is trying to re-invest the "supposedly accumulated profits that the Strategy would have accumulated - during the testing period"
profile picture

Eugene

#2
Wealth-Lab re-invests the funds after each trade by default in Portfolio Simulation mode (by default). To turn reinvesting off in a backtest, an extra step is required:

1. Install MS123 PosSizer Library. On how to install/uninstall/update Wealth-Lab extensions, review this illustrated tutorial and/or check out the Wealth-Lab User Guide > Extension Manager.

2. Use the Position Options PosSizer's option "Don't reinvest".

P.S. There also is a more advanced PosSizer called No Profit/Loss Sharing which maintains initial allocation of the same dollar size to each symbol.
profile picture

Cone

#3
The way I'd do it is to just start the trading loop "today". Just modify the trading loop like this, where the date is the date of the market session before your first trade -

CODE:
Please log in to see this code.

Later, to test with the full history, you need to modify startBar to 1 or the minimum seed date requirement (e.g., 20 for a 20-bar moving average).
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).