indicator: improve boll indicator slice truncation

This commit is contained in:
c9s 2024-10-16 16:07:58 +08:00
parent 8ce587f5f5
commit 6d857cdd48
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -58,4 +58,6 @@ func (s *BOLLStream) Calculate(v float64) float64 {
func (s *BOLLStream) Truncate() { func (s *BOLLStream) Truncate() {
s.Slice = generalTruncate(s.Slice) s.Slice = generalTruncate(s.Slice)
s.UpBand.Slice = generalTruncate(s.UpBand.Slice)
s.DownBand.Slice = generalTruncate(s.DownBand.Slice)
} }