mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
indicator/till: fix e1 check
This commit is contained in:
parent
946fb96b03
commit
6e043ba129
|
@ -87,7 +87,7 @@ func (inc *TILL) Length() int {
|
|||
var _ types.Series = &TILL{}
|
||||
|
||||
func (inc *TILL) PushK(k types.KLine) {
|
||||
if inc.e1.EndTime != zeroTime && k.EndTime.Before(inc.e1.EndTime) {
|
||||
if inc.e1 != nil && inc.e1.EndTime != zeroTime && k.EndTime.Before(inc.e1.EndTime) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user