mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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 {
|
||||
return
|
||||
}
|
||||
if kline.Interval != s.Interval {
|
||||
return
|
||||
}
|
||||
|
||||
closePriceF := kline.GetClose()
|
||||
closePrice := fixedpoint.NewFromFloat(closePriceF)
|
||||
|
|
Loading…
Reference in New Issue
Block a user