fix kline window get low

This commit is contained in:
c9s 2020-06-17 21:57:36 +08:00
parent cf7760e72a
commit 7b099b2ede

View File

@ -205,7 +205,7 @@ func (k KLineWindow) GetHigh() float64 {
func (k KLineWindow) GetLow() float64 {
low := k.GetOpen()
for _, line := range k {
val := line.GetHigh()
val := line.GetLow()
if val < low {
low = val
}