code: def __buildTrend(
      self,
      values,
      trendDays,
      positiveThreshold,
      negativeThreshold,
      trendMaxLen=None,
  ):
      seqDS = dataseries.SequenceDataSeries()
      ret = linreg.Trend(
          seqDS,
          trendDays,
          positiveThreshold,
          negativeThreshold,
          trendMaxLen,
      )
      for value in values:
          seqDS.append(value)
      return ret
  
file_path: pyalgotrade/testcases/technical_trend_test.py
imports: from .None import common
  from pyalgotrade.technical import linreg
  from pyalgotrade import dataseries
label_desc: Use image node_id 1 for calling the TrendTest obj's underlying member method code with example usage: obj.__buildTrend(values, trendDays, positiveThreshold, negativeThreshold, trendMaxLen) and returns: ret