mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
pivotshort: avoid using 1m interval to check break
This commit is contained in:
parent
df902b236c
commit
c7bff1695e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user