Exemple #1
0
 def __init__(self, name=None, period=100):
     '''
     Constructor
     '''
     if not name:
         name = 'ATR'
     Indicator.__init__(self,name)
     self._period = period
Exemple #2
0
 def __init__(self, name, feed, talibfunc, talibhelper, *parameters):
     '''
     Constructor
     '''
     Indicator.__init__(self, name)
     self._feed = feed
     self._talibfunc = talibfunc
     self._talibhelper = talibhelper
     self._parms = parameters
Exemple #3
0
 def __init__(self, name, feed, talibfunc, talibhelper, *parameters):
     '''
     Constructor
     '''        
     Indicator.__init__(self,name)
     self._feed = feed
     self._talibfunc = talibfunc
     self._talibhelper = talibhelper
     self._parms = parameters
Exemple #4
0
 def __init__(self, name=None, period=2, baseIndicator=None):
     '''
     Constructor
     '''
     if not name:
         name = 'CUM'
     Indicator.__init__(self,name)
     self._period = period
     if baseIndicator == None:
         raise Exception("Cannot instantiate PriceVelocity indicator without a base indicator!")
     self._base = baseIndicator
Exemple #5
0
 def __init__(self, name=None, period=2, baseIndicator=None):
     '''
     Constructor
     '''
     if not name:
         name = 'CUM'
     Indicator.__init__(self, name)
     self._period = period
     if baseIndicator == None:
         raise Exception(
             "Cannot instantiate PriceVelocity indicator without a base indicator!"
         )
     self._base = baseIndicator