mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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{}
|
var _ types.Series = &TILL{}
|
||||||
|
|
||||||
func (inc *TILL) PushK(k types.KLine) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user