tag:blogger.com,1999:blog-35364652.post7210288934633725733..comments2024-05-23T04:47:33.730-04:00Comments on Quantitative Trading: An updated analysis of the arbitrage between gold and gold-minersErnie Chanhttp://www.blogger.com/profile/02747099358519893177noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-35364652.post-12994749311159985762009-10-26T07:35:08.851-04:002009-10-26T07:35:08.851-04:00If you want to get really interesting, take a look...If you want to get really interesting, take a look at spreads like the call options on gold producers against the futures or against the GDX or GLD. Keeping it simple like pairing one gold stock against another gold stock works fine and it's what we do all day long. Just make sure the 2 gold stocks are similar in size and stock prices.Jaredhttp://www.pairtradefinder.comnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-6225873161244539792009-10-02T15:46:07.780-04:002009-10-02T15:46:07.780-04:00Steve,
Most of our strategies are indeed intraday....Steve,<br />Most of our strategies are indeed intraday. The only exeception is pair trading, where we hold multiple days.<br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-12454116371073137992009-10-02T15:34:46.207-04:002009-10-02T15:34:46.207-04:00Hi, Ernie:
Thanks for sharing your trading strate...Hi, Ernie:<br /><br />Thanks for sharing your trading strategy and ideas. In you book and S&C’s interview, you mentioned you trade intraday, but all these pair trading strategies have half life more than 10 days, so I am kind of confused, are you applying these pair trading strategies to intraday time frame? Thank you.<br /><br />steveUnknownhttps://www.blogger.com/profile/14018005071954553984noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-36542052865436252072009-04-02T08:40:00.000-04:002009-04-02T08:40:00.000-04:00Jacques,One cannot ensure both dollar-neutrality a...Jacques,<BR/>One cannot ensure both dollar-neutrality and market-neutrality simultaneously for the same pair.<BR/>It is up to the trader to decide which option to choose, and there are merits for either choice. However, in any case, if you calculate the hedge ratio based on regression, the pair will not be far away from either type of neutrality.<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-44186569331236739732009-04-02T01:40:00.000-04:002009-04-02T01:40:00.000-04:00Hello Ernie,Please pardon my ignorance in this mat...Hello Ernie,<BR/><BR/>Please pardon my ignorance in this matter... :)<BR/><BR/>Could you please elaborate upon any instances where a quantitative trader intent on engaging in pairs trading based upon cointegration would NOT be concerned with dollar neutrality?<BR/><BR/>Aren't we seeking market and dollar neutrality?<BR/><BR/>Any explanations that you can provide are greatly appreciated.<BR/><BR/>Cheers!Jacques Marsunhttps://www.blogger.com/profile/17028741688120675707noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-67236289141952719072009-03-29T10:59:00.000-04:002009-03-29T10:59:00.000-04:00Jacques,If you are not concerned about dollar-neut...Jacques,<BR/>If you are not concerned about dollar-neutrality, and merely wish to construct a cointegrating pair of ETF vs. futures, then there is no need to worry about the so-called futures multiplier. <BR/><BR/>When one computes the hedge ratio between the ETF price and the futures price, the regression will automatically take care of the relative volatility (or "beta") between the 2 instruments.<BR/><BR/>However, if dollar-neutrality is required, then you have to find out the futures multiplier so that the long and short side has the same market value.<BR/><BR/>(The minimum increment is not relevant to the strategy.)<BR/><BR/>Best,<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-55458409070760059522009-03-29T04:23:00.000-04:002009-03-29T04:23:00.000-04:00Hello Ernie,Have you done any pair trading between...Hello Ernie,<BR/><BR/>Have you done any pair trading between futures and equities/ETF's?<BR/><BR/>Can you offer any insights or explanations regarding the need to align the futures' particular minimum tick increment and tick value attributes with the equity?<BR/><BR/>For example, the minimum increment for an S&P 500 ETF is 0.01, which is worth $0.01. Whereas the minimum tick increment on the E-Mini S&P 500 is 0.25, which is worth $12.50. In order to run a cointegration analysis between the two, we need to account for this, right?<BR/><BR/>Thank you. Any input is much appreciated as always. Your book, blog posts, and replies to our comments are extremely helpful.<BR/><BR/>Cheers!Jacques Marsunhttps://www.blogger.com/profile/17028741688120675707noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-69513939208219456082008-08-07T15:55:00.000-04:002008-08-07T15:55:00.000-04:00When GLD-GDX is at a high, we would want to short ...When GLD-GDX is at a high, we would want to short GLD and long GDX.<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-52478098575555317602008-08-07T15:34:00.000-04:002008-08-07T15:34:00.000-04:00With the spread between GLD-GDX being at an all ti...With the spread between GLD-GDX being at an all time high, what would be the arbitrage scenario today?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-15752652651797633402008-01-03T11:39:00.000-05:002008-01-03T11:39:00.000-05:00Hi Ernie,My sole objective was to delegate some wo...Hi Ernie,<BR/><BR/>My sole objective was to delegate some work from programmer to quant, in reverse from usual ;-). Just joking.<BR/><BR/>Thank you for showing how to match position sizes in the beginning of this thread. I'll get few months of intra day soya data and check this.<BR/><BR/>regardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-12573073444219142982008-01-03T10:14:00.000-05:002008-01-03T10:14:00.000-05:00Dear Dejan,That is indeed an interesting and surpr...Dear Dejan,<BR/>That is indeed an interesting and surprising observation.<BR/><BR/>The same problem with different closing times occur with pairs of ETF's too (NYSE's ETFs closes at 4, AMEX's ETFs closes at 4:15)<BR/><BR/>I don't think it will be a huge problem though if you exit them at the same time. <BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-91691324886302606782008-01-03T09:26:00.000-05:002008-01-03T09:26:00.000-05:00Hi,There is a their symbol list: http://www.mrci.c...Hi,<BR/><BR/>There is a their symbol list: http://www.mrci.com/client/symbols.php<BR/><BR/>I do realy mean Soyabean Oil (BOH) v. Crude Oil (CLG). Their table shows 95% correlation and that holds well for other NYMEX oil futures like RBOB Gasoline (RBG) and Heating Oil (HOG). My guess is that production of the Soyabean Oil is so heavily dependent on the price of petrol, that tight correlation is created. Advantage of this spread would possibly be the fact that it is relatively "undiscovered" and not many speculators are competing for it.<BR/><BR/>Only real snag is that CBOT's Soyabean trading session is closing earlier (1:15pm CET) than NYMEX Oils (2:30 EST), so EOD data on those two contracts do not reflect the same moment in time.<BR/><BR/>Otherwise, good anti-correlated pair would be German Bunds and Euro STOXX 50, both traded on EUREX.<BR/><BR/>regards, dejanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-50718339692749720112008-01-03T05:42:00.000-05:002008-01-03T05:42:00.000-05:00Dear Dejan,I think you meant the correlation betwe...Dear Dejan,<BR/>I think you meant the correlation between crude oil (CL) and HEATING oil (HO) is high. This is in fact true, and can certainly be a candidate for a mean-reversal trade.<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-65099468232659783372008-01-03T05:36:00.000-05:002008-01-03T05:36:00.000-05:00I hope this would be useful to this thread: http:/...I hope this would be useful to this thread: http://www.mrci.com/special/correl.htm . There is this amazing correlation between Soya Oil and Crude Oil future.<BR/><BR/>Would this pair be a good candidate for mean reversal approach?<BR/><BR/>regards, dejanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-73298992480519997062008-01-02T08:39:00.000-05:002008-01-02T08:39:00.000-05:00Dear insight2:1) Regarding correlated pairs, it is...Dear insight2:<BR/><BR/>1) Regarding correlated pairs, it is possible that there are trending characteristics of one side or the other, either prior to entry, or after. However, I have long given up trying to disentangle such subtleties after much research. I have found that one can be quite profitable just trading the basic mean reversion.<BR/><BR/>2) Regarding anti-correlated pairs, I have not done very much research on them. I think it is very possible that they exists under some circumstances, but generally in much smaller number than correlated pairs and they generally last only for a short time, so it is hard to study them. Furthermore, as I have commented elsewhere on this blog, trending behavior tend to be more unreliable, with the duration getting shorter as more traders discover the trend. You will generally find potential trending behaviors after major news release or changes in the fundamental valuation of the companies.<BR/><BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-30231928045851829962008-01-02T08:20:00.000-05:002008-01-02T08:20:00.000-05:00Hi, I only a measily programmer, so I might be wr...Hi, I only a measily programmer, so I might be wrong, but when I looked at those "mean reverting" spreads of the correlated instruments I noticed that relative strength and trend possibly do have some influence.<BR/><BR/>If one's instruments are correlated, than one should go long with relatively stronger instrument and short with relatively weaker instrument. As well, there should be a trend up in stronger one.<BR/><BR/>If one's instruments are anti-correlated, than there should be trend up in the long leg and trend down in the short leg, before the entry.<BR/><BR/>There seems to be more profit in trading anti-correlated instruments versus correlated (I might be wrong here), since one can "let profits run". One enters when spread is zero, and hopefully rides trend "outwards". <BR/><BR/>Is there a way to test this idea?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-80750806803530841092007-04-23T12:42:00.000-04:002007-04-23T12:42:00.000-04:00Yue,It seems that the only way to resolve the diff...Yue,<BR/>It seems that the only way to resolve the difference between your regression results and mine is for you to email me your data so that I can do a comparison. Often when my readers told me they find their results differ from mine it is because of data discrepancies. You can find my email in my profile.<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-31916978207452687762007-04-23T12:07:00.000-04:002007-04-23T12:07:00.000-04:00Ernie:Thanks for the suggestions. Sorry for being ...Ernie:<BR/><BR/>Thanks for the suggestions. Sorry for being a pain. But could you please elaborate how you got the hedge ratio 0.61 after you regressed GDM on GDX? I can only get 0.61 if I regress GDX on GLD directly. If I regress GDM on GLD, then multiply the regression coefficient by the adjustment factor of 27.18, I get a number close to 1. <BR/><BR/>Thanks.<BR/><BR/>YueEggheadhttps://www.blogger.com/profile/15330846598227160507noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-23102651223864605092007-04-21T08:01:00.000-04:002007-04-21T08:01:00.000-04:00Yue,Several points:Firstly, out-of-sample testing ...Yue,<BR/><BR/>Several points:<BR/><BR/>Firstly, out-of-sample testing is only for the confirmation of the validity of cointegration. To determine the best trading parameters such as hedge ratio or standard deviation, one should use all the data you have got (or at least the more recent portion) to give the best estimate.<BR/><BR/>Secondly, I performed the regression test on GDM vs GDX with same adjustment factor as you stated from 20030924 to 20061103 and obtained a hedge ratio of 0.61. If you use this period, hopefully you will get the same number.<BR/><BR/>Thirdly, you will find that this 0.61 ratio works well out-of-sample. For several recent months, this spread seldom moved beyond half a standard deviation from its historical mean!<BR/><BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-39198798647771300902007-04-20T16:17:00.000-04:002007-04-20T16:17:00.000-04:00Thanks, Ernie. That makes sense. However, I still ...Thanks, Ernie. That makes sense. However, I still have confusions about this. :-) You got the ratio 60/100 by regressing GLD on GDX, correct? If I am correct, it means you are using in-sample regression to generate in-sample trade signals from 05/2006 to 12/2006. Of course the graph will look very bounded with trading opportunities. Shouldn't you use out of sample data regression to determine the ratio? The reason why I am confused is that I regressed GLD on GDM from 11/2004 to 05/2006 before the introduction of GDX. Then I mulitplied the regression parameter above by the ratio of GDM/GDX which is around 27.18. The result turned out to be approximately 1.08 GDX/GLD. It's far from the 0.6 you will get by regressing GDX and GLD directly. Did I do anything wrong?<BR/><BR/>Thanks.<BR/><BR/>YueEggheadhttps://www.blogger.com/profile/15330846598227160507noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-43123179769171359262007-04-20T09:26:00.000-04:002007-04-20T09:26:00.000-04:00Yue: If a cointegration analysis based on the shar...Yue: <BR/>If a cointegration analysis based on the share prices of the 2 different assets indicates that these 2 assets do in fact cointegrate historically, it means that their spread was bounded, or mean-reverting, and did not drift to infinity as in a random walk. In such a case, no matter how their individual share prices go (either up or down), their spread will have a well-defined standard deviation that remains bounded, if not fairly constant, in time. The spread will not increase monotonically even as the share prices go up, as long as the 2 assets remain cointegrated going forward.<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-58118008187081270872007-04-20T09:15:00.000-04:002007-04-20T09:15:00.000-04:00Ernie,Thanks for your reply. That's exactly what I...Ernie,<BR/><BR/>Thanks for your reply. That's exactly what I am asking. If you use historical mean of the spread to determine, say, a trade should be put on when it exceeds 2 standard deviation, it may not be appropriate. Let's say the historical gold price is 600. If gold goes up to 1000, the spread between GLD and GDM will be on average much bigger than its historical mean, simply because both GLD and GDM are much higher than their historical averages. Therefore, if you use the historical mean and standard deviation of the spread to determine trade signals when gold is trading at 60% higher than its historical average, it may trigger false signals. Am I correct?<BR/><BR/>Thanks.<BR/><BR/>YueEggheadhttps://www.blogger.com/profile/15330846598227160507noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-28945972149514518192007-04-19T19:51:00.000-04:002007-04-19T19:51:00.000-04:00Yue,Typically people enter a trade when the spread...Yue,<BR/>Typically people enter a trade when the spread reaches several standard deviations from its historical mean. As to how many standard deviations, it is a matter of personal risk/reward preference. A lower number generates more trades, and therefore potentially more annual income, but also incurs greater risk.<BR/>ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-14701369642239249872007-04-19T16:40:00.000-04:002007-04-19T16:40:00.000-04:00Hi, Ernie:Thanks for your blog. Very informative a...Hi, Ernie:<BR/><BR/>Thanks for your blog. Very informative and practical. A beginner question. How do you determine when to put on a trade? In other words, how to determine whether the spread is positive or negative enough? As Let's say the gold price now is 600. One year later, it may go up to 1000. Therefore, the swings of the spread will be wider. How do you determine when it's enough to trigger a trade?<BR/><BR/>Thanks!.<BR/><BR/>YueEggheadhttps://www.blogger.com/profile/15330846598227160507noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-8140517551409110052006-11-16T08:58:00.000-05:002006-11-16T08:58:00.000-05:00Dan: I took a quick look at some currency pairs to...Dan: I took a quick look at some currency pairs to look for cointegration. The most likely candidates are EUR/USD vs GBP/USD, or <br />AUD/USD vs NZD/USD. It all depends on the timescale. For e.g. on a 1-year timescale, the EUR/USD vs GBP/USD pair does appear cointegrated, whereas it doesn't on a longer timescale. This often happens with cointegration: over a long period of time, economic fundamentals do change, and cointegration will fail when that happens.Ernie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.com