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","."]
code: def __init__(
      self, close: pd.Series, window: int = 14, fillna: bool = False
  ):
      self._close = close
      self._window = window
      self._fillna = fillna
      self._run()
  
imports: import numpy
  import pandas
  from ta.utils import IndicatorMixin
label_desc: Use image node_id 1 to create a new UlcerIndex object from inherited base classes: IndicatorMixin with example: obj = UlcerIndex(close, window, fillna)