mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
fix: currentTime in backtest not updated
This commit is contained in:
parent
be1f6e7242
commit
51d7c1b9ad
|
@ -379,6 +379,7 @@ func (e *Exchange) ConsumeKLine(k types.KLine) {
|
|||
if kline1m.Interval != types.Interval1m {
|
||||
panic("expect 1m kline, get " + kline1m.Interval.String())
|
||||
}
|
||||
e.currentTime = kline1m.EndTime.Time()
|
||||
// here we generate trades and order updates
|
||||
matching.processKLine(kline1m)
|
||||
matching.NextKLine = &k
|
||||
|
|
Loading…
Reference in New Issue
Block a user