menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StockChartStockChartIndicatorBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StockChartStockChartIndicatorBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    StockChartStockChartIndicatorBuilder
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class StockChartStockChartIndicatorBuilder : ControlBuilder

    Constructors

    StockChartStockChartIndicatorBuilder()

    Declaration
    public StockChartStockChartIndicatorBuilder()

    StockChartStockChartIndicatorBuilder(List<StockChartStockChartIndicator>)

    Declaration
    public StockChartStockChartIndicatorBuilder(List<StockChartStockChartIndicator> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<StockChartStockChartIndicator> collection

    Methods

    Add()

    Declaration
    public void Add()

    Animation(StockChartAnimation)

    Options to customizing animation for the series.

    Declaration
    public StockChartStockChartIndicatorBuilder Animation(StockChartAnimation animation)
    Parameters
    Type Name Description
    StockChartAnimation animation
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Animation(Action<StockChartAnimationBuilder>)

    Declaration
    public StockChartStockChartIndicatorBuilder Animation(Action<StockChartAnimationBuilder> animation)
    Parameters
    Type Name Description
    System.Action<StockChartAnimationBuilder> animation
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    BandColor(String)

    Options for customizing the BollingerBand in the indicator.

    Declaration
    public StockChartStockChartIndicatorBuilder BandColor(string bandColor)
    Parameters
    Type Name Description
    System.String bandColor
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Close(String)

    The DataSource field that contains the close value of y It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder Close(string close)
    Parameters
    Type Name Description
    System.String close
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    DashArray(String)

    Defines the pattern of dashes and gaps to stroke the lines in Line type series.

    Declaration
    public StockChartStockChartIndicatorBuilder DashArray(string dashArray)
    Parameters
    Type Name Description
    System.String dashArray
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    DataSource(Action<DataManagerBuilder>)

    Declaration
    public StockChartStockChartIndicatorBuilder DataSource(Action<DataManagerBuilder> dataSource)
    Parameters
    Type Name Description
    System.Action<Syncfusion.EJ2.DataManagerBuilder> dataSource
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    DataSource(Object)

    Specifies the DataSource for the series. It can be an array of JSON objects or an instance of DataManager.

    Declaration
    public StockChartStockChartIndicatorBuilder DataSource(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    DPeriod(Double)

    Defines the period, the price changes over which will define the %D value in stochastic indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder DPeriod(double dPeriod)
    Parameters
    Type Name Description
    System.Double dPeriod
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    FastPeriod(Double)

    Sets the fast period to define the Macd line.

    Declaration
    public StockChartStockChartIndicatorBuilder FastPeriod(double fastPeriod)
    Parameters
    Type Name Description
    System.Double fastPeriod
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Field(FinancialDataFields)

    Defines the field to compare the current value with previous values.

    Declaration
    public StockChartStockChartIndicatorBuilder Field(FinancialDataFields field)
    Parameters
    Type Name Description
    FinancialDataFields field
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Fill(String)

    The fill color for the series that accepts value in hex and rgba as a valid CSS color string. It also represents the color of the signal lines in technical indicators. For technical indicators, the default value is 'blue' and for series, it has null.

    Declaration
    public StockChartStockChartIndicatorBuilder Fill(string fill)
    Parameters
    Type Name Description
    System.String fill
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    High(String)

    The DataSource field that contains the high value of y It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder High(string high)
    Parameters
    Type Name Description
    System.String high
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    KPeriod(Double)

    Defines the look back period, the price changes over which will define the %K value in stochastic indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder KPeriod(double kPeriod)
    Parameters
    Type Name Description
    System.Double kPeriod
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Low(String)

    The DataSource field that contains the low value of y It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder Low(string low)
    Parameters
    Type Name Description
    System.String low
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    LowerLine(StockChartLowerLine)

    Defines the appearance of lower line in technical indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder LowerLine(StockChartLowerLine lowerLine)
    Parameters
    Type Name Description
    StockChartLowerLine lowerLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    LowerLine(Action<StockChartConnectorBuilder>)

    Declaration
    public StockChartStockChartIndicatorBuilder LowerLine(Action<StockChartConnectorBuilder> lowerLine)
    Parameters
    Type Name Description
    System.Action<StockChartConnectorBuilder> lowerLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    MacdLine(StockChartConnector)

    Defines the appearance of the the MacdLine of Macd indicator.

    Declaration
    public StockChartStockChartIndicatorBuilder MacdLine(StockChartConnector macdLine)
    Parameters
    Type Name Description
    StockChartConnector macdLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    MacdLine(Action<StockChartConnectorBuilder>)

    Declaration
    public StockChartStockChartIndicatorBuilder MacdLine(Action<StockChartConnectorBuilder> macdLine)
    Parameters
    Type Name Description
    System.Action<StockChartConnectorBuilder> macdLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    MacdNegativeColor(String)

    Defines the color of the negative bars in Macd indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder MacdNegativeColor(string macdNegativeColor)
    Parameters
    Type Name Description
    System.String macdNegativeColor
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    MacdPositiveColor(String)

    Defines the color of the positive bars in Macd indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder MacdPositiveColor(string macdPositiveColor)
    Parameters
    Type Name Description
    System.String macdPositiveColor
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    MacdType(MacdType)

    Defines the type of the Macd indicator.

    Declaration
    public StockChartStockChartIndicatorBuilder MacdType(MacdType macdType)
    Parameters
    Type Name Description
    MacdType macdType
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Open(String)

    The DataSource field that contains the open value of y It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder Open(string open)
    Parameters
    Type Name Description
    System.String open
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    OverBought(Double)

    Defines the over-bought(threshold) values. It is applicable for RSI and stochastic indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder OverBought(double overBought)
    Parameters
    Type Name Description
    System.Double overBought
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    OverSold(Double)

    Defines the over-sold(threshold) values. It is applicable for RSI and stochastic indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder OverSold(double overSold)
    Parameters
    Type Name Description
    System.Double overSold
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Period(Double)

    Defines the period, the price changes over which will be considered to predict the trend.

    Declaration
    public StockChartStockChartIndicatorBuilder Period(double period)
    Parameters
    Type Name Description
    System.Double period
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    PeriodLine(StockChartPeriodLine)

    Defines the appearance of period line in technical indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder PeriodLine(StockChartPeriodLine periodLine)
    Parameters
    Type Name Description
    StockChartPeriodLine periodLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    PeriodLine(Action<StockChartConnectorBuilder>)

    Declaration
    public StockChartStockChartIndicatorBuilder PeriodLine(Action<StockChartConnectorBuilder> periodLine)
    Parameters
    Type Name Description
    System.Action<StockChartConnectorBuilder> periodLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    PointColorMapping(String)

    The DataSource field that contains the color value of point It is applicable for series

    Declaration
    public StockChartStockChartIndicatorBuilder PointColorMapping(string pointColorMapping)
    Parameters
    Type Name Description
    System.String pointColorMapping
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Query(String)

    Specifies query to select data from DataSource. This property is applicable only when the DataSource is ej.DataManager.

    Declaration
    public StockChartStockChartIndicatorBuilder Query(string query)
    Parameters
    Type Name Description
    System.String query
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    SeriesName(String)

    Defines the name of the series, the data of which has to be depicted as indicator.

    Declaration
    public StockChartStockChartIndicatorBuilder SeriesName(string seriesName)
    Parameters
    Type Name Description
    System.String seriesName
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    ShowZones(Boolean)

    Enables/Disables the over-bought and over-sold regions.

    Declaration
    public StockChartStockChartIndicatorBuilder ShowZones(bool showZones)
    Parameters
    Type Name Description
    System.Boolean showZones
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    SlowPeriod(Double)

    Sets the slow period to define the Macd line.

    Declaration
    public StockChartStockChartIndicatorBuilder SlowPeriod(double slowPeriod)
    Parameters
    Type Name Description
    System.Double slowPeriod
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    StandardDeviation(Double)

    Sets the standard deviation values that helps to define the upper and lower bollinger bands.

    Declaration
    public StockChartStockChartIndicatorBuilder StandardDeviation(double standardDeviation)
    Parameters
    Type Name Description
    System.Double standardDeviation
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Type(TechnicalIndicators)

    Defines the type of the technical indicator.

    Declaration
    public StockChartStockChartIndicatorBuilder Type(TechnicalIndicators type)
    Parameters
    Type Name Description
    TechnicalIndicators type
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    UpperLine(StockChartUpperLine)

    Defines the appearance of the upper line in technical indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder UpperLine(StockChartUpperLine upperLine)
    Parameters
    Type Name Description
    StockChartUpperLine upperLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    UpperLine(Action<StockChartConnectorBuilder>)

    Declaration
    public StockChartStockChartIndicatorBuilder UpperLine(Action<StockChartConnectorBuilder> upperLine)
    Parameters
    Type Name Description
    System.Action<StockChartConnectorBuilder> upperLine
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Volume(String)

    Defines the data source field that contains the volume value in candle charts It is applicable for financial series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder Volume(string volume)
    Parameters
    Type Name Description
    System.String volume
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    Width(Double)

    The stroke width for the series that is applicable only for Line type series. It also represents the stroke width of the signal lines in technical indicators.

    Declaration
    public StockChartStockChartIndicatorBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    XAxisName(String)

    The name of the horizontal axis associated with the series. It requires axes of the chart. It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder XAxisName(string xAxisName)
    Parameters
    Type Name Description
    System.String xAxisName
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    XName(String)

    The DataSource field that contains the x value. It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder XName(string xName)
    Parameters
    Type Name Description
    System.String xName
    Returns
    Type
    StockChartStockChartIndicatorBuilder

    YAxisName(String)

    The name of the vertical axis associated with the series. It requires axes of the chart. It is applicable for series and technical indicators

    Declaration
    public StockChartStockChartIndicatorBuilder YAxisName(string yAxisName)
    Parameters
    Type Name Description
    System.String yAxisName
    Returns
    Type
    StockChartStockChartIndicatorBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved