backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

Add monetary Average Trade

Open ironhak opened this issue 2 months ago • 2 comments

Enhancement description

Is it possible to add the average trade in monetary terms?

Code sample

stats = bt.run()

avg_trade = stats._trades['PnL'].mean()

Additional info, images

No response

ironhak avatar Oct 17 '25 14:10 ironhak

Ok ... But why add it when you can compute it so easily yourself? 😳

kernc avatar Oct 31 '25 01:10 kernc

You're probably right 👍

ironhak avatar Oct 31 '25 08:10 ironhak