Skip to content

Commit

Permalink
indicator: improve boll indicator slice truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Oct 16, 2024
1 parent 8ce587f commit 6d857cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/indicator/v2/boll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 6d857cd

Please sign in to comment.