Search results

Technical Indicators

A technical indicator is a mathematical calculation based on historic price, volume or open interest information that aims to forecast financial market direction.

Chart supports 10 types of technical indicators.

Accumulation Distribution

Accumulation Distribution combines price and volume to show how money may be flowing into or out of stock. To render a Accumulation Distribution Indicator, use indicator type as AccumulationDistribution. To calculate the signal line volume field is additionally added with dataSource.

tagHelper
ad.cs
<ejs-chart id="ADIContainer" title="AAPL - 2012-2017" load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true"></e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false"></e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary"
                          opposedPosition=true rowIndex=0 interval=6000000000
                           minimum=-7000000000 maximum=5000000000
                          title="Accumulation Distribution">
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.AccumulationDistribution" field="Close" seriesName="Apple Inc" yAxisName="secondary" fill="#6063ff"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/ad/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
}
public IActionResult Index()
        {
            return View();
        }

Average True Range (ATR)

ATR measures the stock volatility by comparing the current value with the previous value. To render a Average True Range (ATR) Indicator, use indicator type as Atr.

tagHelper
atr.cs
<ejs-chart id="container" title="AAPL - 2012-2017" load="window.onChartLoad">
                <e-chart-primaryxaxis valueType= "DateTime" intervalType= "Months" majorGridLines="line"
            zoomFactor=0.2 zoomPosition=0.6 crosshairTooltip="crosshairTooltip"></e-chart-primaryxaxis>
                <e-chart-primaryyaxis title = "Price" labelFormat = "${value}" minimum=50 majorTickLines="line"
            maximum=170 plotOffset=25  interval=30 rowIndex=1 opposedPosition=true
            lineStyle = "line"></e-chart-primaryyaxis>
                <e-chart-tooltipsettings enable="true" shared="true">
                </e-chart-tooltipsettings>
                <e-chart-legendsettings visible="false">
                </e-chart-legendsettings>
                <e-chart-chartarea></e-chart-chartarea>
                <e-chart-border width="0"></e-chart-border>
                <e-chart-zoomsettings enablePinchZooming="true" enableSelectionZooming="true" mode="X"></e-chart-zoomsettings>
                <e-chart-crosshairsettings enable=true lineType="Vertical"></e-chart-crosshairsettings>
                <e-chart-axes>
                    <e-chart-axis name="secondary"
                                  opposedPosition=true rowIndex=0 interval=6000000000 
                                  lineStyle="line" minimum=-7000000000 maximum=5000000000
                                  majorTickLines="line" title="Accumulation Distribution">
                    </e-chart-axis>
                </e-chart-axes>
                <e-chart-rows>
                    <e-chart-row height="40%"></e-chart-row>
                    <e-chart-row height="60%"></e-chart-row>
                </e-chart-rows>
                <e-series-collection>
                    <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                              name="Apple Inc"  bearFillColor="#2ecd71" bullFillColor="#e74c3d"
                              type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
                </e-series-collection>
                <e-indicators>
                    <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Atr" field="Close" seriesName="Apple Inc" yAxisName="secondary" fill="#6063ff"
                                 period=3>
                    </e-indicator>
                </e-indicators>
                <e-chart-chartarea border="border"></e-chart-chartarea>
</ejs-chart>
<script src="chart/technical-indicators/ad/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
}
public IActionResult Index()
        {
            return View();
        }

Bollinger Band

A chart overlay that shows the upper and lower limits of normal price movements based on the standard deviation of prices. To render a Bollinger Band, use indicator type as BollingerBand. Bollinger band will be represented by three lines (upperLine, lowerLine, signalLine).Bollinger Band default values of the period is 14 and standardDeviations is 2.

tagHelper
bollinger.cs
<ejs-chart id="container" title="AAPL - 2012-2017 load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.BollingerBands" field="Close" seriesName="Apple Inc" yAxisName="secondary" fill="#6063ff"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/bollinger/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Customization of BollingerBand

stroke, stroke-width, and color of upperLine can be customized by using,upperLine, and the lowerLine can be customized by using lowerLine properties of indicator.

Exponential Moving Average (EMA)

Moving average Indicators are used to define the direction of the trend. To render a EMA Indicator, use indicator type as Ema.

