The Simple Moving Average (SMA) calculates the arithmetic mean of closing prices over a specified period, smoothing out short-term fluctuations to reveal the underlying trend. Crossovers between a shorter and longer SMA are widely used as buy and sell signals in technical analysis.
This sample plots CSCO daily closing prices as a line series and overlays two SMA indicators — SMA(20) in dark red (#bf360c) and SMA(50) in orange (#ff6d00) — on the same plot for trend comparison. The chart features dual Y-axes, a synchronized line scroller, a range picker, and a range selector.
See the Technical Indicators documentation for all configuration options.