switching outer macd to use inner signal series.
This commit is contained in:
parent
bf690767f4
commit
4d6c22a45c
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user