switching outer macd to use inner signal series.

This commit is contained in:
Will Charczuk 2016-07-18 15:13:39 -07:00
parent bf690767f4
commit 4d6c22a45c

View file

@ -76,13 +76,11 @@ func (macd MACDSeries) GetValue(index int) (x float64, y float64) {
x, _ = macd.InnerSeries.GetValue(index) x, _ = macd.InnerSeries.GetValue(index)
signal := EMASeries{ signal := MACDSignalSeries{
InnerSeries: MACDLineSeries{
InnerSeries: macd.InnerSeries, InnerSeries: macd.InnerSeries,
PrimaryPeriod: w1, PrimaryPeriod: w1,
SecondaryPeriod: w2, SecondaryPeriod: w2,
}, SignalPeriod: sig,
Period: sig,
} }
macdl := MACDLineSeries{ macdl := MACDLineSeries{