mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
support: fix interval check
This commit is contained in:
parent
01de2c5f66
commit
184f93ce79
|
@ -311,6 +311,9 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
if kline.Symbol != s.Symbol {
|
if kline.Symbol != s.Symbol {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if kline.Interval != s.Interval {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
closePriceF := kline.GetClose()
|
closePriceF := kline.GetClose()
|
||||||
closePrice := fixedpoint.NewFromFloat(closePriceF)
|
closePrice := fixedpoint.NewFromFloat(closePriceF)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user