From 5fa260635794a72e3dce89ec19b998c8b1cc6294 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 28 Jul 2022 09:29:10 +0800 Subject: [PATCH] pivotshort: rename kLineClosedStop to fakeBreakStop --- pkg/strategy/pivotshort/breaklow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/pivotshort/breaklow.go b/pkg/strategy/pivotshort/breaklow.go index 383063b59..9d039b101 100644 --- a/pkg/strategy/pivotshort/breaklow.go +++ b/pkg/strategy/pivotshort/breaklow.go @@ -160,7 +160,7 @@ func (s *BreakLow) Bind(session *bbgo.ExchangeSession, orderExecutor *bbgo.Gener // the kline opened below the last break low, and closed above the last break low if k.Open.Compare(s.lastBreakLow) < 0 && k.Close.Compare(s.lastBreakLow) > 0 { bbgo.Notify("kLine closed above the last break low, triggering stop earlier") - if err := s.orderExecutor.ClosePosition(context.Background(), one, "kLineClosedStop"); err != nil { + if err := s.orderExecutor.ClosePosition(context.Background(), one, "fakeBreakStop"); err != nil { log.WithError(err).Error("position close error") }