Back

Moving Average Crossover using the Daily Data

I'm looking to change the resolution of a MA crossover template to the equivalent of Resolution.Day, although of course the "Day" modifier does not yet exist. Is this possible? I'm looking to share an effective automated system to display a lucrative system around the tech boom and bust, and US housing boom and bust.
Update Backtest








We don't have Day yet but its on the to-do list :) For now you can build day-candles with the TradeBar consolidator class in the Code Library (above). This will combine many minute bars into one. You could even use time and combine all the bars into one until 3.59pm
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.


Much appreciated, Gustavo. I'll give it a whirl.
0

Can you clarify where to place the 3 lines in the "HOW TO USE" steps? Are those lines to be added to an existing file, such as Main.cs? If so, where? Also, when adjusting the number of bars to consolidate, are there adjustments to be made in Consolidator.cs, in the “this.barCount = 0;” line, for instance, or is the specification in the line creating a new instance of consolidator sufficient? Much appreciated.
0

It was tricky to rewrite the existing one so I rewrote it from scratch - see this backtest with the Consolidator using a time based Ready flag set to 15:59. (The last tradebar of day, there is no 16:00 bar)
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.


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