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