Exemple #1
0
 def drawdown(self):
     """Relative decline from a peak."""
     return self.wrap(nb.drawdown_nb(self.to_2d_array()))
Exemple #2
0
 def drawdown(self, wrap_kwargs: tp.KwargsLike = None) -> tp.SeriesFrame:
     """Relative decline from a peak."""
     result = nb.drawdown_nb(self.to_2d_array())
     wrap_kwargs = merge_dicts({}, wrap_kwargs)
     return self.wrapper.wrap(result, **wrap_kwargs)
 def drawdown(self, wrap_kwargs=None):
     """Relative decline from a peak."""
     return self.wrapper.wrap(nb.drawdown_nb(self.to_2d_array()), **merge_dicts({}, wrap_kwargs))