Skip to content

Commit 97b2799

Browse files
committed
add doc comment
1 parent 7eaa98e commit 97b2799

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

momentum/prings_special_k.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import (
55
"github.com/cinar/indicator/v2/trend"
66
)
77

8+
// PringsSpecialK implements Martin Pring's Special K momentum indicator.
9+
// It composes multiple Rate-of-Change (ROC) series smoothed by Simple Moving Averages (SMA)
10+
// and outputs a weighted sum aligned to the slowest path so all terms are time-synchronized.
11+
// See Compute for the exact composition and weights.
812
type PringsSpecialK[T helper.Float] struct {
913
Roc10 *trend.Roc[T]
1014
Roc15 *trend.Roc[T]

0 commit comments

Comments
 (0)