pivotshort: rename kLineClosedStop to fakeBreakStop

This commit is contained in:
c9s 2022-07-28 09:29:10 +08:00
parent abd99a1d93
commit 5fa2606357
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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")
}