exits/trailingstop: fix typo

This commit is contained in:
Andy Cheng 2023-03-17 10:43:47 +08:00
parent 52b2ffebd1
commit bb8dbb155f
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28

View File

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