fix bounce calculation

This commit is contained in:
c9s 2020-06-10 09:44:44 +08:00
parent fce3beccd0
commit 1ca616fb43

View File

@ -31,7 +31,7 @@ type KLine struct {
}
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