Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
yutiansut committed May 16, 2020
1 parent 5cb93cf commit 63010da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QUANTAXIS/QAARP/QARisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def calc_annualize_return(self, assets, days):

def calc_profitpctchange(self, assets):
#return assets[::-1].pct_change()[::-1]
return assets.diff().pct_change().fillna(0)
return assets.pct_change().fillna(1)

def calc_beta(self, assest_profit, benchmark_profit):

Expand Down
2 changes: 1 addition & 1 deletion QUANTAXIS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
2017/4/8
"""

__version__ = '1.9.21'
__version__ = '1.9.23'
__author__ = 'yutiansut'

import argparse
Expand Down

0 comments on commit 63010da

Please sign in to comment.