switching outer macd to use inner signal series.
This commit is contained in:
parent
bf690767f4
commit
4d6c22a45c
1 changed files with 5 additions and 7 deletions
|
@ -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{
|
||||||
|
|
Loading…
Reference in a new issue