First my apology if these question are too basic. I am pretty new to this world...
I have an algo ready to go live soon and have some questions about actually going to real time trading:
1- what are the out-of-pocket costs to running an algo? here is what I know so far:
- algo hosting (QC) - monthly
- broker's per share cost (looks like IB is the cheapest one with ¢0.005 per share?)
- broker's monthly fees?
- capital gain tax - seems to be about 40%?
Am I missing anything?
2- can I run my algo using a margin account?
3- are there other things that I should know about live trading? for example, laws/regulations that I should know (looks like HFT has its own regulations)? or performance/speed of different brokers? or any other information that could help me.
Thank you very much in advance.
Alexandre Catarino
In order to deploy a live algorithm with QuantConnect, you need a prime subscription and, yes, you can run your algorithm using a margin account.
At the moment, for Equity, Options and Futurs trading, we only have support for Interactive Brokers.
Patrick Star
Thanks again Alex. When you get a chance could you also answer the questions about costs of trading? I know this is not related to the technical stuff of Lean or QC but still it's important to make sure that Backtests are as accurate and close to reality as possible. For instance, a kind of estimate of charges and fees added to Dashboard would be really helpful. Things like tax, broker's trading fees, monthly fees, etc. At the end of the day, what we really care about is the profit/loss after all the calulations :)
Alexandre Catarino
Please take a look at the docs, Reality Modelling section:
// Set brokerage model using helper methods: SetBrokerageModel(BrokerageName.FxcmBrokerage); // Defaults to margin account SetBrokerageModel(BrokerageName.TradierBrokerage, AccountType.Cash); //Or override account type // Supported brokerage names: BrokerageName.FxcmBrokerage .OandaBrokerage .TradierBrokerage .InteractiveBrokersBrokerage
These brokerage models set fees, fill models, slippage models and trading markets for a brokerage.
For taxes, you should ask an accountant. Some brokers also educate clients on this issue.
Petter Hansson
I should add that if your algo trades intensively, its performance may differ a lot from backtests without additional effort to model fills and/or slippage in backtests. Running on an IB paper trade account ASAP should be a goal if you're not doing something with infrequent trading costs (like monthly rebalancing).
Patrick Star
Alex, thanks for the link. Somehow I missed that part.
Patrick Star
@Petter,
This is exactly what I'm afraid of. I did a live test (QC's demo paper trade) and it's still working fine. Is that reliable? I mean, does QC's demo broker work with a real world spread or switching to real digital trades might give me very different results?
Jared Broad
Its as reliable as you make it Patrick; its up to you to define slippage models and fee models for exotic assets. We account for the liquid assets but if you have a special case with wide spreads you should model this with a custom slippage model.
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.
Patrick Star
That's a good news! I'm mainly picking stocks in the top 100 price-volume list. I'm not an expert but I suppose this means that the speard should be very low on those? I mean with a simple SetHoldings() I should get a realistic buy/sell price in QC's live mode without customing anything, is that a correct assumption?
Jared Broad
There is no magic yes/no answer to a general algorithm. You should do more research into spreads, slippage and then apply as you need for your case. Look at the spread and volumes for each of your symbols - what is the volatility for each? How often are you trading? Even with low spread highly volatile assets can move quickly (i.e. slippage) -- & test in live trading.
If you're sensitive to this then you should build custom models for each asset you're trading and study the execution to see how well it fills at different times of day.
When the trade is filled through the QuantConnect paper trading we use your slippage and fill models. When its filled through the brokerage paper trading we use the values the brokerage returns.
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.
Patrick Star
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!