Skip to main content
SMA

SMA

AGPL-3.0-only

Platform SMA indicator. Draws a moving average on the price pane and exports readings[] comparing the latest close to SMA.

1

SMA (Simple Moving Average)

SMA overlays the price chart and compares the latest close to the average.

Formula

SMAn=1n∑i=0n−1Closet−iSMA_n = \frac{1}{n} \sum_{i=0}^{n-1} Close_{t-i}