Skip to content

Commit 1722bfb

Browse files
author
goblincomet
committed
BUG: Aggregate Equity on 'last' when plot resampling
Fixes kernc/backtesting.py#162 Thanks @eervin123
1 parent 23e9576 commit 1722bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"""
6161

6262
_EQUITY_AGG = {
63-
'Equity': 'mean',
63+
'Equity': 'last',
6464
'DrawdownPct': 'max',
6565
'DrawdownDuration': 'max',
6666
}

0 commit comments

Comments
 (0)