Skip to content

add support for time-based unadjusted ema #564

@svatasoiu

Description

@svatasoiu

Support should be added to handle adjust=False for time/halflife-based ema statistics.

adjust is ignored here: https://github.com/Point72/csp/blob/main/csp/stats.py#L2916 but can be calculated as specified in pandas ewm docs: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.ewm.html or polars ewm_mean_by: https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.ewm_mean_by.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementIssues and PRs related to improvements to existing features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions