Skip to content

Commit

Permalink
Trend strategies are moved to their dedicated module.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Dec 29, 2023
1 parent df8ae83 commit 53c4214
Show file tree
Hide file tree
Showing 34 changed files with 840 additions and 703 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ The following list of strategies are currently supported by this package:

### 📈 Trend Strategies

- [Absolute Price Oscillator (APO) Strategy](strategy/README.md#type-apostrategy)
- [Aroon Strategy](strategy/README.md#type-aroonstrategy)
- [Balance of Power (BoP) Strategy](strategy/README.md#type-bopstrategy)
- [Double Exponential Moving Average (DEMA) Strategy](strategy/README.md#type-demastrategy)
- [Absolute Price Oscillator (APO) Strategy](strategy/trend/README.md#type-apostrategy)
- [Aroon Strategy](strategy/trend/README.md#type-aroonstrategy)
- [Balance of Power (BoP) Strategy](strategy/trend/README.md#type-bopstrategy)
- [Double Exponential Moving Average (DEMA) Strategy](strategy/trend/README.md#type-demastrategy)
- Chande Forecast Oscillator Strategy
- [Random Index (KDJ) Strategy](strategy/README.md#type-kdjstrategy)
- [Moving Average Convergence Divergence (MACD) Strategy](strategy/README.md#type-macdstrategy)
- [Qstick Strategy](strategy/README.md#type-qstickstrategy)
- [Triangular Moving Average (TRIMA) Strategy](strategy/README.md#type-trimastrategy)
- [Random Index (KDJ) Strategy](strategy/trend/README.md#type-kdjstrategy)
- [Moving Average Convergence Divergence (MACD) Strategy](strategy/trend/README.md#type-macdstrategy)
- [Qstick Strategy](strategy/trend/README.md#type-qstickstrategy)
- [Triangular Moving Average (TRIMA) Strategy](strategy/trend/README.md#type-trimastrategy)
- [Triple Exponential Average (TRIX) Strategy](strategy/trend/README.md#type-trixstrategy)
- [Volume Weighted Moving Average (VWMA) Strategy](strategy/README.md#type-vwmastrategy)
- [Volume Weighted Moving Average (VWMA) Strategy](strategy/trend/README.md#type-vwmastrategy)

### 🚀 Momentum Strategies

Expand Down
2 changes: 2 additions & 0 deletions cmd/indicator-backtest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/cinar/indicator/asset"
"github.com/cinar/indicator/strategy"
"github.com/cinar/indicator/strategy/trend"
)

func main() {
Expand All @@ -36,6 +37,7 @@ func main() {
backtest := strategy.NewBacktest(repository, outputDir)
backtest.Workers = workers
backtest.Names = append(backtest.Names, flag.Args()...)
backtest.Strategies = append(backtest.Strategies, trend.AllStrategies()...)

err := backtest.Run()
if err != nil {
Expand Down
Loading

0 comments on commit 53c4214

Please sign in to comment.