From b877d07f74ff88c08a16a99bc0078c433106983a Mon Sep 17 00:00:00 2001 From: Andy Cheng Date: Mon, 3 Jul 2023 16:06:04 +0800 Subject: [PATCH] exit/hhllStop: log hhll detection instead of notify --- pkg/bbgo/exit_hh_ll_stop.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bbgo/exit_hh_ll_stop.go b/pkg/bbgo/exit_hh_ll_stop.go index 4c0e9f66c..6d6847af5 100644 --- a/pkg/bbgo/exit_hh_ll_stop.go +++ b/pkg/bbgo/exit_hh_ll_stop.go @@ -146,10 +146,10 @@ func (s *HigherHighLowerLowStop) updateHighLowNumber(kline types.KLine) { low := kline.GetLow() if s.klines.GetHigh().Compare(high) < 0 { s.highLows = append(s.highLows, types.DirectionUp) - Notify("[hhllStop] detected %s new higher high %f", s.Symbol, high.Float64()) + log.Debugf("[hhllStop] detected %s new higher high %f", s.Symbol, high.Float64()) } else if s.klines.GetLow().Compare(low) > 0 { s.highLows = append(s.highLows, types.DirectionDown) - Notify("[hhllStop] detected %s new lower low %f", s.Symbol, low.Float64()) + log.Debugf("[hhllStop] detected %s new lower low %f", s.Symbol, low.Float64()) } else { s.highLows = append(s.highLows, types.DirectionNone) }