code: def __init__(self, sourceDS1, sourceDS2, destDS1, destDS2):
      self.__values1 = []  # (datetime, value)
      self.__values2 = []  # (datetime, value)
      self.__destDS1 = destDS1
      self.__destDS2 = destDS2
      sourceDS1.getNewValueEvent().subscribe(self.__onNewValue1)
      sourceDS2.getNewValueEvent().subscribe(self.__onNewValue2)
  
file_path: pyalgotrade/pyalgotrade/dataseries/aligned.py
imports: from pyalgotrade import dataseries
label_desc: Use image node_id 1 to create a new Syncer object from inherited base classes: object with example: obj = Syncer(sourceDS1, sourceDS2, destDS1, destDS2)