code: def __updatePreviousState(self, tick):
          ''' update previous state '''
          self.__previousTick=tick
          self.__previousSmaShort=self.__smaShort.getLastValue()
          self.__previousSmaMid=self.__smaMid.getLastValue()
          self.__previousSmaLong=self.__smaLong.getLastValue()
          self.__previousSmaVolumeShort=self.__smaVolumeShort.getLastValue()
          self.__previousSmaVolumeMid=self.__smaVolumeMid.getLastValue()
          self.__previousMovingLowShort=self.__movingLowShort.getLastValue()
          self.__previousMovingLowWeek=self.__movingLowWeek.getLastValue(f __updatePreviousState(self, tick):
          ''' update previous state '''
          self.__previousTick=tick
          self.__previousSmaShort=self.__smaShort.getLastValue()
          self.__previousSmaMid=self.__smaMid.getLastValue()
          self.__previousSmaLong=self.__smaLong.getLastValue()
          self.__previousSmaVolumeShort=self.__smaVolumeShort.getLastValue()
          self.__previousSmaVolumeMid=self.__smaVolumeMid.getLastValue()
          self.__previousMovingLowShort=self.__movingLowShort.getLastValue()
          self.__previousMovingLowWeek=self.__movingLowWeek.getLastValue()
docs: update previous state