Example of MACD in Javascript Chart Control


This sample illustrates a stock chart with candle series and a Moving Average Convergence Divergence indicator. Trackball shows the information about the stock, signalline, Macdline, and Histogram value of a day.

More Details...


In this example, you can see how to render and configure the MACD Indicator. You can use border, fill properties to customize the area. 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 MACD Indicator, we need to Inject MacdIndicator module using chart.Inject(MacdIndicator) method. More information on the MACD Indicator can be found in this documentation section.