Example of SMA in Javascript Chart Control

/
/
SMA

This sample illustrates a chart with candle series and a simple moving average indicator. The trackball shows information about each day’s stock and signal value.

More Details...

Description

In this example, you can see how to render and configure a simple moving average indicator. A SMA is used to calculate the average of a selected range of prices by the number of periods in that range. Tooltip is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices. Injecting Module Chart component features are segregated into individual feature-wise modules. To use SMA Indicator, we need to Inject SmaIndicator module using chart.Inject(SmaIndicator) method. More information on the SMA Indicator can be found in this documentation section.