rename SMA2 to just SMA

This commit is contained in:
c9s 2023-07-11 10:26:38 +08:00
parent 1da94f55e9
commit 66dd5507d1
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ type BOLLStream struct {
// -> calculate stdDev -> calculate bandWidth -> get latest SMA -> upBand, downBand
func BOLL(source types.Float64Source, window int, k float64) *BOLLStream {
// bind these indicators before our main calculator
sma := SMA2(source, window)
sma := SMA(source, window)
stdDev := StdDev(source, window)
s := &BOLLStream{

View File

@ -12,7 +12,7 @@ type SMAStream struct {
rawValues *types.Queue
}
func SMA2(source types.Float64Source, window int) *SMAStream {
func SMA(source types.Float64Source, window int) *SMAStream {
s := &SMAStream{
Float64Series: types.NewFloat64Series(),
window: window,