Skip to content

Implement Trend Intensity Index (TII) #307

@cinar

Description

@cinar

Description

Measures the strength of a trend by analyzing deviations from a major moving average.

Implementation Logic

Track the deviations of the closing price from a major SMA. Maintain a rolling slice (representing the minor period) to conditionally store these deviations. The slice must push new deviations and pop the oldest, recalculating the sum of positive deviations and the sum of negative deviations on the fly before generating the percentage ratio.

Suggested Package

trend

Labels

  • enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions