"Percent of Equity" in Portfolio Backtesting - futures io
futures io



"Percent of Equity" in Portfolio Backtesting


Discussion in MultiCharts

Updated
    1. trending_up 1,821 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

"Percent of Equity" in Portfolio Backtesting

(login for full post details)
  #1 (permalink)
nicemodel
Vancouver
 
 
Posts: 4 since Aug 2014
Thanks: 1 given, 0 received

Does anyone know a way to have Multichart's portfolio backtester use a flat percentage of TOTAL portfolio value. Because although that is roughly the language in the setup menu it actually does a really strange thing when you look at the trades it places:
If you were to say 95% of equity per trade, then, on a $100,000 starting amount, it would allocate 95k to the first trade at the second trade it would allocate 95% of the remaining 5k, and then of the 0.25k remaining it would allocate 95% of that to the next trade and so on. Why on earth would anyone want to do that... ?
In the example given I would like it to make the 95k trade and then STOP because there is not enough capital remaining to make another (in this case) 95% of capital trade. (this example makes a lot more sense when we are talking about 2% per trade or something.
Anyway if anyone has any work arounds to make it calculate based on total portfolio equity as opposed the unallocated cash that would be great thanks!

-nicemodel

Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(141 thanks from 20 posts)
looks_twoSalao's Journalby Salao
(45 thanks from 9 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(34 thanks from 15 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(15 thanks from 12 posts)
looks_5Maybe a little bit different journalby Malykubo
(14 thanks from 13 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
75 thanks
Would You Sell Your System?
72 thanks
The Crude Dude Oil Trading System
53 thanks
The New Micro Contract - MICRO BITCOIN coming May 2021
25 thanks
futures io site changelog and issues/problem reporting
23 thanks
 
(login for full post details)
  #2 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,238 since Apr 2013
Thanks: 417 given, 1,489 received

nicemodel,

personally I have found it works best for me to control those things directly from the code. I.e. you compute the available equity, the position size and track the remaining capital. This surely is a bit of work, but not only does this offer you more flexibility, the code will also do exactly what you want.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
 
(login for full post details)
  #3 (permalink)
nicemodel
Vancouver
 
 
Posts: 4 since Aug 2014
Thanks: 1 given, 0 received


Ah! Ok - That makes sense. Thanks!

What would your calculation look like to find total portfolio value at any given time?
Portfolio Value = Initial Capital + Gross Profit + Gross Loss + OpenPosition Profit
? Would that be the right number?

And then to find available capital it would be Portfolio Value - (Invested Capital + Open Position Profit)?
Does that look right?

I would like to take the full portfolio value at a point in time and then subtract the invested capital to know how much remaining buying power is available and then use a percentage of total portfolio value to determine the size of new trades (which should execute at that size until a full trade of that size can no longer be made due to lack of buying power).

Reply With Quote
 
(login for full post details)
  #4 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,238 since Apr 2013
Thanks: 417 given, 1,489 received

nicemodel,
these are not the correct reserved words, but in general your formulas can work like this.
Instead of Gross Profit + GrossLoss you can use the NetProfit.
If you want to include the open position profit into the calculations of the available capital depends on the risk you are willing to take.

Regards,
ABCTG


nicemodel View Post
Ah! Ok - That makes sense. Thanks!

What would your calculation look like to find total portfolio value at any given time?
Portfolio Value = Initial Capital + Gross Profit + Gross Loss + OpenPosition Profit
? Would that be the right number?

And then to find available capital it would be Portfolio Value - (Invested Capital + Open Position Profit)?
Does that look right?

I would like to take the full portfolio value at a point in time and then subtract the invested capital to know how much remaining buying power is available and then use a percentage of total portfolio value to determine the size of new trades (which should execute at that size until a full trade of that size can no longer be made due to lack of buying power).


Follow me on Twitter Reply With Quote


futures io Trading Community Platforms and Indicators MultiCharts > "Percent of Equity" in Portfolio Backtesting


Last Updated on September 15, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



Copyright © 2021 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