Skip to content

Commit f544a91

Browse files
Include Commissions in _trades DataFrame.
1 parent cb7c8d6 commit f544a91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backtesting/_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def compute_stats(
6767
'SL': [t.sl for t in trades],
6868
'TP': [t.tp for t in trades],
6969
'PnL': [t.pl for t in trades],
70+
'Commissions': [t._commissions for t in trades],
7071
'ReturnPct': [t.pl_pct for t in trades],
7172
'EntryTime': [t.entry_time for t in trades],
7273
'ExitTime': [t.exit_time for t in trades],

0 commit comments

Comments
 (0)