From bb8dbb155f8311345f3a9ecaf483f0816af16f02 Mon Sep 17 00:00:00 2001 From: Andy Cheng Date: Fri, 17 Mar 2023 10:43:47 +0800 Subject: [PATCH] exits/trailingstop: fix typo --- pkg/bbgo/exit_trailing_stop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bbgo/exit_trailing_stop.go b/pkg/bbgo/exit_trailing_stop.go index ba8d4d2d5..4de0ad66b 100644 --- a/pkg/bbgo/exit_trailing_stop.go +++ b/pkg/bbgo/exit_trailing_stop.go @@ -100,7 +100,7 @@ func (s *TrailingStop2) checkStopPrice(price fixedpoint.Value, position *types.P // check if we have the minimal profit roi := position.ROI(price) if roi.Compare(s.MinProfit) >= 0 { - Notify("[trailingStop] activated: %s ROI %f > minimal profit ratio %f", s.Symbol, roi.Percentage(), s.MinProfit.Float64()) + Notify("[trailingStop] activated: %s ROI %s > minimal profit ratio %f", s.Symbol, roi.Percentage(), s.MinProfit.Float64()) s.activated = true } } else if !s.ActivationRatio.IsZero() {