Hello everyone,
Is there an example of working on different resolutions at the same time?
For example: I use indicators such as MACD, ADX on daily resolution of a symbol, after a trade signal is found on daily resolution, I use 15 mins resolution data of this symbol to find a accurate buy point and finally make a trade.
I know the method of using data consolidators, but I don't know how to use it to solve the above problem.
Is there such an example that I could learn from it? Thanks!
Varad Kabade
Hi Code quant,
To implement the above strategy, we would have to use the use of minute resolution in the security to create 15-minute consolidators and indicators at daily resolution. We have created a demo algorithm for you with comments as a guide to understand. Refer to the attached backtest. For more information regarding using consolidators, we recommend going through the following docs.
Best,
Varad Kabade
Code quant
Hi Varad,
Is there a real example that include how to check signal in two different resolutions, how to place loss stop, etc? The backtest you attached is a concept explanation example, which is much alike what I could find in doc.
Thanks!
Varad Kabade
Hi Code quant,
In the above algorithm in the FifteenMinuteBarHandler, you can check the signal for this resolution(15-minutes). Similarly, we can use different Consolidator's update methods for checking the signal at a different resolution. Alternatively, we can also create Scheduled events to trigger a code block at a fixed interval. Regarding stop-loss and take profit implementation in an algorithm, please refer to the following thread.
Best,
Varad Kabade
Code quant
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!