tagHelper
ema.cs
<ejs-chart id="ADIContainer" title="AAPL - 2012-2017" load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary"
                          opposedPosition=true rowIndex=0
                           minimum=30 maximum=110
                          title="Accumulation Distribution">
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Ema" field="Close" seriesName="Apple Inc" fill="#6063ff"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/ema/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Momentum

Momentum shows the speed at which the price of the stock is changing. To render a Momentum indicator, use indicator type as Momentum. Momentum indicator will be represented by two lines (upperLine, signalLine).In momentum indicator the upperBand value is always render at the value 100.

tagHelper
momentum.cs
<ejs-chart id="container" title="AAPL - 2012-2017" load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary"
                          opposedPosition=true rowIndex=0 
                           minimum=30 maximum=110>
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Momentum" field="Close" seriesName="Apple Inc" fill="#6063ff" yAxisName="secondary"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/momentum/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Customization of MomentumIndicator

stroke, stroke-width, and color of upperLine can be customized by using,upperLine, property of indicator.

tagHelper
custom-momentum.cs
@{
    var upperline = new { color = "red", width="3" };
}
<ejs-chart id="container" title="AAPL - 2012-2017"
               load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary"
                          opposedPosition=true rowIndex=0 
                           minimum=30 maximum=110>
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Momentum" field="Close" seriesName="Apple Inc" fill="#6063ff" yAxisName="secondary"
                         period=3 upperLine="upperline">
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/custom-momentum/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Moving Average Convergence Divergence (MACD)

MACD is based on the difference between two EMA’s. To render a MACD Indicator, use indicator type as MACD.MACD indicator will be represented by MACD line,signal line, MACD histogram. MACD histogram is used to differentiate MACD line and signal line.

tagHelper
macd.cs
<ejs-chart id="container" title="AAPL - 2012-2017"
               load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary" opposedPosition=true minimum="10" maximum="110" >
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Stochastic" field="Close" seriesName="Apple Inc" fill="blue" yAxisName="secondary"
                         period=3 showZones="true" kPeriod="3" dPeriod="2">
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/macd/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Customization of MACD

stroke, stroke-width, and colorof macdLine can be customized by using,macdLine, property of indicator. The positive and negative changes of histogram can be customized by macdPositiveColor and macdNegativeColor properties. The macdType is used to define the type of MACD indicator. To customize the MACD period using slowPeriod and fastPeriod properties.

tagHelper
custom-macd.cs
<ejs-chart id="container" title="AAPL - 2012-2017"
               load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary" opposedPosition=true >
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Macd" field="Close" seriesName="Apple Inc" fill="green" yAxisName="secondary"
                         period=3 fastPeriod="5" slowPeriod="2" macdType="Line">
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/custom-macd/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Relative Strength Index (RSI)

RSI shows how strongly a stock is moving in its current direction. To render a RSI Indicator, use indicator type as Rsi.RSI indicator will be represented by three lines (upperBand, lowerBand, signalLine). The upperBand and lowerBand values are customized by overBought and overSold properties of indicator and the signalLine is calculated by RSI formula.

tagHelper
rsi.cs
<ejs-chart id="container" title="AAPL - 2012-2017"
               load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary" opposedPosition=true minimum="10" maximum="110" >
            </e-chart-axis>
        </e-chart-axes>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Rsi" field="Close" seriesName="Apple Inc" fill="blue" yAxisName="secondary"
                         period=3 showZones="true" overBought="70" overSold="30">
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/rsi/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Simple Moving Average (SMA)

Moving average Indicators are used to define the direction of the trend. To render a SMA Indicator, use indicator type as Sma.

tagHelper
sma.cs
<ejs-chart id="container" title="AAPL - 2012-2017" load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Sma" field="Close" seriesName="Apple Inc" fill="blue"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/sma/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Stochastic

It shows how a stock is, when compared to previous state. To render a Stochastic indicator, use indicator type as Stochastic. stochastic indicator will be represented by four lines (upperLine, lowerLine, periodLine, signalLine). In stochastic indicator the upperBand value and lowerBand value is customized by overBought and overBoughtproperties of indicators and the periodLine and signalLine is render based on stochastic formula.

