Hello,

I am trying to work on seeing if the RSI of a stock has been above 66 within the last 5 periods. If it hasn't then I want to add it to my universe selection. Attached is the python code I am using, but I keep getting an error.

Runtime Error: TypeError : Cannot get managed object
at CoarseSelectionFilter
if self.averages[symbol].rsi_max < 66:
===
at Python.Runtime.Dispatcher.TrueDispatch (System.Object[] args) [0x00098] at :0
at Python.Runtime.Dispatcher.Dispatch (System.Object[] args) [0x00008] at :0
at __System_Func`2\[\[System_Collections_Generic_IEnumerable`1\[\[QuantConnect_Data_UniverseSelection_CoarseFundamental\ in main.py:line 71
TypeError : Cannot get managed object

 

What am I doing wrong here?