def calculate(self): pivot, s1, s2, s3 = Indicators.MACD( self.series['close'], fastperiod = self.fastperiod, slowperiod = self.slowperiod, signalperiod = self.signalperiod ) return ( pivot, common.padNans(s1, self.index), common.padNans(s2, self.index), common.padNans(s3, self.index) )
def calculate(self): pivot, s1, s2 = getattr(Indicators, self.func).__call__( self.series['high'], self.series['low'], self.series['close'], self.fastk_period, self.fastd_period, self.fastd_matype) return (pivot, common.padNans(s1, self.index), common.padNans(s2, self.index))
def calculate(self): pivot, s1, s2, s3 = Indicators.BBANDS(self.series['close'], self.timeperiod, self.nbdevup, self.nbdevdn, self.matype) return (pivot, common.padNans(s1, self.index), common.padNans(s2, self.index), common.padNans(s3, self.index))
def calculate(self): pivot, s1, s2, s3 = Indicators.MACD(self.series['close'], fastperiod=self.fastperiod, slowperiod=self.slowperiod, signalperiod=self.signalperiod) return (pivot, common.padNans(s1, self.index), common.padNans(s2, self.index), common.padNans(s3, self.index))
def calculate(self): pivot, s1 = getattr(Indicators, self.func).__call__( self.series['open'], self.series['high'], self.series['low'], self.series['close'], penetration = int(self.cget('penetration')) ) return ( pivot, common.padNans(s1, self.index) )
def calculate(self): pivot, s1 = getattr(Indicators, self.func).__call__( self.series['open'], self.series['low'], self.series['high'], self.series['close'] ) print s1 return ( pivot, common.padNans(s1, self.index) )
def calculate(self): pivot, s1 = getattr(Indicators, self.func).__call__(self.series['high'], self.series['low'], self.series['close'], timeperiod=self.timeperiod) return (pivot, common.padNans(s1, self.index))
def calculate(self): pivot, s1 = getattr(Indicators, self.func).__call__(self.series['open'], self.series['low'], self.series['high'], self.series['close']) print s1 return (pivot, common.padNans(s1, self.index))
def calculate(self): pivot, s1 = getattr(Indicators, self.func).__call__(self.series['open'], self.series['high'], self.series['low'], self.series['close'], penetration=int( self.cget('penetration'))) return (pivot, common.padNans(s1, self.index))
def calculate(self): pivot, s1 = getattr(Indicators, self.func).__call__( self.series['close'], timeperiod = self.timeperiod ) return ( pivot, common.padNans(s1, self.index) )
def calculate(self): sr = self.series['close'] idx = common._zigzag(sr, cutoff=self.cutoff()) return (0, common.padNans(sr[idx], index=self.index[idx]))
def calculate(self): pivot, s = Indicators.CCI( self.series['high'], self.series['low'], self.series['close'], timeperiod = self.timeperiod() ) return ( pivot, common.padNans(s, self.index) )
def calculate(self): sr = self.series['close'] idx = common._zigzag( sr, cutoff = self.cutoff() ) return ( 0, common.padNans( sr[idx], index= self.index[idx] ) )
def calculate(self): pivot, s1, s2, s3 = Indicators.BBANDS( self.series['close'], self.timeperiod, self.nbdevup, self.nbdevdn, self.matype ) return ( pivot, common.padNans(s1, self.index), common.padNans(s2, self.index), common.padNans(s3, self.index) )
def calculate(self): pivot, s = Indicators.RSI(self.series['close'], timeperiod=self.timeperiod()) return (pivot, common.padNans(s, self.index))
def calculate(self): pivot, s1, s2 = getattr(Indicators, self.func).__call__( self.series['close'], self.period, self.fastk_period, self.fastd_period, self.fastd_matype ) return ( pivot, common.padNans(s1, self.index), common.padNans(s2, self.index) )