pivotshort: call BindTradeStats

This commit is contained in:
c9s 2022-06-18 16:32:53 +08:00
parent 6cae9e7449
commit c80fe1af33
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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)