class_docstr: :Usage:
      Instantiate RiskMetricsCumulative once.
      Call update() method on each dt to update the metrics.
class_docstr_tok: [":","Usage",":","Instantiate","RiskMetricsCumulative","once",".","Call","update","(",")","method","on","each","dt","to","update","the","metrics","."]
code: def update_current_max(self):
      if len(self.algorithm_cumulative_returns) == 0:
          return
      current_cumulative_return = self.algorithm_cumulative_returns[
          self.latest_dt_loc
      ]
      if self.current_max < current_cumulative_return:
          self.current_max = current_cumulative_return
  
file_path: catalyst/catalyst/finance/risk/cumulative.py
imports: import functools
  import logbook
  import numpy
  import pandas
  from pandas.tseries.tools import normalize_date
  from six import iteritems
  from .risk import check_entry, choose_treasury
  from catalyst.patches.stats import alpha_beta_aligned, annual_volatility, downside_risk, information_ratio, max_drawdown, sharpe_ratio, sortino_ratio, cum_returns
  import warnings
  from catalyst.constants import LOG_LEVEL
label_desc: Use image node_id 5 for calling the RiskMetricsCumulative obj's underlying member method code with example usage: obj.update_current_max() without return types