pivotshort: avoid using 1m interval to check break

This commit is contained in:
c9s 2022-08-31 01:25:24 +08:00
parent df902b236c
commit c7bff1695e
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -132,7 +132,7 @@ func (s *FailedBreakHigh) Bind(session *bbgo.ExchangeSession, orderExecutor *bbg
} }
})) }))
session.MarketDataStream.OnKLineClosed(types.KLineWith(s.Symbol, s.Interval, func(kline types.KLine) { session.MarketDataStream.OnKLineClosed(types.KLineWith(s.Symbol, types.Interval5m, func(kline types.KLine) {
if len(s.PivotHighPrices) == 0 || s.lastHigh.IsZero() { if len(s.PivotHighPrices) == 0 || s.lastHigh.IsZero() {
log.Infof("currently there is no pivot high prices, can not check failed break high...") log.Infof("currently there is no pivot high prices, can not check failed break high...")
return return