mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
exit/hhllStop: log hhll detection instead of notify
This commit is contained in:
parent
532b6f783d
commit
b877d07f74
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user