From cdeb0bc908a636b0a71239d12fcddaa7e9464eed Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Nov 2023 18:37:28 +0800 Subject: [PATCH] FIX: format minimal profit to percent --- 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 adfc28ae4..a46024c34 100644 --- a/pkg/bbgo/exit_trailing_stop.go +++ b/pkg/bbgo/exit_trailing_stop.go @@ -101,7 +101,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 %s > minimal profit ratio %f", s.Symbol, roi.Percentage(), s.MinProfit.Float64()) + Notify("[trailingStop] activated: %s ROI %s > minimal profit ratio %s", s.Symbol, roi.Percentage(), s.MinProfit.Percentage()) s.activated = true } } else if !s.ActivationRatio.IsZero() {