I get there is Paper Trading and Live Trading options when deploying a project with QC. Paper Trading is simulated within QC, while Live Trading goes through an actual Broker of choice.
Also, when you have an account with Interactive Brokers (IB) you have a Live Account and a Paper Trading Account.
Is it possible and does it work well to use IB's Paper Trading account as a Live Trading option during project deployment?
It looks like I can specify the account number when choosing IB, but I wouldn't want to risk some loophole here that would end up using my actual live account.
Jared Broad
You're correct Levi its safe to enter your IB paper credentials into the wizard and it will deploy to your IB paper account. We'll make this more explicit to help future users.
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.
Matthew Williams
I've used IB Paper Trading with QC several times. There's a few things to know:
In spite of these frustrations, it's definitely worth the hastle. I wish more brokers offered paper trading.
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
Just a note on Matts comment -- "You can only have one connection to IB (with the same credentials) at a time" -- this is by design for your safety as we maintain algorithm state in QuantConnect -- and if your algorithm state/variables/portfolio gets out of sync with IB your algorithm can behave in unexpected ways. We try to get around this by providing as much functionality as possible through the web UX.
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.
Tyler Durden
Matthew Williams
Do you know if the production IB connection to QC suffers the same unexpected problems you describe about the paper trading account?
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.
Derek Tishler
I think some of the frequent 'ignorable-disconnects' are due to the IB servers performing daily maintenance. Depending on the exchange/asset(i.e. forex), you may see an additional restart around 17:00 as well if I recall from testing via IB API pre Lean.
I am able to launch QC IB paper servers anytime, so long as it is not during these down times. If you can log into TWS, you can log in via a QC server(IB Gateway). That is how I check what the point of failure is if I get the 'failed to connect check password' when launching. The worst is trying Friday night, before Coarse fires, as IB has an extended downtime and I usually just want to sleeeeeeep...
Recently I had an issue with price data causing a silent crash on IB paper. I use QC data and was failing to sub to pre-market while trying to perform orders RIGHT at the equity market open (a fraction of a second before the data was available for some of my IB paper servers by chance). I only mention this as an example of slight frictions when going live. Thank goodness for QC support , paper accounts, and QC support.
In order to manage algos, like I would separate traders(and allows for a dedicated paper account per algo/sub-account), I use the IB Proprietary Trading Group – Separate Trading Limit account structure as an LLC. This gives me a great deal more flexibility but relies on QC's live data to be affordable. Possibly something to check out if you are scaling up your operation or are just sick of Linked Accounts.
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.
Tyler Durden
Thanks Derek, great insights. The IB Proprietary Trading Group, is that type of account IB offers?
I notice you mention that you have several paper accounts, are they from the one or several IB accounts? I'm curious to know how you structure your QC -> IB algos given that we're limited to 1 QC server to 1 IB account.
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.
Derek Tishler
Yes it's an account type for a business(not individual). It allows one master account to own any number of sub accounts, each independent from eachother and with a paper login. I think they aggregate the $10 fee depending on usage, all in the IB docs. The master can also be logged in as a supervisor when the others are working(not sure paper is visible but works well for live). Has many benefits, and some shortcomings.
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.
Michael Manus
the same rules also apply to the family and friends account with one master and several "clients" (max 15)
but its for individuals of course... max "15"
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.
Quant Trader
I do not get my paper trading to work. IB phone suppor told me to use lower cases in the user name. So now I can login in the webtrader. However, deploying my algo fails. Any ideas?
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
Quant Trader please send an email to support so we can pull down the logs. Generally this is caused by:
- Incorrect user name / password.
- IB servers not responding.
- Leaving 2FA enabled so our system can't login.
- Having assets not supported by QC in the portfolio (e.g. bonds)
As always - beyond general recommendations we'll need logs to debug and recommend any direction.
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.
Quant Trader
I have reached out to support as I can sign in on the website without token (2FA), but not run. Pitty there is no AppID and secret key on IB like in Azure...
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.
Kevin Du INVESTOR
I'm about to deploy to IB paper account, but I have a dumb question.
It doesn't look like there are two sets of credentials for real and paper account. There is just a toggle on between live and paper account on my IB lite mobile app but all with the same credentials.
well then how do I know I am using my 'paper account'?
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.
Kevin Du INVESTOR
forgot about my previous post. Just found out IB has different username for paper trading account after logging in from desktop.
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.
Petter Hansson
Here's the algo I'm broadcasting adapted from QT (link/attribution in code). I noticed it's trying to issue some too large orders at some points I don't really care to spend time figuring out why, and the code could use a cleanup. Also, if someone wanted to use this, carefully investigating slippage (particularly ensuring TLT and XIV have different values) is a necessity and possibly optimizing the order execution.
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.
Petter Hansson
(Also, a disclaimer, with XIV it's good to familiarize with the the fact you could lose 100% of your investment overnight in some extreme circumstance... you're making money taking on tail risk.)
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.
Thomas Chang
@Petter,
>>you could lose 100% of your investment overnight in some extreme circumstance...
Yes. But I think maybe this is a little bit exaggerated? :-)
As Alex said: But you can easily re-construct (using pandas or even Excel) VXX and XIV back to 1990 by using their underlying indices...
If it's really could be re-constructed, one knows how to do the risk-management in his algo, right? And I think this is at least much 'saver' than doing PUT or SHORT.
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.
Petter Hansson
Sure, just pointing out so nobody puts 100% of their capital into something like this. :-)
As for assuming the future will be same as the past, I don't recommend it in this case. Shorting volatility is a lot more popular now than in the past, which may lead to bigger kickbacks.
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.
Petter Hansson
Good reading from time on time regarding the subject of risks in volatility, if somewhat gloomy.
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.
Stevehank
Has anyone adapted any of the QT algorithms in below and successfully backtested in QC?
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.
Petter Hansson
I messed around with a ML version of something similar on QT but concluded the 'amazing' results in backtests were classical overfitting or out of date market inefficiencies. My ML version wanted to be long XIV mostly (go figure). These guys seem to arrive at something similar with better analysis than mine. That's not to say there isn't some signal in that data, but a few decision tree like rules or some linear classifier/regressor isn't going to cut it.
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.
Stevehank
Much of the gains from strategies in the previous link are via UVXY, has anyone implemented a volatility strategy in QC with UVXY?
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.
Thomas Chang
With UVXY? You will short it or long it?
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.
Petter Hansson
Caveat: Shorting UVXY is easy in the same way that being long XIV is "easy" - algos that do either on average will likely work for some time for that reason.
Also, the backtest will not take into account short interest paid and by default IB's leverage limitation (IIRC now effectively cancelling out leverage you get versus XIV) isn't represented.
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.
Stephen Oehler
Be careful about shorting something this volatile. I mentioned this in another post, but: you can not only lose your shirt but also your house by shorting something that has the potential to climb instantly for no reason. XIV has some protections in place to prevent it from climbing too rapidly (if one decides to thumb through the prospectus) but who knows the circumstances in which that would happen.
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.
TurboDZyl
I would like to implement a similar strategy as Alex did above, but selling call spreads or buying put options on UVXY, to limit risk. However if I simply add
option = self.AddOption("UVXY")
in Initialize to be able to trade options, I get the following error once the backtest hits March 20, 2012:
Runtime Error: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for `System.Collections.Generic.KeyValuePair<QuantConnect.Symbol,QuantConnect.Data.BaseData>.KeyValuePair(QuantConnect.Symbol, QuantConnect.Data.BaseData)' has some invalid arguments
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
turboDZyl -- Please avoid necro-posting or thread hijacking. If you have an issue with your specific algorithm post a new discussion and attach the backtest. To reference the original thread post a link to it in your new discussion.
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.
Anthony FJ Garner
Given Quantopian's abandonment of personal automated trading I'm not surprised the refugees come over here. Especially since Python is now possible. What I would really need to trade VIX algorithmically is an automatically generated front month concatenated futures contract also showing spot VIX so as to be able to compute my favoured measure of contango/backwardation.
Although presumably one could just keep taking in the individual front month contract.
The big worry on XIV of course is a termination event. While VXX may seem unlikley to terminate (although I have not checked the prospectus) it is designed to go bust anyway and will just have another price consolidation (reverse split). I guess the bigger worry however is that the managers may not be unable to purchase futures contracts (to rebalance) during a spike in vol since the vast short brigade will be competing to gain cover and reverse their shorts.
Nonetheless a safer route to long XIV may just be deep ITM VXX puts.
I much look forward to working on Quantconnect now it has integrated Python.
I must say that my VIX adventure so far is a simple monthly rebalance between an inverse VIX fund such as XIV and a geared bond fund based on simple inverse volatility. Maximum drawdown on back testing is vastly reduced but of course the low correlation may not hold and XIV may suffer a liquidation event.
However, provided a liquidation event only occurs once in a blue moon, the method should enable one to survive. And you need to be ready with an alternative way to short VIX. Shorting VIX options seems hopeless. I can find little joy there although theoretically of course the options are based on futures. Nonetheless trading monthly VIX puts does not produce anywhere like the performance of a monthly short of the futures front month.
Perhaps I have made an error somewhere.
Anyway, I'm a Quantopian refugee although I have to say I had not been active there for about a year. I suggested they "offer bread today not jam tomorrow" and they seem to have heeded me as regards their competition. Nonetheless Quantopian is of little interest now that you can no longer trade using their framework. Especially since few have interest in the model they want to trade – a very low beta long short US equity approach.
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.
Anthony FJ Garner
No, you can not go back to 1990 by using indices.
While the VIX index itself goes back as far as 1990, futures on the VIX only commenced in 2004 and options in 2006. Without futures there is no contango/backwardation and no XIV or VXX.
The S&P Index on which XIV is basd only goes back 10 years. What you need to do it to use the actual futures contracts to simulate XIV and VXX and you need to interpolate the front ans second month as per the index. The first chart below is the drawdown chart obtained by maintaining a 1x short position in the VIX front month futures contract since 2004. No interpolation applied. The second chart is the drawdown of the S&P 500 VIX Short Term Futures Inverse Daily Index TR since 2007. As you can see the drawdown for XIV in the last crash would have been close to 90%. Not pretty!
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.
Artemiusgreat
My implementation for C#.
The main problem that I see with Pairs Trading is that it's not clear when spread between correlated assets is enough to open positions. Prices of assets are often different and to compare them we need to normalize them, but usually after normalization we cannot compare actual prices because they are measured in abstract units, e.g. logarithms. Will it be enough to compensate commision if divergence is equal to 0.35 or 0.25? In my strategy I tried to use difference between fast and slow MAs, but it's also an approximation, and thus strategy has losses, because when MAs converge it doesn't mean that actual prices converged too.
Idea with RSI proposed by author also looks like an aproximation and also gives loses, maybe someone has a better idea for indicator that can display divergence between correlated assets?
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.
Alex Muci
@Anthony FJ Garner: you're right, I was imprecise - thanks for clarifying here.
Unfortunately, I've just learnt that European retail investors cannot puchase more XIV shares from 1st Jan 2018.
Long explanation: under the coming MIFID 2, the XIV is classified as a PRIIP ("Packaged Retails Investment and Insurance Product") and its issuer must publish a Key Information Document (KID) before private investors can make further purchases (we are, of course, allowed to keep or sell the shares we already own). The issuer of the XIV (Credit Suisse) apparently does not intend to publish a KID and this is the real issue.
I guess this is a good execuse (new regulations) for CS to constraint or limit some recent buying pressure on the ETN.
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.
Anthony FJ Garner
Alex
How about SVXY? I usually register myself as a professional investor - I had better check I did so with IB. I wonder how that affects dealing in the derivatives. Not that there are any in XIVs case but of couse you could always buy VXX puts.
Regulators in general are not the brightes or most constructive of people.
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.
Alex Muci
Anthony.
I don't know about SVXY. I've only received a communication from my pension provider regarding XIV (since in my portfolio), but nothing yet from IB. Perhaps you are right and regulations does not apply to me as professional. Worst case my solution is shorting VX futures - less granular and more risky (since being long XIV had at least the the beaty to have a bound loss, not a luxury you have with short futures).
Definetely something worth checking with IB.
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.
Anthony FJ Garner
Totally agree re shorting the futures - madness. If XIV becomes impossible (and also SVXY) I shall buy VXX puts. If those get banned well....um...its pointless using VIX options. Despite the fact they are linked to the relevant futures contract extracting the contango seems impossible from my back testing. I must triple check my back tester but....The returns using VIX options suck compared to using futures or the futures related ETFs.
Despite my scepticism I have also begun disaster insurance for my short VIX products using LEAPS going out two years, deep OTM. At least its some protection against a complete bust. Its a good strategy but it will be interesting to live throgh the coming shitstorm and survive....
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!