Set margin in Donor strategy
Author: sburgener
Creation Date: 11/2/2012 1:51 PM
profile picture

sburgener

#1
Hi guys,

I want to display my equity curve in the chart window, and am proceding as explained in http://www2.wealth-lab.com/WL5WIKI/kbInteractingWithPortfolioEquity.ashx.
However, it seems like some trades in my Donor strategy are not executed, because of a lack of available capital. As I am always reinvesting total current available equity, setting the margin factor to a high number should solve the issue. However, it seems like the margin factor only applies to my main strategy but not to the Donor strategy.

My questions thus are:
1) Am I correct on the above regarding the margin factor not being picked up in the Donor strategy?
2) Is there a way to set the margin factor in the C# code?

Thanks,
Seb
profile picture

Eugene

#2
Hi Seb,

The margin factor is picked up by the "runDonorNew" routine and honored, if you meant this. You can prove it by peeking in the open source code:
CODE:
Please log in to see this code.

You're welcome to modify and experiment with it.
profile picture

sburgener

#3
Thanks for the above Eugene!
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).