Glossary Item Box

TradeScript Help

Time Series Moving Average

TimeSeriesMovingAverage(Vector, Periods)

TSMA(Vector, Periods)

MA Type Argument ID: TIME_SERIES

Overview

A Time Series Moving Average is similar to a Simple Moving Average, except that values are derived from linear regression forecast values instead of regular values.

Interpretation

A Moving Average is most often used to average values for a smoother representation of the underlying price or indicator.

Example

CLOSE > TSMA(CLOSE, 30)

Evaluates to true when the close is greater than a 30-day TSMA.