tradeexecutor.analysis.advanced_metrics Python module in Trading Strategy framework.
Use Quantstats library to calculate various metrics about the strategy performance.
This will generate metrics like:
Note: These metrics are based on equity curve and returns - they do go down to the individual trade level. Any consecutive wins and losses are measured in days, not in the trade or candle count.
What we will make quantstats to spit out.