code: def brar(
      open_,
      high,
      low,
      close,
      length=None,
      scalar=None,
      drift=None,
      offset=None,
      **kwargs,
  ):
      """Indicator: BRAR (BRAR)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 26
      scalar = float(scalar) if scalar else 100
      high_open_range = non_zero_range(high, open_)
      open_low_range = non_zero_range(open_, low)
      open_ = verify_series(open_, length)
      high = verify_series(high, length)
      low = verify_series(low, length)
      close = verify_series(close, length)
      drift = get_drift(drift)
      offset = get_offset(offset)
  
      if open_ is None or high is None or low is None or close is None:
          return
  
      # Calculate Result
      hcy = non_zero_range(high, close.shift(drift))
      cyl = non_zero_range(close.shift(drift), low)
  
      hcy[hcy < 0] = 0  # Zero negative values
      cyl[cyl < 0] = 0  # ""
  
      ar = scalar * high_open_range.rolling(length).sum()
      ar /= open_low_range.rolling(length).sum()
  
      br = scalar * hcy.rolling(length).sum()
      br /= cyl.rolling(length).sum()
  
      # Offset
      if offset != 0:
          ar = ar.shift(offset)
          br = ar.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          ar.fillna(kwargs["fillna"], inplace=True)
          br.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          ar.fillna(method=kwargs["fill_method"], inplace=True)
          br.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      _props = f"_{length}"
      ar.name = f"AR{_props}"
      br.name = f"BR{_props}"
      ar.category = br.category = "momentum"
  
      # Prepare DataFrame to return
      brardf = DataFrame({ar.name: ar, br.name: br})
      brardf.name = f"BRAR{_props}"
      brardf.category = "momentum"
  
      return brardf
  
label_desc: Use image node_id 1 for calling a global function with example usage: brar(open_, high, low, close, length, scalar, drift, offset) and returns: brardf