mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix bounce calculation
This commit is contained in:
parent
fce3beccd0
commit
1ca616fb43
|
@ -31,7 +31,7 @@ type KLine struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (k KLine) Mid() float64 {
|
func (k KLine) Mid() float64 {
|
||||||
return k.GetHigh() - k.GetLow() / 2
|
return (k.GetHigh() + k.GetLow()) / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
// green candle with open and close near high price
|
// green candle with open and close near high price
|
||||||
|
|
Loading…
Reference in New Issue
Block a user