Example of EMA in Angular Chart Component

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

AAPL Stock Price 2012-2017

In this example, you can see how to render and configure an exponential moving average indicator. This indicator tracks the price of an investment over time and is used to define the direction of the trend.

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 EmaIndicator, we need to inject EmaIndicatorService into the @NgModule.providers section.

More information on the EMA Indicator can be found in this documentation section.