fixing macd inversion.

This commit is contained in:
Will Charczuk 2016-07-18 17:41:59 -07:00
parent f572279469
commit befd626bbe
2 changed files with 50 additions and 50 deletions

View file

@ -256,7 +256,7 @@ func (macdl MACDLineSeries) GetValue(index int) (x float64, y float64) {
_, emav1 := ema1.GetValue(index)
_, emav2 := ema2.GetValue(index)
y = emav1 - emav2
y = emav2 - emav1
return
}