Hi Eugene, Cone
Is there a PosSizer already available that is based on % Cash Remaining instead of %Equity?
Thanks,
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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
Size:
Color:
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 .
Size:
Color:
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?
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
This question is up to @Cone.
Size:
Color:
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.
Size:
Color:
@Cone, any suggestions for alternate methods to obtain the desired result of Max %risk position sizing using cash remaining?
Size:
Color:
Given the limitations of the Cash value in PosSizers, I'm afraid that I can't think of another way. :/
Size:
Color:
Size:
Color:
Excellent. This looks great !!!. Many Thanks for sharing, @KGo.
Size:
Color: