mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
exits/trailingstop: fix typo
This commit is contained in:
parent
52b2ffebd1
commit
bb8dbb155f
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user