LEAN is the open source
algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a
global community of 80+ engineers and powers more than a dozen hedge funds today.
Alpha League Competition: $1,000 Weekly Prize Pool
Qualifying Alpha Streams Reentered Weekly Learn
more
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.
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.
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.
Alexandre Catarino
100.3k
,
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.
1
Patrick Star
1.5k
,
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 :)
// Set brokerage model using helper methods:
SetBrokerageModel(BrokerageName.FxcmBrokerage); // Defaults to margin account
SetBrokerageModel(BrokerageName.TradierBrokerage, AccountType.Cash); //Or override account type
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.
1
Petter Hansson
10.5k
,
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).
3
Patrick Star
1.5k
,
Alex, thanks for the link. Somehow I missed that part.
0
Edited by Jared Broad
Patrick Star
1.5k
,
@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?
0
Jared Broad
STAFF
,
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.
2
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
1.5k
,
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?
0
Jared Broad
STAFF
,
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.
2
Edited by 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.
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...
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!