Skip to content

Commit dfadfd7

Browse files
committed
BUG: Aggregate Equity on 'last' when plot resampling
Fixes #162 Thanks @eervin123
1 parent 05329de commit dfadfd7

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)