bollmaker: fix profit stats notification

This commit is contained in:
c9s 2022-06-03 14:40:29 +08:00
parent 202605c19e
commit 6936503cde
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -623,7 +623,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
s.Notify(&p)
s.ProfitStats.AddProfit(p)
s.Notify(&s.ProfitStats)
s.Notify(s.ProfitStats)
s.Environment.RecordPosition(s.Position, trade, &p)
}