quant_invest_lab/reports.py
File reports.py
has 916 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from scipy.stats import skew, kurtosis
from typing import Optional, Union, Literal
import pandas as pd
import numpy as np
from math import pi
Function print_backtest_report
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def print_backtest_report(
trades_df: pd.DataFrame,
ohlcv_df: pd.DataFrame,
timeframe: Timeframe,
initial_equity: Union[int, float] = 1000,