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)
signal := EMASeries{
InnerSeries: MACDLineSeries{
InnerSeries: macd.InnerSeries,
PrimaryPeriod: w1,
SecondaryPeriod: w2,
},
Period: sig,
signal := MACDSignalSeries{
InnerSeries: macd.InnerSeries,
PrimaryPeriod: w1,
SecondaryPeriod: w2,
SignalPeriod: sig,
}
macdl := MACDLineSeries{