rename trailingstop to emastop

This commit is contained in:
c9s 2021-10-14 12:04:56 +08:00
parent b3661f5d32
commit 6e7f12ca9f
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
--- ---
crossExchangeStrategies: crossExchangeStrategies:
- trailingstop: - emastop:
sourceExchange: "binance" sourceExchange: "binance"
targetExchange: "max" targetExchange: "max"
symbol: ETHUSDT symbol: ETHUSDT

View File

@ -13,7 +13,7 @@ import (
_ "github.com/c9s/bbgo/pkg/strategy/schedule" _ "github.com/c9s/bbgo/pkg/strategy/schedule"
_ "github.com/c9s/bbgo/pkg/strategy/support" _ "github.com/c9s/bbgo/pkg/strategy/support"
_ "github.com/c9s/bbgo/pkg/strategy/swing" _ "github.com/c9s/bbgo/pkg/strategy/swing"
_ "github.com/c9s/bbgo/pkg/strategy/trailingstop" _ "github.com/c9s/bbgo/pkg/strategy/emastop"
_ "github.com/c9s/bbgo/pkg/strategy/xbalance" _ "github.com/c9s/bbgo/pkg/strategy/xbalance"
_ "github.com/c9s/bbgo/pkg/strategy/xmaker" _ "github.com/c9s/bbgo/pkg/strategy/xmaker"
_ "github.com/c9s/bbgo/pkg/strategy/xpuremaker" _ "github.com/c9s/bbgo/pkg/strategy/xpuremaker"

View File

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