Back

Dual Momentum GEM strategy by Gary Antonacci

Here is my implementation of Garry Antonacci's Dual Momentum GEM strategy, with an emphasis on simplicity. Comment, discuss, improve... 

Update Backtest








0

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.


Here is an updated version of the code, without all the obsolete lines:

 

0


nicely done.

thanks for sharing

0

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? 

0


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? 

0

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.

0

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?

0

The day on which the algo is rebalanced can have a big impact on returns. Look at this article:

Quantifying Timing Luck

0

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. 

0

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

1

When I cloned the algo and downloaded the trades, it shows theWarning: fill at stale price in tag.

Does anyone know why this happened?

0

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. 

0

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.

1

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.


Update Backtest





0

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.


Loading...

This discussion is closed