tag:blogger.com,1999:blog-35364652.post2635189214536078485..comments2023-11-28T13:12:27.762-05:00Comments on Quantitative Trading: Pre-earnings Annoucement StrategiesErnie Chanhttp://www.blogger.com/profile/02747099358519893177noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-35364652.post-82489789371148853542017-03-03T06:59:49.916-05:002017-03-03T06:59:49.916-05:00That's too high.
4 bps is more realistic.
Er...That's too high.<br /><br />4 bps is more realistic.<br /><br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-17685179966952643692017-03-03T02:00:23.947-05:002017-03-03T02:00:23.947-05:00Hi Ernie,
Is 10 bp a reasonable estimate for roun...Hi Ernie,<br /><br />Is 10 bp a reasonable estimate for round trip transaction costs in US liquid futures markets?<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-24254589237641897702017-03-02T19:49:42.378-05:002017-03-02T19:49:42.378-05:00Did you see the comment I posted above on Feb 23?
...Did you see the comment I posted above on Feb 23?<br /><br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-45985155177767194482017-03-02T19:36:02.118-05:002017-03-02T19:36:02.118-05:00Hi Ernie,
How do we create a Volatility Weighted ...Hi Ernie,<br /><br />How do we create a Volatility Weighted portfolio so that each asset contributes the same<br />daily volatility to the portfolio?<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-67829270727098971452017-03-02T09:03:47.862-05:002017-03-02T09:03:47.862-05:00Hi,
Yes, that's correct. Except bid-ask spread...Hi,<br />Yes, that's correct. Except bid-ask spread should half spread if you are counting just one way tcost.<br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-83682247680961727932017-03-02T00:15:11.918-05:002017-03-02T00:15:11.918-05:00Hi Ernie,
How do we set transaction costs for liq...Hi Ernie,<br /><br />How do we set transaction costs for liquid futures in US in backtesting?<br /><br />transaction costs = commission + bid ask spread + slippage <br /><br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-16161819994726654862017-02-23T08:47:38.860-05:002017-02-23T08:47:38.860-05:00If you portfolio contains assets 1, ..., N, and ea...If you portfolio contains assets 1, ..., N, and each has volatility v1, ..., vN, then you can set the capital allocated to each asset according to Ci=C/vi, where C=1/(1/v1 + ... + 1/vN). This is assuming the total capital is 1.<br /><br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-10605080638635733052017-02-22T19:21:31.587-05:002017-02-22T19:21:31.587-05:00Hi Ernie,
How do we set the position size to be i...Hi Ernie,<br /><br />How do we set the position size to be inversely proportional to<br />each instrument's volatility in a portfolio?<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-91251644567912328302017-02-18T07:00:42.355-05:002017-02-18T07:00:42.355-05:00Hi QuantWork,
Sure, all the strategies that I trad...Hi QuantWork,<br />Sure, all the strategies that I traded in 2006 when I started as independent trader was based on daily data.<br /><br />And yes, it is possible to generate alphas from price data alone. You can see that almost all strategies in my book Machine Trading are based on prices alone.<br /><br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-90041386229661935132017-02-18T04:59:32.359-05:002017-02-18T04:59:32.359-05:00Hello Ernie,
I have a bit out of the topic questi...Hello Ernie,<br /><br />I have a bit out of the topic question but kind of related to all your posts.<br /><br />I have been a quant researcher for a while, and I want to spend my free time working on a quantitative trading solution and start by researching strategies. I know some people use the data from their office to do their own research, and though I could do that, I really do not want to. Hence from my point of view I could rather buy, rent, or use free data. I am choosing to start with free data, and invest on data at a later stage if I feel I can have an edge.<br /><br />My first question would be: back when you started, were you able to work with purely daily data for say stocks or fx? Or were you working with intraday (paid) data from the start? Using close price should be doable in practice from my experience, but I usually work with pretty high frequency data and I really have interest in working on longer holding time models. <br /><br />A secondary question derived from the first one is: do you think it is possible to get an edge from pure price data of an asset, or an asset class, index, or multi asset type? It is not clear to me why an edge using only the price data of a single stock would be justified, i.e. if there is a statistically significant edge for example, there is enough actors on the market to trade enough of a stock to immediately push the price to the extreme that would have been predicted as a trend. So at a retail/small fund level, there is no way to enjoy the ride. Any thought on this?<br /><br />In a sense, I think that I need a touch more guidance, and I believe from reading your book that you have been through the same path in a sense. So I'd be happy if you could mentor, or help in any way, as I do not directly know any algorithmic trader.<br /><br />Thanks a lot.QuantWorknoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-47708977596749415292017-01-30T19:52:14.403-05:002017-01-30T19:52:14.403-05:00Hi BrettMichael,
I am not sure I understand your d...Hi BrettMichael,<br />I am not sure I understand your difficulty of computing the daily returns of any strategy, whether they are rebalanced daily, monthly, or at all. The unlevered daily return of any strategy is just the P&L divided by the gross market value of the portfolio. How you allocate capital to different components of the strategy is immaterial.<br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-21620674800643680702017-01-30T18:25:18.819-05:002017-01-30T18:25:18.819-05:00Hi Ernie,
I have been trying to get the daily ret...Hi Ernie,<br /><br />I have been trying to get the daily returns for a strategy that is rebalanced monthly. I'm sure you've done this before. How do you do it? Or can you guide me in the right direction as to how you do that?<br /><br />obviously what I'm asking for is different than just taking the rebalanced weights and forward filling them to the next rebalance date.<br /><br />Thoughts are more than appreciated!Cal2223https://www.blogger.com/profile/09457839737383784545noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-27285908941004575532017-01-30T09:42:23.267-05:002017-01-30T09:42:23.267-05:00Hi Peter,
The quant team in our firm uses multiple...Hi Peter,<br />The quant team in our firm uses multiple languages for research and execution: I use Matlab, 2 guys use Python, and my partner Roger uses C#. Each has its pros and cons.<br /><br />I have a detailed comparison of Python vs Matlab and other languages in my new book. My preference for Matlab is not subjective: it is based on a performance comparison published by some econometricians - this paper is also cited in my book. In addition, I like the fact that whenever I have questions about how some obscure functions are used, I can get a professional programmer/researcher at Mathworks to answer within 24 hours, sometimes instantly over the phone.<br /><br />Ernie<br /><br />Ernie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-50783254968760145542017-01-30T08:29:41.164-05:002017-01-30T08:29:41.164-05:00Hi Ernie,
Many thanks for taking the time to ans...Hi Ernie, <br /><br />Many thanks for taking the time to answer our questions here.<br />I know your preferred tool for analysis and backtesting is Matlab. I have previously used Matlab but for the past couple of years I have mainly used Python. I assume you have tried or explored the option of switching to Python? What is your main motivation for sticking with Matlab? <br />For me the switch to python has increased my productivity. I use python for both running my live algorithms and for analysis. I find it very convenient to use the same language for both. <br /><br />Thanks<br />Peter<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-27389775145386675932016-12-18T10:43:30.242-05:002016-12-18T10:43:30.242-05:00Hi Paul,
I have yet to find any nonlinear trading ...Hi Paul,<br />I have yet to find any nonlinear trading model that outperforms linear models out-of-sample. But that's just me. Maybe others have succeeded.<br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-20219673501877251502016-12-18T10:24:38.158-05:002016-12-18T10:24:38.158-05:00Hi Ernie,
Another off topic question, I read your...Hi Ernie,<br /><br />Another off topic question, I read your algo trading book previously that you are against models that are (1) non linear, (2) too many parameters that's causing overfit easily. Do you still believe the same? It has been quite some years and I found that recently people are more tend towards using machine learning techniques which many are highly non linear (e.g. deep NN). Of course there are still a number of well known linear statistical learning techniques but do you think now the "simple ways" are too well known and we need to use far more advanced techniques to get some profit?Paulnoreply@blogger.comtag:blogger.com,1999:blog-35364652.post-20371274517635212472016-11-27T08:11:41.499-05:002016-11-27T08:11:41.499-05:00Unknown,
We trade every asset class that we can fi...Unknown,<br />We trade every asset class that we can find strategies. In the last 5 years, it was an FX strategy that has the highest returns, but we also trade(d) futures, ETFs, options and stocks as well.<br /><br />IB did not change its rule: SEC has demanded that all broker dealer drop their FX clients who are not Eligible Contract Participants. I have only traded with FX dealers that only accept ECP clients, so I can't really recommend a retail FX broker. However, I heard that Gain Capital and FXCM are both reasonable choices.<br /><br />I do not think that there are too many good arbitrage opportunities in FX that are enduring, due to frequent government interventions and global macroeconomic shocks such as Brexit. However, if you find one, it would be great since the liquidity is usually better than that of stocks or even futures, and spreads narrower. So the rare arbitrage opportunities tend to be more profitable as well. That is in addition to the easy availability of leverage.<br /><br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-67077008974067510652016-11-27T00:24:22.742-05:002016-11-27T00:24:22.742-05:00Hi Ernest, an off-topic comment here because I'...Hi Ernest, an off-topic comment here because I'm not sure you still reply to old post. I read that you trade mostly fx instead of equities. Is this still the case for you currently? If so do you have any recommendation for fx brokers after IB change their rule on Sept? I'm assuming it would not be worthwhile to trade on IB without the use of leverage. I would also like to read your opinion on fx vs other markets in a future post.ernest's fanhttps://www.blogger.com/profile/00227827379723049281noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-47704586383260545442016-11-26T09:24:41.752-05:002016-11-26T09:24:41.752-05:00Thanks, Ernie.Thanks, Ernie.freeriderhttps://www.blogger.com/profile/13670949298561859820noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-29467506876019856632016-11-26T09:24:02.315-05:002016-11-26T09:24:02.315-05:00This comment has been removed by the author.freeriderhttps://www.blogger.com/profile/13670949298561859820noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-38324857143490053252016-11-22T07:07:00.282-05:002016-11-22T07:07:00.282-05:00Freerider,
The capital allocation scheme that the ...Freerider,<br />The capital allocation scheme that the author proposed is of course the simplest possible - it is merely an equal cap scheme, while constraining the leverage to 1 or below.<br /><br />You can certainly modify it by using risk parity (see my new book), or using Kelly allocation as you suggested. I would actually favor risk parity over Kelly, since there is no evidence that an ex-post Kelly allocation on stocks is optimal ex-ante.<br /><br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-30157708369575520932016-11-21T20:59:39.017-05:002016-11-21T20:59:39.017-05:00"In order to reproduce this result, one needs..."In order to reproduce this result, one needs to make sure that the capital allocation is based on the following formula: suppose the total buying power is M, and the number of trading signals at the market close is n, then the trading size per stock is M/5 if n <= 5, and is M/n if n > 5." <br /><br />This money management bugs me deeply. Why not use a Kelly optimal sizing family (say, half Kelly or Optimal F) which weights for risk adjusted probabilities? <br /><br />Weighting can be done on stand alone basis (individual company, if the sample is large enough) a market wide sample in similar conditions (with some proxy), or both.freeriderhttps://www.blogger.com/profile/13670949298561859820noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-3222433661851102992016-11-19T18:43:12.738-05:002016-11-19T18:43:12.738-05:00Hi Eduardo,
It has been shown that VXX is signific...Hi Eduardo,<br />It has been shown that VXX is significantly negatively correlated to the SPY. So yes, you can certainly use it for hedging. However, I am not sure that it necessarily hedges the volatility of the strategy: the strategy may have better or worse returns during volatile periods, and it can also have either long or short net exposure during that period. We cannot hope to be so lucky that we are hedging both net exposure to market return and net exposure to market volatility at the same time.<br />ErnieErnie Chanhttps://www.blogger.com/profile/02747099358519893177noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-16021429394462655872016-11-19T11:25:54.329-05:002016-11-19T11:25:54.329-05:00Edit: I'm asking because in my tests and tradi...Edit: I'm asking because in my tests and trading of LS equities, hedging the net gross exposure with index futures or corresponding ETF never gave any edge, as you found with the second test here in this post. Anonymoushttps://www.blogger.com/profile/07499890051981038396noreply@blogger.comtag:blogger.com,1999:blog-35364652.post-8560437196615884802016-11-19T11:23:40.721-05:002016-11-19T11:23:40.721-05:00Hi there, Dr.
Excellent post, as usual!
Just a...Hi there, Dr. <br />Excellent post, as usual! <br /><br />Just a quick question, do you think that hedging the portfolio with VIX (or corresponding ETF) comparing the actual weight of the particular stock vol would decrease the volatility of the strategy itself? <br /><br />Best Regards Anonymoushttps://www.blogger.com/profile/07499890051981038396noreply@blogger.com