@@ -450,12 +450,11 @@ def evaluate_cci(self, period=20, prefix="cci", impact_buy=1, impact_sell=1, sel
450
450
:param prefix:
451
451
:return:
452
452
"""
453
- from technical .indicators import cci
454
453
455
454
self ._weights (impact_buy , impact_sell )
456
455
dataframe = self .dataframe
457
456
name = '{}_{}' .format (prefix , period )
458
- dataframe [name ] = cci (dataframe , period )
457
+ dataframe [name ] = ta . CCI (dataframe , timeperiod = period )
459
458
460
459
dataframe .loc [
461
460
(
@@ -539,12 +538,10 @@ def evaluate_cmo(self, period=20, prefix="cmo", impact_buy=1, impact_sell=1):
539
538
:param prefix:
540
539
:return:
541
540
"""
542
- from technical .indicators import cmo
543
-
544
541
self ._weights (impact_buy , impact_sell )
545
542
dataframe = self .dataframe
546
543
name = '{}_{}' .format (prefix , period )
547
- dataframe [name ] = cmo (dataframe , period )
544
+ dataframe [name ] = ta . CMO (dataframe , timeperiod = period )
548
545
549
546
dataframe .loc [
550
547
(
@@ -608,12 +605,10 @@ def evaluate_ultimate_oscilator(self, prefix="uo", impact_buy=1, impact_sell=1):
608
605
:param prefix:
609
606
:return:
610
607
"""
611
- from technical .indicators import ultimate_oscilator
612
-
613
608
self ._weights (impact_buy , impact_sell )
614
609
dataframe = self .dataframe
615
610
name = '{}' .format (prefix )
616
- dataframe [name ] = ultimate_oscilator (dataframe )
611
+ dataframe [name ] = ta . ULTOSC (dataframe )
617
612
618
613
dataframe .loc [
619
614
(
@@ -666,12 +661,11 @@ def evaluate_momentum(self, period=20, prefix="momentum", impact_buy=1, impact_s
666
661
:param prefix:
667
662
:return:
668
663
"""
669
- from technical .indicators import momentum
670
664
671
665
self ._weights (impact_buy , impact_sell )
672
666
dataframe = self .dataframe
673
667
name = '{}_{}' .format (prefix , period )
674
- dataframe [name ] = momentum (dataframe , 'close' , period )
668
+ dataframe [name ] = ta . MOM (dataframe , timeperiod = period )
675
669
676
670
dataframe .loc [
677
671
(
0 commit comments