It seems that indicators can not be properly updated manually in Python. There is no way to initialize an indicator without it auto-updating.
For example:
`hma = self.HMA(self.symbolId, 10)`
will start automatic updates.
How can you prevent automatic updates of an indicator in Python?
Rahul Chowdhury
Hey Will,
You can initialize an indicator using its Constructor rather than using the helper method. For example
hma = HullMovingAverage(10)
This creates a 10 period HMA indicator which is not updated by any data source. From here you can manually update the indicator with data
hma.Update(time, close)
Learn more about creating and updating indicators in theĀ documentation.
Best
Rahul
Will Tesler
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!