It was added to Lean on December:
https://github.com/QuantConnect/Lean/issues/4985but when I try to use it with ChaikinMoneyFlow(period), I get exception
TypeError : no constructor matches given arguments
There is also no mention of it in the QC docs indicators reference, or on Lean docs here
https://www.quantconnect.com/lean/docsSo is there a way to use it?
Yuri Lopukhov
It appears I just need to add name as first parameter. Most other indicators don't require this, I guess it is a small overlook.
I don't know how the name is used in the Lean though, if I have multiple indicators, should they all have unique names?
Jared Broad
Hi Yuri, all indicators take a symbol as a first input. It's used like below:
cmf = self.CMF("SPY", 3)
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.
Vladimir
Yuri Lopukhov ,
Here it is.
Yuri Lopukhov
Ok, not sure why you insist, I was able to use it like
ChaikinMoneyFlow("cmf", period)
for my purposes, since I need to update it manually.
I was just asking if the name should be unique, but it does not appear so.
Another thing I mentioned is lack of docs for this indicator (or this helper self.CMF).
Thanks for feedback.
Yuri Lopukhov
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!