quantstats
quantstats copied to clipboard
reports.metrics showing different results with reports.full
If both strategy returns and benchmark returns are provided, and the strategy returns begin with an initial series of zeros, the reports.metrics will still include these zeros in its calculations over the entire time period, even when the parameter match_dates=True is specified. However, kindly note that the reports.full or reports.html methods will politely exclude these initial periods with zeros and commence calculations from the first non-zero time point.
I have created a PR for it: https://github.com/ranaroussi/quantstats/pull/487. I would greatly appreciate it if you could kindly review and consider merging it. Thank you so much for your time and support!