code: def build_hurst(values, period, minLags, maxLags):
      ds = dataseries.SequenceDataSeries()
      ret = hurst.HurstExponent(ds, period, minLags, maxLags)
      for value in values:
          ds.append(value)
      return ret
  
file_path: pyalgotrade/testcases/technical_hurst_test.py
imports: import numpy
  from .None import common
  from pyalgotrade.technical import hurst
  from pyalgotrade import dataseries
label_desc: Use image node_id 1 for calling a global function with example usage: build_hurst(values, period, minLags, maxLags) and returns: ret