minperioddiff Error with ExponentialSmoothingDynamic Ind. with talib.
Hello there. My issue is I receive this error :
backtrade/venv/lib/python3.8/site-packages/backtrader/indicators/basicops.py", line 439, in init
minperioddiff = max(0, self.alpha._minperiod - self.p.period)
AttributeError: 'float' object has no attribute '_minperiod'
When I try to use the ExponentialSmoothingDynamic() func with an indicator as input from the TaLib library.
Indicator as follows:
Not sure if it has to do with talib indy's using 'timeperiod' and the ExpSmooth looking for just 'period' ??
Any help would be much appreciated!
vladisld last edited by
@incabot I think the
alphaparameter should be specified for
ExponentialSmoothingDynamicindicator. See the example in the