mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix kline window get low
This commit is contained in:
parent
cf7760e72a
commit
7b099b2ede
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user