def next_calculation(self, candle):
     if self.get_datawindow() is not None:
         self.value = indicator(self.talib_data(self.get_high()),
                                self.talib_data(self.get_low()),
                                timeperiod=self.params['period'])[-1]
 def next_calculation(self, candle):
     if self.get_datawindow() is not None:
         self.value = indicator(self.talib_data(self.get_close()))[-1]