code: def ultimate_oscillator(close_data, low_data):
      
      a7 = 4 * average_7(close_data, low_data)
      a14 = 2 * average_14(close_data, low_data)
      a28 = average_28(close_data, low_data)
      uo = 100 * ((a7 + a14 + a28) / 7)
      return uo
docs: Ultimate Oscillator.
  
      Formula:
      UO = 100 * ((4 * AVG7) + (2 * AVG14) + AVG28) / (4 + 2 + 1)