Skip to content

Commit

Permalink
indicator/till: add zero time check
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jul 20, 2022
1 parent 2523c22 commit 0b9d693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/indicator/till.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0b9d693

Please sign in to comment.