mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
fix: clone on sma
This commit is contained in:
parent
83f8b7a84e
commit
586f1ff269
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user