Here is my implementation of Garry Antonacci's Dual Momentum GEM strategy, with an emphasis on simplicity. Comment, discuss, improve...
QUANTCONNECT COMMUNITY
Here is my implementation of Garry Antonacci's Dual Momentum GEM strategy, with an emphasis on simplicity. Comment, discuss, improve...
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.
Filib Uster
Here is an updated version of the code, without all the obsolete lines:
Michael Manus
nicely done.
thanks for sharing
Filib Uster
Here is a an updated version, using OnData to collect the data in real time instead of obtaining it through History each month. The algorithm curve has the same characteristics as in the previous version. The net profit, however, is significantly lower. Can anyone see why?
Filib Uster
The only obvious difference to the previous version I can see, is the start-of-the month instead of the end-of-the-month rebalancing. How can that have such a huge impact on the overall performance?
Hao Bin Zhang
Try testing it with each day. I'm assuming you will find the best performance around the middle of the month. I haven't tested it but I remember it from blogs.
Filib Uster
There doesn't seem to be an easy way to schedule rebalancing for the middle of the month. Any idea, besides the obvious do-it-yourself-approach?
Walter
The day on which the algo is rebalanced can have a big impact on returns. Look at this article:
Quantifying Timing Luck
Tony Walker
There is quite a variation depending on the rebalance day. I tested every day of the month and day-2 shows the largest historical premium, day-17 is the worst performer.
Walter
Any reason why those patterns should hold up going forward? If not, best best is to diverisfy across rebalance dates like in the article mentioned above.
Also take a look at this recent paper:
Global Equity Momentum: A Craftman's Perspective
Stanley Yang
When I cloned the algo and downloaded the trades, it shows theWarning: fill at stale price in tag.
Does anyone know why this happened?
Brian Christopher
Stanley Yang I had the same issue with one of my algorithms. If I remember correctly there's a mismatch between the time the rebalance component is firing and the resolution of the data updates. I'd have to check to see what I had to do to fix it but it might have been to change the symbol resolution for AddEquity.
Link Liang
Hi Stanley and Brian,
Here is what happened: the resolution of subscribed data is Daily, therefore data bars arrive at 00:00 every day. However, the orders are placed in a scheduled event after the market open at 9:30. Since there is no data entry at that time, the stale price from 00:00 is used.
Filib Uster
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!