tagHelper
stochastic.cs
<ejs-chart id="BollingerContainer" title="AAPL - 2012-2017" 
                      load="window.onChartLoad">
                <e-chart-chartarea border="border"></e-chart-chartarea>
                <e-chart-primaryxaxis valueType="DateTime"  intervalType="Months" zoomFactor="0.2" zoomPosition="0.6" crosshairTooltip="crosshairTooltip" majorGridLines="line"></e-chart-primaryxaxis>
                <e-chart-primaryyaxis title="Price" minimum="75" maximum="170" interval="30" plotOffset="25" rowIndex="1" opposedPosition="true" majorTickLines="line" lineStyle="line" labelFormat="{value}%"></e-chart-primaryyaxis>
                <e-chart-axes>
                    <e-chart-axis name="secondary"
                                  opposedPosition=true rowIndex=0
                                   lineStyle="line" minimum=0 maximum=120 interval=60
                                  majorTickLines="line" title="Stochastic">
                    </e-chart-axis>
                </e-chart-axes>
                <e-chart-rows>
                    <e-chart-row height="40%"></e-chart-row>
                    <e-chart-row height="60%"></e-chart-row>
                </e-chart-rows>
                <e-series-collection>
                    <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                              name="Apple Inc" bearFillColor="#2ecd71" bullFillColor="#e74c3d"
                              type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
                </e-series-collection>
                <e-indicators>
                    <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Stochastic" field="Close" seriesName="Apple Inc" yAxisName="secondary" fill="#6063ff"
                                 kPeriod=2 dPeriod=3 showZones=true periodLine="periodLine"
                                 period=3  upperLine="upperLine" lowerLine="lowerLine">
                    </e-indicator>
                </e-indicators>
                <e-chart-zoomsettings enablePinchZooming="true" enableSelectionZooming="true" mode="X"></e-chart-zoomsettings>
                <e-chart-legendsettings visible="false"></e-chart-legendsettings>
                <e-chart-tooltipsettings enable="true" shared="true"></e-chart-tooltipsettings>
                <e-chart-crosshairsettings enable="true" lineType="Vertical"></e-chart-crosshairsettings>
            </ejs-chart>
<script src="chart/technical-indicators/stochastic/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Customization of StochasticIndicator

stroke, stroke-width, and color of upperLine can be customized by using,upperLine, the lowerLine can be customized by using lowerLine and the periodLine can be customized by using periodLine properties of indicator. To customize the period to find the average price using kPeriod and dPeriod properties.

tagHelper
custom-stochastic.cs
<ejs-chart id="BollingerContainer" title="AAPL - 2012-2017" 
                      load="window.onChartLoad">
                <e-chart-chartarea border="border"></e-chart-chartarea>
                <e-chart-primaryxaxis valueType="DateTime"  intervalType="Months" zoomFactor="0.2" zoomPosition="0.6" crosshairTooltip="crosshairTooltip" majorGridLines="line"></e-chart-primaryxaxis>
                <e-chart-primaryyaxis title="Price" minimum="75" maximum="170" interval="30" plotOffset="25" rowIndex="1" opposedPosition="true" majorTickLines="line" lineStyle="line" labelFormat="{value}%"></e-chart-primaryyaxis>
                <e-chart-axes>
                    <e-chart-axis name="secondary"
                                  opposedPosition=true rowIndex=0
                                   lineStyle="line" minimum=0 maximum=120 interval=60
                                  majorTickLines="line" title="Stochastic">
                    </e-chart-axis>
                </e-chart-axes>
                <e-chart-rows>
                    <e-chart-row height="40%"></e-chart-row>
                    <e-chart-row height="60%"></e-chart-row>
                </e-chart-rows>
                <e-series-collection>
                    <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                              name="Apple Inc" bearFillColor="#2ecd71" bullFillColor="#e74c3d"
                              type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
                </e-series-collection>
                <e-indicators>
                    <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Stochastic" field="Close" seriesName="Apple Inc" yAxisName="secondary" fill="#6063ff"
                                 kPeriod=2 dPeriod=3 showZones=true periodLine="periodLine"
                                 period=3  upperLine="upperLine" lowerLine="lowerLine">
                    </e-indicator>
                </e-indicators>
                <e-chart-zoomsettings enablePinchZooming="true" enableSelectionZooming="true" mode="X"></e-chart-zoomsettings>
                <e-chart-legendsettings visible="false"></e-chart-legendsettings>
                <e-chart-tooltipsettings enable="true" shared="true"></e-chart-tooltipsettings>
                <e-chart-crosshairsettings enable="true" lineType="Vertical"></e-chart-crosshairsettings>
            </ejs-chart>
