NexusFi: Find Your Edge


Home Menu

 





"Percent of Equity" in Portfolio Backtesting


Discussion in MultiCharts

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




 
Search this Thread

"Percent of Equity" in Portfolio Backtesting

  #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?
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,434 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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
  #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,434 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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




Last Updated on September 15, 2014


© 2024 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 - Privacy Policy - Downloads - Top
no new posts