code: def vhf(close, length=None, drift=None, offset=None, **kwargs):
      """Indicator: Vertical Horizontal Filter (VHF)"""
      # Validate arguments
      length = int(length) if length and length > 0 else 28
      close = verify_series(close, length)
      drift = get_drift(drift)
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Calculate Result
      hcp = close.rolling(length).max()
      lcp = close.rolling(length).min()
      diff = npFabs(close.diff(drift))
      vhf = (
          npFabs(non_zero_range(hcp, lcp)) / diff.rolling(length).sum()
      )
  
      # Offset
      if offset != 0:
          vhf = vhf.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          vhf.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          vhf.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      vhf.name = f"VHF_{length}"
      vhf.category = "trend"
  
      return vhf
  
label_desc: Use image node_id 1 for calling a global function with example usage: vhf(close, length, drift, offset) and returns: vhf