mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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 {
|
func (k KLineWindow) GetLow() float64 {
|
||||||
low := k.GetOpen()
|
low := k.GetOpen()
|
||||||
for _, line := range k {
|
for _, line := range k {
|
||||||
val := line.GetHigh()
|
val := line.GetLow()
|
||||||
if val < low {
|
if val < low {
|
||||||
low = val
|
low = val
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user