FIX: format minimal profit to percent

This commit is contained in:
root 2023-11-29 18:37:28 +08:00
parent a4ccad9463
commit cdeb0bc908

View File

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