Hello,

Im trying to calculate the HullMovingAverage of the RSI, but im getting an error;

 

       self.rsi        = self.RSI(self.symbol, 60, Resolution.Minute)
       hull_ma         = HullMovingAverage(120)
       self.hulrsi     = IndicatorExtensions.Of(hull_ma, self.RSI)

 

what am I doing wrong??

ERROR:

 

During the algorithm initialization, the following exception has occurred: InvalidCastException : cannot convert object to target type ---> Python.Runtime.PythonException: TypeError : value cannot be converted to Type ===   --- End of inner exception stack trace ---   at Python.Runtime.PyObject.AsManagedObject(Type t)   at QuantConnect.Extensions.SafeAsManagedObject(PyObject pyObject, Type typeToConvertTo) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Extensions.cs:line 2621   at QuantConnect.Indicators.IndicatorExtensions.Of(PyObject second, PyObject first, Boolean waitForFirstToReady) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Indicators/IndicatorExtensions.cs:line 343  at Initialize    self.hulrsi     = IndicatorExtensions.Of(hull_ma in main.py: line 54 InvalidCastException : cannot convert object to target type ---> Python.Runtime.PythonException: TypeError : value cannot be converted to Type