Lumiwealth / quantstats_lumi

Apache License 2.0
53 stars 20 forks source link

Trade Metrics are wrong as they require trade data instead of just returns #34

Closed grzesir closed 2 months ago

grzesir commented 2 months ago

Several trade metrics are incorrectly computed using only returns data. Using only returns data to compute trade metrics does not make any sense!

For accurate trade analysis, the following metrics require actual trade data:

Additionally, any formulas dependent on the above metrics, such as:

should also utilize trade data for correct computation.

Proposed Solution

Who Can Help

Anyone with experience in Backtrader or Lumibot is welcome to contribute to fixing this issue.

grzesir commented 2 months ago

these have now been removed