mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
Merge pull request #1358 from c9s/narumi/remove-zero-padding
MINOR: [indicator] remove zero padding from RMA
This commit is contained in:
commit
16f4d8de7b
|
@ -67,11 +67,6 @@ func (inc *RMA) Update(x float64) {
|
|||
}
|
||||
inc.counter++
|
||||
|
||||
if inc.counter < inc.Window {
|
||||
inc.Values.Push(0)
|
||||
return
|
||||
}
|
||||
|
||||
inc.Values.Push(inc.tmp)
|
||||
if len(inc.Values) > MaxNumOfRMA {
|
||||
inc.Values = inc.Values[MaxNumOfRMATruncateSize-1:]
|
||||
|
|
Loading…
Reference in New Issue
Block a user