Back

Custom Resolution Timeframes?

Hi, I'm new to the community.  I'm a beginner (to almost intermediate :) programmer, and am currently learning Python.

May I ask if there's a way to set the Resolution in QuantConnect for several hours?  

I'm seeing that Resolution can be set to tick, second, minute, hour, or daily – in this documentation:

https://www.quantconnect.com/docs/algorithm-reference/initializing-algorithms#Initializing-Algorithms-Selecting-Asset-Data

I'd ideally like to set the Resolution to some number of hours – like 6 hours, 12 hours, etc.

Thanks for any guidance!

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.


Hi Steve,

The only present Resolutions are the ones you've mentioned above. However, you can use Consolidators to get data ate specified time frames other than the selected Resolution. I've attached an example of how to use a Consolidator to get data at 6-hour intervals. Hope this helps!

2

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.


Jack,

Thanks so much for going over this.  I've heard mention of this Consolidator. :)  Glad to finally know what it does – and to learn that it solves this question I've had.

I really appreciate it.

0

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