We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374eeef commit a8082f1Copy full SHA for a8082f1
backtesting/_stats.py
@@ -65,6 +65,7 @@ def compute_stats(
65
'ReturnPct': [t.pl_pct for t in trades],
66
'EntryTime': [t.entry_time for t in trades],
67
'ExitTime': [t.exit_time for t in trades],
68
+ 'Tag': [t.tag for t in trades],
69
})
70
trades_df['Duration'] = trades_df['ExitTime'] - trades_df['EntryTime']
71
del trades
0 commit comments