I am trying to incoportate the ADX indicator into my algorithm and am having trouble getting it to update. I have commented out a few of the lines that are causing the errors. How do I update using Update(IBaseDataBar)?

 

Runtime Error: NotSupportedException : AverageDirectionalIndex does not support Update(DateTime, decimal) method overload. Use Update(IBaseDataBar) instead.
at QuantConnect.Indicators.IndicatorBase`1[T].Update (System.DateTime time, System.Decimal value) [0x00059] in <af523238837d4a1998a14aa8e932b03f>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <2e7c1c96edae44d496118948ca617c11>:0
at OnDataConsolidated in main.py:line 68
NotSupportedException : AverageDirectionalIndex does not support Update(DateTime, decimal) method overload. Use Update(IBaseDataBar) instead.
at QuantConnect.Indicators.IndicatorBase`1[T].Update (System.DateTime time, System.Decimal value) [0x00059] in <af523238837d4a1998a14aa8e932b03f>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <2e7c1c96edae44d496118948ca617c11>:0 (Open Stacktrace)