Implement the Keltner Channel trading strategy using the existing volatility.KeltnerChannel indicator.
Location: strategy/volatility/keltner_channel_strategy.go
Strategy Rules:
- Buy Action: Price crosses above the Upper Band (indicating a strong breakout or trend).
- Sell Action: Price crosses below the Lower Band (indicating a breakdown or downward trend).
- Hold Action: Otherwise.
Implementation Details:
- Follow the
strategy.Strategy interface.
- Use
volatility.NewKeltnerChannel() or allow custom parameters.
- Provide unit tests with historical data in
strategy/volatility/testdata/keltner_channel_strategy.csv.
- Ensure 100% test coverage.
Implement the Keltner Channel trading strategy using the existing
volatility.KeltnerChannelindicator.Location:
strategy/volatility/keltner_channel_strategy.goStrategy Rules:
Implementation Details:
strategy.Strategyinterface.volatility.NewKeltnerChannel()or allow custom parameters.strategy/volatility/testdata/keltner_channel_strategy.csv.