#twitter-follow { border: 0;position: fixed; top: 240px; left:0;} #live-support { border: 0;position: fixed; top: 370px; left:0;} #knowledge-base { border: 0;position: fixed; top: 170px; left:0;}

## Investing in stocks using the Kelly criterion money management strategy

by QuantShare, 3597 days ago

In order to reduce your investment risk you have to diversify. The problem is that many traders do not know how to put the diversification concept into practice. How do we know the number of stocks to invest in and the percentage of equity to put in each one of these stocks? When to invest in more stocks and when to reduce our exposure?

The Kelly criterion attempts to provide an answer to all these questions. This money management strategy is based on two concepts, which are the Winner probability (Probability of a given trade to provide a positive return) and the Win/Loss ratio (The percentage of winners among all trades).

John Kelly, the developer of the Kelly criterion technique used these two ratios to create what is called the Kelly percentage. It is a value, expressed in percentage, which tells us how much we should invest in each stock.

Depending on the performance of past trades, Kelly criterion may tell us to invest all our money in three stocks or it may tell us to invest in more than 20 stocks (investing in highly diversified portfolio).

The money management script, based on the Kelly criterion technique, I have developed here allows you to specify two inputs.

The number of past trades: This is the total number of past trades the money management will use to calculate the Kelly percentage value. A value of 0.5 indicates that we should invest 50% of our equity in a single stock and therefore our portfolio will be composed of only two stocks.
The maximum number of positions: This is the maximum number of positions we should hold in a given period. If the Kelly percentage returns a value of 1% (This means that we should invest in 100 stocks) and the maximum positions is set to 50, then our trading system will invest in only 50 stocks. This prevents us from investing in portfolios that are too diversified.

Using the Kelly criterion strategy is very simple. After you download the current script, here are the different steps that should be performed:
- Select the "Money Management" tab
- Click on "Add an existing money management script"
- Select the Kelly criterion item

This script generates also a metric called "Kelly %" that returns the Kelly percentage value over time.
You can display this metric by dragging it from the "Select a time-series" list in the simulation report then dropping it into the strategy equity chart.

Other useful money management script:
Hedge a portfolio strategy

What is this?

 Type: Advanced Money Management Object ID: 982 Country: All Market: Stock Market Style: Technical Analysis

Related objects
Show All
Money management to Reject Trading Positions Based on their Past Performance (by Tom Huggens, uploaded several months ago)
No notes
 50
Scale-In On Price Drop (by Vangelis M., uploaded several months ago)
No notes
 49
No notes
 53
Averaging Down Money Management Strategy (by QuantShare, uploaded several months ago)
No notes
 58
Benchmark Return in a Trading System Simulation (by QuantShare, uploaded several months ago)
No notes
 81
Buy/Short a Fixed Number of Shares (by QuantShare, uploaded several months ago)
No notes
 36
Conditional Trailing Stop Exit 2013-10-18 (by Dave W., uploaded several months ago)
No notes
 40
Number of reviews
Average rate
Click to rate this item
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

 Random Blog Posts Select the best ETFs combination to maximize your return and reduce your investment risk How to turn any ordinary trading strategy into a very profitable one Charting & Scripts - Manage stock charts using the global script Trading System: Buy Stocks based on their Sharpe Ratio Rank Creating and managing notes for your stocks Create a Trading Strategy using Portfolio123 Ranking Systems How to Quickly Create Fundamental Scans Download Trading Data using the Post-Script Show All

Number of reviews
Average rate
Click to rate this item
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object