Handbook
Glossary
sma ( seq n -- newseq )
Vocabulary
math
.
finance
Inputs
seq
a
sequence
n
number of periods
Outputs
newseq
a
sequence
Word description
Returns the Simple Moving Average with the specified periodicity.
Definition
USING:
grouping
math.statistics
sequences
;
IN:
math.finance
:
sma
( seq n -- newseq )
clump
[
mean
]
map
;