Does the SetHoldings method use market orders in live trading?
If so, is there a way to use SetHoldings to queue limit orders at the best bid/offer to target the desired portfolio weighting rather than use market orders?
Don't have an account? Join QuantConnect Today
QuantConnect Community Discussions
QUANTCONNECT COMMUNITY
LEAN is the open-source algorithmic trading engine powering QuantConnect. Founded in 2012 LEAN has been built by a global community of 180+ engineers and powers more than 300+ hedge funds today.
Join QuantConnect's Discord server for real-time support, where a vibrant community of traders and developers awaits to help you with any of your QuantConnect needs.
The Open-Quant League is a quarterly competition between universities and investment clubs for the best-performing strategy. The previous quarter's code is open-sourced, and competitors must adapt to survive.
Discussion on using SetHoldings method in live trading and whether it uses market orders or if there is a way to queue limit orders.
Continue ReadingRefer to our Research Guidelines for high quality research posts.
Create an account on QuantConnect for the latest community delivered to your inbox.
Sign Up Today
|
|
|||||||
|
|
||||||||
|
SetHoldings method
Kieran Flynn | November 2018
Does the SetHoldings method use market orders in live trading?
If so, is there a way to use SetHoldings to queue limit orders at the best bid/offer to target the desired portfolio weighting rather than use market orders?
QuantConnect™ 2025. All Rights Reserved
Jing Wu
Yes, Setholdings() sends the market orders. It is equivalent to
SetHolindgs(symbol, weight) # equivalent quantity = self.CalculateOrderQuantity(symbol, weight) self.MarketOrder(symbol, quantity)
For limit orders, you can use
quantity = self.CalculateOrderQuantity(symbol, weight) self.LimitOrder("SPY", quantity, limitPrice)
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.
Kieran Flynn
Thanks Jing,
Is there a quick way to find the best bid / best offer price?
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.
Jing Wu
Equity has trade data. Forex/Futures/Options have quote data with bid/ask spread. You can get the current bid/ask price in OnData() with
def Initialize(self, data): self.AddForex("EURUSD", Resolution.Minute, Marekt.Oanda) def OnData(self, data): bid_open = data["EURUSD"].Bid.Open ask_low = data["EURUSD"].Ask.Low
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.
Kieran Flynn
Is it possible to get the last best bid / ask for instruments which use trade data? I would guess not..
Is there a suggested work around to achieve this end?
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.
Jing Wu
Could you give details about what instruments you need and what the last best bid/ask is?
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.
Kamer Ali Yüksel
[Feature request]
I agree that it would be great to have a parameter in setHoldings method so that it rather places a buy/sell limit order based on the current bid/ask price (maybe along with a percentage parameter e.g. buy 0.0.1% better than the current bid). This percentage parameter can also be dynamically set as in the case for standard deviation execution model. Market orders only is not usable especially for high-frequency rebalancing.
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.
Kamer Ali Yüksel
data["EURUSD"].Bid.Open or data["EURUSD"].Ask.Low are not working (within onData function). I have got the following error. I tried to check the content of the data dictionary by using data.keys() but that was not possible.
Runtime Error: Trying to retrieve an element from a collection using a key that does not exist in that collection throws a KeyError exception. To prevent the exception, ensure that the EURUSD key exist in the collection and/or that collection is not empty.
at OnData in main.py:line 45
KeyError : ('EURUSD',) (Open Stacktrace)
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.
Kamer Ali Yüksel
Resolved using self.Securities[asset].AskPrice rather than the version that is given in above threads here.
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.
Halldor Andersen
Hi Kamer.
I've attached a backtest where I demonstrate how to retrieve and plot data["EURUSD"].Bid.Open and data["EURUSD"].Ask.Low - check out this documentation on Handling Data for further information on data properties.
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.
Kamer Ali Yüksel
Thank you very much. This is interesting, I believe that I have tried it same way but it did not work for me. I will check it again of course. Meanwhile, would it be possible if you can explain me why self.Portfolio.Invested is necessary? I have done the bootcamp and also read the documentation but couldn't grasp exactly its purpose.
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.
Douglas Stridsberg
Kamer - regarding your feature request, what would be the fallback in case the price keeps moving against you? At what point do you give up and, at that point, do you a) fill the order at market or b) not fill at all?
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.
Jared Broad
We have quote data coming soon :) Hopefully, we can give you realistic spreads on some of these low capacity algorithms.
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.
Warren Harding
Awesome news about the quote data. I have to try out the new debugging tools too.
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.
SLs
Hi, Warren Harding,
Thank you for this algo, this is really an example for me that quant trading is working.
Could you, please, explane how you do stocks screener , how to do search of suitable stocks for this algo, wat is important criteria to looking for ?
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.
Warren Harding
To screen, I calculate the returns on a per stock basis, then rank by returns. Note that there is a survivorship bias type of problem ingrained in this approach. However, you can keep an eye on the number of trades to overcome it. The backtest above has 894 trades. That's a fair size sample set which suggests that the pattern of price action with this stock has actually been suitable for the TMA2 approach.
Quantconnect does not easily let you see the returns on a per stock basis as best I know, but it can be done. You could use the trade log and recalculate the returns from that. Or you could do as I've done, I have a minimalist backtester that I integrated right into the Quantconnect script that lets me screen to see which stocks are behaving well for whatever strategy I want. That might not be the easiest approach but I have a proprietary minimalist backtester handy that I have already written. This approach gives me a lot of power where I can see which stocks have been behaving appropriately in recent time for any given strategy.
Much of the work is in the screening. TMA2 is actually a B-grade strategy kernel. I'm not for giving my best stuff away, sorry.
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.
Daniel Chen
It's an amazing algorithm! I would recommend combining the universe selection and the TMA2 approach to get better performance. My idea is that we could apply the TMA2 trading logic on stocks filtered by coarse and fine selection. As long as the number of filtered symbols is set to be small in the universe selection, the backtest result actually reflects the return on a per stock basis. Let me know if you have better ideas, thanks!
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.
Aaron Tawil INVESTOR
Daniel Chen actually gave that a try - thinking the same thing and applying the boot camp to it. Still needs some tweaking to get right though. The algo I cam up with just seemed to buy and hold, so I am sure I am doing something wrong. But working on it. Would love to try and include an RSI alpha metric to also help make 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.
Warren Harding
Thanks Daniel. I'll consider your advice.
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.
Warren Harding
Hi Daniel. It sounds like you are suggesting something similar to what I have already done. I have a multi-stock version that can screen for suitable stocks as the backtest proceeds in a rolling like fashion. I could move the screening into a coarse selection function and that would eliminate the need for ticker lists. I'm using a high dollar volume ticker list right now.
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.
Valery T INVESTOR
Your algorighm does not re-invest the profits. Why?
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.
Warren Harding
Hi Valery. You can only trade so much before you'll run into problems with orders not being filled.
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.
Valery T INVESTOR
Hi Warren.
From your experience, does paper trading with IB reflect the real trades (orders being filled)?
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.
Warren Harding
I haven't used IB's paper trading platform.
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.
Douglas Stridsberg
Valery T IB paper trading is unlikely to demonstrate realistic execution of this algorithm. Toy algorithms like these (submitting arbitrarily tight limit orders and crossing your fingers they get filled) have been submitted before and should not under any circumstances be relied upon to produce profitable live trading. A simple test of robustness (change date range, tickers, fee assumptions, etc.) highlights how cherry-picked the range displayed in the original post is.
Please always do your own thorough research before committing any kind of capital to any kind of strategy, no matter how beautiful the backtest looks to be.
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.
Warren Harding
Hi Douglas, good to see you again. Unlike Beer Money, you can increase the period so the limit orders aren't so tight. It will still profit in backtesting. I chose the last year's date range deliberately as market dynamics change, with 894 trades being put through there is a fair size sample set just trading the last year. You can't just change the ticker, many stocks simply don't revert to the mean as this one does. I use the standard fees. You are right about being careful live trading any strategy, it may simply not perform as expected due to market reaction or some other reason. I still think you should start with exceptional backtests, then see which ones perform well live. Starting with a mediocre backtest is almost certainly going to bring you mediocre results.
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.
Ian Larson
https://www.quantconnect.com/alpha/59c617b46d2ecebdafb790c52 I've been meaning to ask @Douglas Stridsberg about that one. Obviously the equity curve was negative during backtesting so...must be some method to the madness? This one is nothing to sneeze at though: https://www.quantconnect.com/alpha/06bffa9edd7355cdaab263fb2
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.
Jared Broad
I encouraged the submission of Procyonoides. It has a solid core thesis and is mostly negative due to the retail spread of our data vs the algorithm concept itself. Institutions have a better ability to execute and access to different contracts so a consistent slope in either direction can still be a valuable signal.
The alpha stream thesis and research technique is more important than profitability. Many of the biggest funds are simply seeking predictable/reliable uncorrelated out of sample curves.
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.
Warren Harding
Now, THIS is an unrealistic backtest. 3131728331330290000% annual return! 1.3% drawdown! I was hoping to be so rich. Again. Too bad it utterly fails. When you lower the position sizing to a realistic value that considers what will actually fill, the algo fails. The fees rise relative to profits. And it suffers from slippage problems that are compounded by the high frequency (I built a limit order version, it doesn't work either). And it's showing exponential growth that isn't realistic given the fill limitations.
At 98.029% annual returns and 4.9% drawdown TMA2 isn't actually that impressive. It passes all of my reality checks though.
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.
Valery T INVESTOR
Hi Jared,
What are your criterias for selecting such algo?
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.
Hao Bin Zhang
Warren Harding does the interactivebrokermodel actively take into account slippage or model the impact of large market orders? Also, how can an algorithm achieve 16 Sharpe even if it is relatively high frequency! That is really amazing!
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.
Warren Harding
I haven't used the brokerage models as much as I should. I've been using limit orders more and more as I don't trust slippage approximations. Also high frequency trading generally fails due to the slippage adding up with market orders. The default setting does not model large order impacts, I've been keeping order sizes small to stay on the safe side. High frequency algos can definitely profit well, those small gains can really add up.
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!