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


Kelly criterion on Portfolio!
Updated: Views / Replies:307 / 0
Created: by Gabriel123 Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Kelly criterion on Portfolio!

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

Kelly criterion on Portfolio!

Hi!

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:

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

var: 
ATR(0);
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  
ProfitFactor   
GP/GL;
If 
TT <> 0 then 
WTP 
= (NWT TT); 
If 
ProfitFactor <> 0 then 
KellyCriterion 
WTP - ((WTP)/(ProfitFactor));
Kelly = (KellyCriterion KellyPercent) * Equity
If 
Margincapital <> 0 then 
TradeSize 
Kelly /  Margincapital;
TradeSize MaxList(1Round(TradeSize,0));

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

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

    
end;
    
end;
    
if 
TradeSize 0 then TradeSize 0

Reply With Quote

Reply



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)

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Roy Kelly's Trend Pro Sam7768 Trading Reviews and Vendors 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 06:43 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-07-23 in 0.05 seconds with 19 queries on phoenix via your IP 54.198.233.27