From c80fe1af33aa38fb2d9f4ac53c1a648c38a070ee Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 18 Jun 2022 16:32:53 +0800 Subject: [PATCH] pivotshort: call BindTradeStats --- pkg/strategy/pivotshort/strategy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/strategy/pivotshort/strategy.go b/pkg/strategy/pivotshort/strategy.go index 9aed19798..e838d297a 100644 --- a/pkg/strategy/pivotshort/strategy.go +++ b/pkg/strategy/pivotshort/strategy.go @@ -204,6 +204,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se s.orderExecutor = bbgo.NewGeneralOrderExecutor(session, s.Symbol, ID, instanceID, s.Position) s.orderExecutor.BindEnvironment(s.Environment) s.orderExecutor.BindProfitStats(s.ProfitStats, s.Notifiability.Notify) + s.orderExecutor.BindTradeStats(s.TradeStats) s.orderExecutor.Bind(s.Notifiability.Notify) store, _ := session.MarketDataStore(s.Symbol)