Back

Generic AddNewFee (not attached to a security)

Hi there, 

I am trying to set up a fee model that accounts for all fees that go along with trading, not just per order fees. For example, I would like to incorporate a monthly fee for a Live Trading subscription with QuantConnect (or with Robinhood). 

Is there any way to do this directly without associating a fee with a particular security or holding? Like a general portfolio fee added?

I have something like this now, but it is attached to my holdings:

for(int yyyy = parameters.startYear; yyyy <= System.DateTime.Now.Year; yyyy++)
{
for(int m = parameters.startMonth; m <= System.DateTime.Now.Month; m++)
{
Schedule.On(DateRules.On(yyyy, m, 1), TimeRules.At(10, 0), () =>
{
holdings.AddNewFee(6.0m);
});
}
}

 

Thanks,
Alix

Update Backtest








By the way, the above code is not exactly working the way I want it to, its just to show what I am aiming at. 

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed