Skip to content

Implement Stiffness Indicator #316

@cinar

Description

@cinar

Description

A trend strength indicator that counts bars where price exceeds a volatility-adjusted threshold from an SMA.

Implementation Logic

Compute a 100-period SMA and a 100-period standard deviation simultaneously at every tick. Utilize a secondary sliding window (e.g., 60 bars) with a custom counting buffer that increments when the close exceeds the SMA minus a fraction of the standard deviation, and decrements when that true condition falls out of the window.

Suggested Package

trend

Labels

  • enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions