code: def __init__(
      self,
      dataSeries,
      trendDays,
      positiveThreshold=0,
      negativeThreshold=0,
      maxLen=None,
  ):
      super(Trend, self).__init__(
          dataSeries,
          TrendEventWindow(
              trendDays, positiveThreshold, negativeThreshold
          ),
          maxLen,
      )
  
imports: from pyalgotrade import technical
  from pyalgotrade.utils import collections
  from pyalgotrade.utils import dt
  import numpy
  from scipy import stats
label_desc: Use image node_id 1 to create a new Trend object from inherited base classes: technical with example: obj = Trend(dataSeries, trendDays, positiveThreshold, negativeThreshold, maxLen)