Merge pull request #1123 from andycheng123/fix/exits

exits/trailingstop: fix typo
This commit is contained in:
Andy Cheng 2023-03-17 15:03:51 +08:00 committed by GitHub
commit b455ae7742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ func (s *TrailingStop2) checkStopPrice(price fixedpoint.Value, position *types.P
// check if we have the minimal profit // check if we have the minimal profit
roi := position.ROI(price) roi := position.ROI(price)
if roi.Compare(s.MinProfit) >= 0 { 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 s.activated = true
} }
} else if !s.ActivationRatio.IsZero() { } else if !s.ActivationRatio.IsZero() {