mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +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 {
|
||||
return k.GetHigh() - k.GetLow() / 2
|
||||
return (k.GetHigh() + k.GetLow()) / 2
|
||||
}
|
||||
|
||||
// green candle with open and close near high price
|
||||
|
|
Loading…
Reference in New Issue
Block a user