class_docstr: Ulcer Index
  
  https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:ulcer_index
  
  Args:
      close(pandas.Series): dataset 'Close' column.
      window(int): n period.
      fillna(bool): if True, fill nan values.
class_docstr_tok: ["Ulcer","Index","https",":","\/\/stockcharts.com\/school\/doku.php","?","id=chart_school",":","technical_indicators",":","ulcer_index","Args",":","close","(","pandas.Series",")",":","dataset","'Close","'","column",".","window","(","int",")",":","n","period",".","fillna","(","bool",")",":","if","True",",","fill","nan","values","."]
docstr: Ulcer Index (UI)
  
  Returns:
      pandas.Series: New feature generated.
docstr_tok: ["Ulcer","Index","(","UI",")","Returns",":","pandas.Series",":","New","feature","generated","."]
code: def ulcer_index(self) -> pd.Series:
      """Ulcer Index (UI)
  
      Returns:
          pandas.Series: New feature generated.
      """
      ulcer_idx = self._check_fillna(self._ulcer_idx)
      return pd.Series(ulcer_idx, name="ui")
  
imports: import numpy
  import pandas
  from ta.utils import IndicatorMixin
label_desc: Use image node_id 3 for calling the UlcerIndex obj's underlying member method code with example usage: obj.ulcer_index() and returns: pd