Ejemplo n.º 1
0
 def __init__(self, name=None, period=100):
     '''
     Constructor
     '''
     if not name:
         name = 'ATR'
     Indicator.__init__(self,name)
     self._period = period
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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