Closed
Description
Hi, I really love your project, it really helps me a lot!
I found that the current expectancy formula is:
backtesting.py/backtesting/backtesting.py
Lines 1444 to 1445 in 17e9489
But it seems that the correct formula should be:
s.loc['Expectancy [%]'] = ((returns[returns > 0].mean() * win_rate +
returns[returns < 0].mean() * (100 - win_rate)))
Because the Expectancy = ΣX * P(X)
Thanks again for your great work!