Esempio n. 1
0
 def drawdown(self):
     """Relative decline from a peak."""
     return self.wrap(nb.drawdown_nb(self.to_2d_array()))
Esempio n. 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)
Esempio n. 3
0
 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))