class_docstr: This observer keeps track of the current drawdown level (plotted) and
  the maxdrawdown (not plotted) levels
  
  Params:
  
    - ``fund`` (default: ``None``)
  
      If ``None`` the actual mode of the broker (fundmode - True/False) will
      be autodetected to decide if the returns are based on the total net
      asset value or on the fund value. See ``set_fundmode`` in the broker
      documentation
  
      Set it to ``True`` or ``False`` for a specific behavior
class_docstr_tok: ["This","observer","keeps","track","of","the","current","drawdown","level","(","plotted",")","and","the","maxdrawdown","(","not","plotted",")","levels","Params",":","-","``","fund","``","(","default",":","``","None","``",")","If","``","None","``","the","actual","mode","of","the","broker","(","fundmode","-","True\/False",")","will","be","autodetected","to","decide","if","the","returns","are","based","on","the","total","net","asset","value","or","on","the","fund","value",".","See","``","set_fundmode","``","in","the","broker","documentation","Set","it","to","``","True","``","or","``","False","``","for","a","specific","behavior"]
code: def __init__(self):
      kwargs = self.p._getkwargs()
      self._dd = self._owner._addanalyzer_slave(
          bt.analyzers.DrawDown, **kwargs
      )
  
file_path: backtrader/backtrader/observers/drawdown.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import backtrader
  from ..None import Observer
label_desc: Use image node_id 1 to create a new DrawDown object from inherited base classes: Observer with example: obj = DrawDown()