diff --git a/pkg/strategy/pivotshort/breaklow.go b/pkg/strategy/pivotshort/breaklow.go index 26c9703bc..de98e9fcc 100644 --- a/pkg/strategy/pivotshort/breaklow.go +++ b/pkg/strategy/pivotshort/breaklow.go @@ -78,7 +78,7 @@ func (s *BreakLow) Bind(session *bbgo.ExchangeSession, orderExecutor *bbgo.Gener } if len(s.pivotLowPrices) == 0 { - log.Infof("currently there is no pivot low prices, skip placing orders...") + log.Infof("currently there is no pivot low prices, can not check break low...") return } diff --git a/pkg/strategy/pivotshort/resistance.go b/pkg/strategy/pivotshort/resistance.go index 39b18346a..b26fc62d0 100644 --- a/pkg/strategy/pivotshort/resistance.go +++ b/pkg/strategy/pivotshort/resistance.go @@ -64,6 +64,10 @@ func (s *ResistanceShort) Bind(session *bbgo.ExchangeSession, orderExecutor *bbg } func (s *ResistanceShort) findNextResistancePriceAndPlaceOrders(closePrice fixedpoint.Value) { + // if the close price is still lower than the resistance price, then we don't have to update + if closePrice.Compare(s.nextResistancePrice) <= 0 { + return + } minDistance := s.MinDistance.Float64() lows := s.resistancePivot.Lows