<script src="chart/technical-indicators/stochastic/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Syncfusion.EJ2.Charts;

namespace EJ2MVCSampleBrowser.Controllers.Chart
{
    public partial class ChartController : Controller
    {
        public ActionResult Stochastic()
        {
            ViewBag.crosshairTooltip = new { enable = true };
            ViewBag.majorGridLines = new { width = 0.00001 };
            ViewBag.lineStyle = new { width = 0.00001 };
            ViewBag.animation = new { enable = false };
            ViewBag.majorTickLines = new { width = 0.00001 };
            ViewBag.upperLine =new { color = "#0f0000" };
            ViewBag.lowerLine = new { color = "#080000" };
            ViewBag.periodLine =new { color = "#f2ec2f" };
            ViewBag.chartBorder = new ChartBorder { Color = "transparent" };
            return View();
        }
    }
}

Triangular Moving Average (TMA)

Moving average indicators are used to define the direction of the trend. To render a TMA Indicator, use indicator type as TMA.

tagHelper
tma.cs
<ejs-chart id="container" title="AAPL - 2012-2017"
               load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Tma" field="Close" seriesName="Apple Inc" fill="blue"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/tma/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Customization of Technical Indicators

stroke, stroke-width, and color of signalLine can be customized by using,fill, width and dashArray properties and the period property is used to predict the data forecast calculations. The field value is used to the compare the current price with previous price. It is applicable to Bollinger bands and moving averages. The showZones property is used to shows/Hides the overBought and overSold regions. It is applicable for RSI and stochastic indicators.

tagHelper
custom-tma.cs
<ejs-chart id="container" title="AAPL - 2012-2017"
               load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true">
        </e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false">
        </e-chart-legendsettings>
        <e-series-collection>
            <e-series xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open" width=2
                      name="Apple Inc"
                      type="@Syncfusion.EJ2.Charts.ChartSeriesType.Candle"></e-series>
        </e-series-collection>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.Tma" field="Close" seriesName="Apple Inc" fill="red"
                         period=3>
            </e-indicator>
        </e-indicators>
    </ejs-chart>
<script src="chart/technical-indicators/custom-tma/financial-data.js"></script>
 window.onChartLoad = function (args) {
            args.chart.series[0].dataSource = window.chartData;
        }
public IActionResult Index()
        {
            return View();
        }

Data Source

Usually technical indicators are added along with a financial series. The seriesName represents the series, the data of which has to be analysed through indicators.

Technical indicators can also be added without series using dataSource property of indicator.

tagHelper
datasource.cs
<ejs-chart id="ADIContainer" title="AAPL - 2012-2017" load="window.onChartLoad">
        <e-chart-primaryxaxis valueType="DateTime" intervalType="Months"></e-chart-primaryxaxis>
        <e-chart-tooltipsettings enable="true" shared="true"></e-chart-tooltipsettings>
        <e-chart-legendsettings visible="false"></e-chart-legendsettings>
        <e-chart-axes>
            <e-chart-axis name="secondary"
                          opposedPosition=true rowIndex=0 interval=6000000000
                          minimum=-7000000000 maximum=5000000000
                          title="Accumulation Distribution">
            </e-chart-axis>
        </e-chart-axes>
        <e-indicators>
            <e-indicator type="@Syncfusion.EJ2.Charts.TechnicalIndicators.AccumulationDistribution" field="Close" seriesName="Apple Inc" yAxisName="secondary" fill="#6063ff" xName="x" yName="y" low="low" high="high" close="close" volume="volume" open="open"
             period=3>
            </e-indicator>
        </e-indicators>
</ejs-chart>
<script src="chart/technical-indicators/ad/financial-data.js"></script>
 window.onChartLoad = function (args) {
           args.chart.indicators[0].dataSource = chartData;
        }
public IActionResult Index()
        {
            return View();
        }