mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
indicator/till: add zero time check
This commit is contained in:
parent
2523c2261b
commit
0b9d6939f3
|
@ -87,7 +87,7 @@ func (inc *TILL) Length() int {
|
|||
var _ types.Series = &TILL{}
|
||||
|
||||
func (inc *TILL) PushK(k types.KLine) {
|
||||
if k.EndTime.Before(inc.e1.EndTime) {
|
||||
if inc.e1.EndTime != zeroTime && k.EndTime.Before(inc.e1.EndTime) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user