code: def __onNewValue1(self, dataSeries, dateTime, value):
      pos2 = self.__findPosForDateTime(self.__values2, dateTime)
      # If a value for dateTime was added to first dataseries, and a value for that same datetime is also in the second one
      # then append to both destination dataseries.
      if pos2 is not None:
          self.__append(dateTime, value, self.__values2[pos2][1])
          # Reset buffers.
          self.__values1 = []
          self.__values2 = self.__values2[pos2 + 1 :]
      else:
          # Since source dataseries may not hold all the values we need, we need to buffer manually.
          self.__values1.append((dateTime, value))
  
file_path: pyalgotrade/pyalgotrade/dataseries/aligned.py
imports: from pyalgotrade import dataseries
label_desc: Use image node_id 3 for calling the Syncer obj's underlying member method code with example usage: obj.__onNewValue1(dataSeries, dateTime, value) without return types