Implement the Know Sure Thing (KST) trading strategy using the existing trend.Kst indicator.
Location: strategy/trend/kst_strategy.go
Strategy Rules:
- Buy Action: KST crosses above its signal line (typically a 9-period SMA of KST).
- Sell Action: KST crosses below its signal line.
- Hold Action: Otherwise.
Implementation Details:
- Follow the
strategy.Strategy interface.
- Use
trend.NewKst() and calculate a signal line using SMA.
- Provide unit tests with historical data in
strategy/trend/testdata/kst_strategy.csv.
- Ensure 100% test coverage.
Implement the Know Sure Thing (KST) trading strategy using the existing
trend.Kstindicator.Location:
strategy/trend/kst_strategy.goStrategy Rules:
Implementation Details:
strategy.Strategyinterface.trend.NewKst()and calculate a signal line using SMA.strategy/trend/testdata/kst_strategy.csv.