rename buyandhold to pricedrop

This commit is contained in:
c9s 2021-10-14 13:10:00 +08:00
parent 7119378ac0
commit 4c061439d3
4 changed files with 5 additions and 5 deletions

View File

@ -227,7 +227,7 @@ Check out the strategy directory [strategy](pkg/strategy) for all built-in strat
- `xpuremaker` strategy demonstrates how to maintain the orderbook and submit maker
orders [xpuremaker](pkg/strategy/xpuremaker)
- `buyandhold` strategy demonstrates how to subscribe kline events and submit market
order [buyandhold](pkg/strategy/buyandhold)
order [buyandhold](pkg/strategy/pricedrop)
- `bollgrid` strategy implements a basic grid strategy with the built-in bollinger
indicator [bollgrid](pkg/strategy/bollgrid)
- `grid` strategy implements the fixed price band grid strategy [grid](pkg/strategy/grid)

View File

@ -55,7 +55,7 @@ backtest:
exchangeStrategies:
- on: binance
buyandhold:
pricedrop:
symbol: "BTCUSDT"
interval: "1m"
baseQuantity: 0.001

View File

@ -4,7 +4,7 @@ package cmd
import (
_ "github.com/c9s/bbgo/pkg/strategy/bollgrid"
_ "github.com/c9s/bbgo/pkg/strategy/bollpp"
_ "github.com/c9s/bbgo/pkg/strategy/buyandhold"
_ "github.com/c9s/bbgo/pkg/strategy/pricedrop"
_ "github.com/c9s/bbgo/pkg/strategy/etf"
_ "github.com/c9s/bbgo/pkg/strategy/flashcrash"
_ "github.com/c9s/bbgo/pkg/strategy/gap"

View File

@ -1,4 +1,4 @@
package buyandhold
package pricedrop
import (
"context"
@ -12,7 +12,7 @@ import (
"github.com/c9s/bbgo/pkg/types"
)
const ID = "buyandhold"
const ID = "pricedrop"
var log = logrus.WithField("strategy", ID)