Kelly criterion on Portfolio! - MultiCharts |
futures io futures trading

Kelly criterion on Portfolio!
Started: by Gabriel123 Views / Replies:203 / 0
Last Reply: Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Kelly criterion on Portfolio!

  #1 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: ProRealTime
Favorite Futures: DAX
Posts: 39 since Jul 2015
Thanks: 6 given, 3 received

Kelly criterion on Portfolio!


I have the code below for Kelly criterion position sizing. However I want to use Kelly criterion for a portfolio, not for a single instrument. When using this code on the instruments in a portfolio the Kelly criterion sizing is counted for, for every instrument separately.

Meaning, if the latest trades on AAPL har been doing great, the position size on that might be 10000 stocks, while the portfolios next trade in, let's say, MCD only takes 500 stocks since the latest trades in that instrument have been loosers.

How do I change this code to make it treat the whole portfolio as a instrument - meaning that it takes bigger position size after winning trades regardless of which instruments they were made on?

Is it necessary to add a money management code?

This is my code:

InputsInitialCapital100000 ), Margincapital5000 ), KellyPercent.45 {Half-Kelly}); 
Vars:   TradeSize), Equity), GL), GP), NWT), TT), 
ProfitFactor), WTP), KellyCriterion), Kelly);

ATR AvgTrueRange(10);

Equity    Round((InitialCapital NetProfit OpenPositionProfit),0);//Equity

//Kelly Criterion Variables
GL        Average(Absvalue(Grossloss),30);     
GP        Average(Grossprofit,30);
NWT     Numwintrades;
TT      Totaltrades;
//Kelly Criterion Calculation
If GL <> 0 then  
TT <> 0 then 
= (NWT TT); 
ProfitFactor <> 0 then 
WTP - ((WTP)/(ProfitFactor));
Kelly = (KellyCriterion KellyPercent) * Equity
Margincapital <> 0 then 
Kelly /  Margincapital;
TradeSize MaxList(1Round(TradeSize,0));

//RSI Strategy - Buy
If Marketposition 0 then 
If RSI(c,2) < and Average(C,200then 
(TradeSize*50000/Cshares next bar at L limit;    
Value1 TradeSize*50000/C;

//RSI Strategy - Sell 
If Marketposition 1 then 
If RSI(c,2) > 70 then
    sell value1 shares next bar at market
Value1 0;    

TradeSize 0 then TradeSize 0

Reply With Quote


futures io > > > > Kelly criterion on Portfolio!

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)


Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27

Similar Threads
Thread Thread Starter Forum Replies Last Post
Roy Kelly's Trend Pro Sam7768 Vendors and Product Reviews 15 May 21st, 2016 02:45 PM
Webinar: Ernest Chan on Capital Allocation and Risk Management (Kelly) Big Mike Psychology and Money Management 27 May 2nd, 2016 06:06 PM
Roy Kelly pchofard The Elite Circle 25 June 8th, 2015 05:29 PM
Optimal position sizing strategy (including considerations on Kelly criterion) Nicolas11 The Elite Circle 15 August 19th, 2014 05:32 PM
Risk of ruin for kelly rosariod Psychology and Money Management 3 September 8th, 2012 10:55 AM

All times are GMT -4. The time now is 07:04 PM.

no new posts
Page generated 2017-03-29 in 0.07 seconds with 19 queries on phoenix via your IP