mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
indicator: improve boll indicator slice truncation
This commit is contained in:
parent
8ce587f5f5
commit
6d857cdd48
|
@ -58,4 +58,6 @@ func (s *BOLLStream) Calculate(v float64) float64 {
|
|||
|
||||
func (s *BOLLStream) Truncate() {
|
||||
s.Slice = generalTruncate(s.Slice)
|
||||
s.UpBand.Slice = generalTruncate(s.UpBand.Slice)
|
||||
s.DownBand.Slice = generalTruncate(s.DownBand.Slice)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user