Max Percent Risk based on Cash remaining instead of Equity?
Author: crk31174
Creation Date: 12/14/2018 4:43 PM
profile picture

crk31174

#1
Hi Eugene, Cone

Is there a PosSizer already available that is based on % Cash Remaining instead of %Equity?

Thanks,
profile picture

Eugene

#2
Hi,

Although it's not exactly what you're looking for, the Position Options PosSizer has an option to turn off reinvesting profits. When the "Don't reinvest" button is pressed, the original starting capital is used to size positions.
profile picture

crk31174

#3
I'd like to have the realized profits re-invested, but not the unrealized profits. As I understand it, equity is both realized and unrealized profit. But I just want the cash remaining that will include the realized profits to be taken into account for position sizing. This way the compounding comes into effect.

Is it possible? If not, can you suggest alternate ways to achieve compounding.
profile picture

Eugene

#4
I'm not sure if it's possible. It would take a deeper look but off the top of my head, in another PosSizer an adverse effect from using cash has been discovered. See my post #4 here: Spread Equity Equally PosSizer.

Maybe Cone's "Portfolio Equity Tracker" framework could be leveraged to track the Cash series but it would require an adjustment of your code to comply with it: Limit Monthly Drawdown / Portfolio Equity Tracker.
profile picture

crk31174

#5
Eugene, Thanks for your help.

Have a question for Cone regarding the Portfolio Equity Tracker.:

To use the "cash remaining" for position sizing, will it work if I replace the _equity[bar] to _cashRemaining variable:

CODE:
Please log in to see this code.
profile picture

crk31174

#6
Hi Eugene or Cone,

I'm thinking of abstracting Portfolio Equity Tracker code into a common shared .NET dll or custom PosSizer after modifying the position sizing to cash remaining. Would you recommend creating a PosSizer or simply a .NET dll that other strategies can use?

Thanks
profile picture

Eugene

#7
Hi,

What PosSizers do is only size new Positions. Cone's PortfolioEquityTracker also keeps track of the cash/equity series. I think the answer is evident: a shared class library .
profile picture

crk31174

#8
Is there an example that you can share on how to create a shared class library to use within a strategy? Can it be done using the wealthlab pro IDE?
profile picture

Eugene

#9
Your question sounds too general to me. Community Components is such an extension. Almost any compatible .NET class library can be used within a Strategy. So, the open source code of Community Components should do for example. Development of a class library takes place in an IDE like Visual Studio Community or SharpDevelop.
profile picture

crk31174

#10
Thanks for clarifying, Eugene. Is it possible to incorporate Cone's PortfolioTracker along with the PositionSharesCashRemaining() variant into the Community Components?

CODE:
Please log in to see this code.
profile picture

Eugene

#11
This question is up to @Cone.
profile picture

Cone

#12
I'd have to vote "no". I don't really remember the motivation for creating that, but it's an incomplete work, very complicated to use, and I'm not sure that I trust it past using it as a demo. It's just too error prone to include (and support) in C.Components.
profile picture

crk31174

#13
@Cone, any suggestions for alternate methods to obtain the desired result of Max %risk position sizing using cash remaining?
profile picture

Cone

#14
Given the limitations of the Cash value in PosSizers, I'm afraid that I can't think of another way. :/
profile picture

KGo

#15
I have a version of the Portfolio Tracker Demo I'll post in the Portfolio Tracker thread. See:
https://www.wealth-lab.com/Forum/Posts/Limit-Monthly-Drawdown-Portfolio-Equity-Tracker-31562
profile picture

crk31174

#16
Excellent. This looks great !!!. Many Thanks for sharing, @KGo.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).