diff --git a/pkg/bbgo/profitstats.go b/pkg/bbgo/profitstats.go index e2967b275..da6c12492 100644 --- a/pkg/bbgo/profitstats.go +++ b/pkg/bbgo/profitstats.go @@ -255,10 +255,10 @@ func (s *ProfitStats) SlackAttachment() slack.Attachment { var color string if s.AccumulatedPnL > 0 { color = types.GreenColor - title = "+" + s.AccumulatedPnL.String() + " " + s.QuoteCurrency + title += "+" + s.AccumulatedPnL.String() + " " + s.QuoteCurrency } else { color = types.RedColor - title = s.AccumulatedPnL.String() + " " + s.QuoteCurrency + title += s.AccumulatedPnL.String() + " " + s.QuoteCurrency } since := time.Unix(s.AccumulatedSince, 0).Local()