Skip to content

Commit

Permalink
Fix bug with plotting leverage charts
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed May 21, 2021
1 parent 135020b commit 02812af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ In finmarketpy/examples you will find several examples, including some simple tr

# finmarketpy log

* 21 May 2021
* Fix bug with plotting vol target charts when vol targeting is off
* 12 May 2021
* Fixed bug when calculating benchmark return statistics in TradingModel with different start/finish date
* 04 May 2021
Expand Down
2 changes: 2 additions & 0 deletions finmarketpy/backtest/backtestengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ def _filter_by_plot_start_finish_date(self, df, br):

if br.plot_start is None and br.plot_finish is None:
return df
elif df is None:
return None
else:
filter = Filter()
plot_start = br.start_date;
Expand Down

0 comments on commit 02812af

Please sign in to comment.