Example #1
0
 def __init__(self, series, periods):
     MovingAverageIndex.__init__(self, series, periods)
     self.hist = {
         'q1': [],
         'i1': [],
         'q2': [],
         'i2': [],
         're': [],
         'im': [],
         'sms': [],
         'dts': [],
         'prs': [],
         'sps': [],
         'phs': [],
     }
Example #2
0
 def __init__(self, series, periods):
     MovingAverageIndex.__init__(self, series, periods)
     self.inter = []
Example #3
0
 def __init__(self, series, periods):
     MovingAverageIndex.__init__(self, series, periods)
     offsets = range(1, periods + 1)
     periods_sum = float(sum(offsets))
     self.weights = array([x / periods_sum for x in offsets])
Example #4
0
 def __init__(self, series, periods, k=2.0):
     MovingAverageIndex.__init__(self, series, periods)
     self.k = k
Example #5
0
 def __init__(self, series, periods):
     MovingAverageIndex.__init__(self, series, periods)
     self.hist = {'q1':[], 'i1':[], 'q2':[], 'i2':[], 're':[], 'im':[],
                  'sms':[], 'dts':[], 'prs':[], 'sps':[], 'phs':[], }
Example #6
0
 def __init__(self, series, periods):
     MovingAverageIndex.__init__(self, series, periods)
     self.inter = []
Example #7
0
 def __init__(self, series, periods):
     MovingAverageIndex.__init__(self, series, periods)
     offsets = range(1, periods+1)
     periods_sum = float(sum(offsets))
     self.weights = array([x/periods_sum for x in offsets])
Example #8
0
 def __init__(self, series, periods, k=2.0):
     MovingAverageIndex.__init__(self, series, periods)
     self.k = k