pivotshort: add the kline object to the notification

This commit is contained in:
c9s 2022-09-14 19:08:54 +08:00
parent 728cb6d56c
commit 53d622daf5
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -201,7 +201,7 @@ func (s *BreakLow) Bind(session *bbgo.ExchangeSession, orderExecutor *bbgo.Gener
return
}
bbgo.Notify("%s breakLow signal detected, closed price %f < breakPrice %f", kline.Symbol, closePrice.Float64(), breakPrice.Float64())
bbgo.Notify("%s breakLow signal detected, closed price %f < breakPrice %f", kline.Symbol, closePrice.Float64(), breakPrice.Float64(), kline)
if s.lastBreakLow.IsZero() || previousLow.Compare(s.lastBreakLow) < 0 {
s.lastBreakLow = previousLow