I follow how the docs registers the indicator with Consolidator. But It doesnt seem to work? And here's the logs
2021-09-28 07:25:00 , 34561.0, 34561.0, 34561.0, 34561.0
2021-09-28 07:26:00 enter hma updated
2021-09-28 07:26:00 , 34561.0, 34561.5, 34561.0, 34561.0
2021-09-28 07:27:00 enter hma updated
2021-09-28 07:27:00 , 34561.0, 34562.0, 34561.5, 34561.5
2021-09-28 07:28:00 enter hma updated
2021-09-28 07:28:00 , 34561.0, 34579.5, 34571.0, 34571.0
2021-09-28 07:29:00 enter hma updated
2021-09-28 07:29:00 , 34561.0, 34584.0, 34582.5, 34582.5
2021-09-28 07:30:00 enter hma updated
2021-09-28 07:30:00 , 34586.0, 34586.0, 34584.5, 34584.5
2021-09-28 07:31:00 enter hma updated
2021-09-28 07:31:00 , 34586.0, 34597.0, 34591.5, 34591.5
2021-09-28 07:32:00 enter hma updated
2021-09-28 07:32:00 , 34586.0, 34608.0, 34602.5, 34602.5
2021-09-28 07:33:00 enter hma updated
2021-09-28 07:33:00 , 34586.0, 34595.0, 34601.5, 34601.5
2021-09-28 07:34:00 enter hma updated
2021-09-28 07:34:00 , 34586.0, 34595.0, 34595.0, 34595.0
1st number : close price every 5 mins
2nd number: close price every min
3rd number : indicator value every min
4th number : should be indicator value every 5 min, but it is the same as 3rd number which is indicator value in every min
In the log, you can see the first number(close price) changes every 5 mins, so the consolidator works for the quote bar. But 4th number dosen't change the number every 5 mins?
PS: I change self.hma to sma for debugging, so the code may seem strange
Does anyone have any idea? Thx in advance!!!!!!
Will Chau
Hi all, I figured it out.
This is revolved by changing
To
Will Chau
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!