Hello Quants,
It is possible an algo reaches a point it starts to sell a stock you don't have quantity enough in your portfolio (or even have 0 quantity).
The UI will show this in the "Exposure> Equity Long/Short Ratio" chart. The blue +Y is long, the black -Y is short.
I believe what happens in this case is that the stock is borrowed and sold short.
I would like to know if the fee model (lets say the interactive brokers one) actually takes into account the costs of borrowing the stock (which should be a small annual interest fee – which should be 0.25% annualized paid per day, so in this example of 100 AAPL @ 150 USD, would be a cost of 37.5 USD / 365 days = ~0.1 USD per day:
).
If this is not taken into account in the fee stricture – as I believe – could it then be supported?
Is this part of the code open source?
Finally, if an algo like this would go live would it actually work and execute the short selling through the IBKR api?
Best,
Paul
Derek Melchin
Hi Paulduring,
Please refer to Borrowing Costs. In live trading, if your brokerage account supports short selling and the shares are available to short, the order should successfully fill through the IB API.
Best,
Derek Melchin
Want to invest in QuantConnect as we build the Linux of quant finance? Checkout our Wefunder campaign to join the revolution.
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.
Paulduring
Understood, however I think back-testing should take it into account at least the fee, tracking for how many days they are held. Which as I said above is 0.25% annualized.
Paulduring
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!