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