Implement Relative Vigor Index (RVI) Strategy · Issue #345 · cinar/indicator · GitHub
Skip to content

Implement Relative Vigor Index (RVI) Strategy #345

Open

Description

@cinar

Implement the Relative Vigor Index (RVI) trading strategy using the existing momentum.Rvi indicator.

Location: strategy/momentum/rvi_strategy.go

Strategy Rules:

  • Buy Action: RVI crosses above its signal line.
  • Sell Action: RVI crosses below its signal line.
  • Hold Action: Otherwise.

Implementation Details:

  • Follow the strategy.Strategy interface.
  • Use momentum.NewRvi() or allow custom parameters.
  • Provide unit tests with historical data in strategy/momentum/testdata/rvi_strategy.csv.
  • Ensure 100% test coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions