Skip to content

Implement Elder Ray Strategy #343

@cinar

Description

@cinar

Implement the Elder Ray trading strategy using the existing momentum.ElderRay indicator.

Location: strategy/momentum/elder_ray_strategy.go

Strategy Rules:

  • Buy Action: EMA(13) is rising AND Bear Power is negative but rising.
  • Sell Action: EMA(13) is falling AND Bull Power is positive but falling.
  • Hold Action: Otherwise.

Implementation Details:

  • Follow the strategy.Strategy interface.
  • Use momentum.NewElderRay() or allow custom parameters.
  • Provide unit tests with historical data in strategy/momentum/testdata/elder_ray_strategy.csv.
  • Ensure 100% test coverage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions