This week, we shipped a new chart on all backtests, optimizations, and new deployments of live trading algorithms -- the Portfolio Margin plot. This chart plots the margin used for significant holdings in your portfolio over time to help our community fully utilize capital and understand the impact of hedging on their strategies.
The adage "It’s not about timing the market, but about time in the market" tells us that simply having your capital deployed increases the probability of participating in significant moves. This adage is true for many quantitative investors as well. Smart beta, factor portfolios, and momentum strategies can all improve their returns by increasing capital utilization.
The new chart taps into the QuantConnect platform's superpower -- our high-fidelity portfolio margin modeling in backtesting and live trading. Our margin modeling system provides historical, realistic margin usage, mimicking the constraints of the real world. This system models multiple asset classes, even within the same portfolio. If the market dips, we model automatic brokerage margin calls liquidating some of the portfolio. This margin engine solves for derivative products, such as future option contracts, in strategies like straddles, condors, or spreads.
In the example below, we long and short two Option contracts to combine and reduce margin usage. The blue area represents a naked short position, and the gray area represents a group formed by a hedging long position. The naked short is purchased first, resulting in large swings in margin-used, but it is then hedged by the long to form a bear call spread, capping its margin used (gray).
We have deployed this new feature to all users on QuantConnect, and we hope it helps improve your understanding of the capital at work in your strategy. For more information, see our documentation on the Portfolio Margin chart.
Happy Coding,
QuantConnect Team
CaseyS
This is awesome. Will be super helpful for my risk parity use-case to fully understand the impact on my Interactive Brokers portfolio margin account.
Jared Broad
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!