NexusFi: Find Your Edge


Home Menu

 





"Percent of Equity" in Portfolio Backtesting


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
nicemodel
Vancouver
 
Posts: 4 since Aug 2014
Thanks Given: 1
Thanks Received: 0

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

Can you help answer these questions
from other members on NexusFi?
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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 X Reply With Quote
  #3 (permalink)
nicemodel
Vancouver
 
Posts: 4 since Aug 2014
Thanks Given: 1
Thanks Received: 0


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
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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 X Reply With Quote




Last Updated on September 15, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts