fix: clone on sma

This commit is contained in:
zenix 2022-07-13 14:31:49 +09:00
parent 83f8b7a84e
commit 586f1ff269

View File

@ -43,7 +43,7 @@ func (inc *SMA) Length() int {
func (inc *SMA) Clone() types.UpdatableSeriesExtend {
out := &SMA{
Values: inc.Values[:],
rawValues: types.Clone(inc.rawValues).(*types.Queue),
rawValues: inc.rawValues.Clone(),
EndTime: inc.EndTime,
}
out.SeriesBase.Series = out