code: def __init__(self, instrumentTraits):
      self.__instrumentTraits = instrumentTraits
      self.reset()
  
imports: import math
  from pyalgotrade import stratanalyzer
  from pyalgotrade import observer
  from pyalgotrade import dataseries
label_desc: Use image node_id 1 to create a new PositionTracker object from inherited base classes: object with example: obj = PositionTracker(instrumentTraits)