show_strategies_recent

czsc.show_strategies_recent(df, **kwargs)[source]

展示最近 N 天的策略表现

Parameters:
  • df

    pd.DataFrame, columns=[‘dt’, ‘strategy’, ‘returns’], 样例如下:

    dt

    strategy

    returns

    2021-01-04 00:00:00

    STK001

    -0.00240078

    2021-01-05 00:00:00

    STK001

    -0.00107012

    2021-01-06 00:00:00

    STK001

    0.00122168

    2021-01-07 00:00:00

    STK001

    0.0020896

    2021-01-08 00:00:00

    STK001

    0.000510725

  • kwargs

    dict

    • nseq: tuple, optional, 默认为 (1, 3, 5, 10, 20, 30, 60, 90, 120, 180, 240, 360),展示的天数序列