Class ChartIndicatorBuilder
Inheritance
System.Object
ChartIndicatorBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartIndicatorBuilder : ControlBuilder
Constructors
ChartIndicatorBuilder()
Declaration
public ChartIndicatorBuilder()
ChartIndicatorBuilder(List<ChartIndicator>)
Declaration
public ChartIndicatorBuilder(List<ChartIndicator> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<ChartIndicator> |
collection |
|
Methods
Add()
Declaration
Animation(ChartAnimation)
Options to customizing animation for the series.
Declaration
public ChartIndicatorBuilder Animation(ChartAnimation animation)
Parameters
Returns
Animation(Action<ChartAnimationBuilder>)
Declaration
public ChartIndicatorBuilder Animation(Action<ChartAnimationBuilder> animation)
Parameters
Returns
BandColor(String)
Options for customizing the BollingerBand in the indicator.
Declaration
public ChartIndicatorBuilder BandColor(string bandColor)
Parameters
Type |
Name |
Description |
System.String |
bandColor |
|
Returns
Close(String)
The DataSource field that contains the close value of y
It is applicable for series and technical indicators
Declaration
public ChartIndicatorBuilder Close(string close)
Parameters
Type |
Name |
Description |
System.String |
close |
|
Returns
ColorName(String)
The Data Source field that contains the color mapping value.
It is applicable for range color mapping properly.
Declaration
public ChartIndicatorBuilder ColorName(string colorName)
Parameters
Type |
Name |
Description |
System.String |
colorName |
|
Returns
DashArray(String)
Defines the pattern of dashes and gaps to stroke the lines in Line
type series.
Declaration
public ChartIndicatorBuilder DashArray(string dashArray)
Parameters
Type |
Name |
Description |
System.String |
dashArray |
|
Returns
DataSource(Action<DataManagerBuilder>)
Declaration
public ChartIndicatorBuilder DataSource(Action<DataManagerBuilder> dataSource)
Parameters
Returns
DataSource(Object)
Specifies the DataSource for the series. It can be an array of JSON objects or an instance of DataManager.
Declaration
public ChartIndicatorBuilder DataSource(object dataSource)
Parameters
Type |
Name |
Description |
System.Object |
dataSource |
|
Returns
DPeriod(Double)
Defines the period, the price changes over which will define the %D value in stochastic indicators.
Declaration
public ChartIndicatorBuilder DPeriod(double dPeriod)
Parameters
Type |
Name |
Description |
System.Double |
dPeriod |
|
Returns
EnableComplexProperty(Boolean)
This property used to improve chart performance via data mapping for series dataSource.
Declaration
public ChartIndicatorBuilder EnableComplexProperty(bool enableComplexProperty)
Parameters
Type |
Name |
Description |
System.Boolean |
enableComplexProperty |
|
Returns
FastPeriod(Double)
Sets the fast period to define the Macd line.
Declaration
public ChartIndicatorBuilder FastPeriod(double fastPeriod)
Parameters
Type |
Name |
Description |
System.Double |
fastPeriod |
|
Returns
Field(FinancialDataFields)
Defines the field to compare the current value with previous values.
Declaration
public ChartIndicatorBuilder Field(FinancialDataFields field)
Parameters
Returns
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 ChartIndicatorBuilder Fill(string fill)
Parameters
Type |
Name |
Description |
System.String |
fill |
|
Returns
High(String)
The DataSource field that contains the high value of y
It is applicable for series and technical indicators
Declaration
public ChartIndicatorBuilder High(string high)
Parameters
Type |
Name |
Description |
System.String |
high |
|
Returns
KPeriod(Double)
Defines the look back period, the price changes over which will define the %K value in stochastic indicators.
Declaration
public ChartIndicatorBuilder KPeriod(double kPeriod)
Parameters
Type |
Name |
Description |
System.Double |
kPeriod |
|
Returns
Low(String)
The DataSource field that contains the low value of y
It is applicable for series and technical indicators
Declaration
public ChartIndicatorBuilder Low(string low)
Parameters
Type |
Name |
Description |
System.String |
low |
|
Returns
LowerLine(ChartConnector)
Defines the appearance of lower line in technical indicators.
Declaration
public ChartIndicatorBuilder LowerLine(ChartConnector lowerLine)
Parameters
Returns
LowerLine(Action<ChartConnectorBuilder>)
Declaration
public ChartIndicatorBuilder LowerLine(Action<ChartConnectorBuilder> lowerLine)
Parameters
Returns
MacdLine(ChartConnector)
Defines the appearance of the the MacdLine of Macd indicator.
Declaration
public ChartIndicatorBuilder MacdLine(ChartConnector macdLine)
Parameters
Returns
MacdLine(Action<ChartConnectorBuilder>)
Declaration
public ChartIndicatorBuilder MacdLine(Action<ChartConnectorBuilder> macdLine)
Parameters
Returns
MacdNegativeColor(String)
Defines the color of the negative bars in Macd indicators.
Declaration
public ChartIndicatorBuilder MacdNegativeColor(string macdNegativeColor)
Parameters
Type |
Name |
Description |
System.String |
macdNegativeColor |
|
Returns
MacdPositiveColor(String)
Defines the color of the positive bars in Macd indicators.
Declaration
public ChartIndicatorBuilder MacdPositiveColor(string macdPositiveColor)
Parameters
Type |
Name |
Description |
System.String |
macdPositiveColor |
|
Returns
MacdType(MacdType)
Defines the type of the Macd indicator.
Declaration
public ChartIndicatorBuilder MacdType(MacdType macdType)
Parameters
Returns
Open(String)
The DataSource field that contains the open value of y
It is applicable for series and technical indicators
Declaration
public ChartIndicatorBuilder Open(string open)
Parameters
Type |
Name |
Description |
System.String |
open |
|
Returns
OverBought(Double)
Defines the over-bought(threshold) values. It is applicable for RSI and stochastic indicators.
Declaration
public ChartIndicatorBuilder OverBought(double overBought)
Parameters
Type |
Name |
Description |
System.Double |
overBought |
|
Returns
OverSold(Double)
Defines the over-sold(threshold) values. It is applicable for RSI and stochastic indicators.
Declaration
public ChartIndicatorBuilder OverSold(double overSold)
Parameters
Type |
Name |
Description |
System.Double |
overSold |
|
Returns
Period(Double)
Defines the period, the price changes over which will be considered to predict the trend.
Declaration
public ChartIndicatorBuilder Period(double period)
Parameters
Type |
Name |
Description |
System.Double |
period |
|
Returns
PeriodLine(ChartConnector)
Defines the appearance of period line in technical indicators.
Declaration
public ChartIndicatorBuilder PeriodLine(ChartConnector periodLine)
Parameters
Returns
PeriodLine(Action<ChartConnectorBuilder>)
Declaration
public ChartIndicatorBuilder PeriodLine(Action<ChartConnectorBuilder> periodLine)
Parameters
Returns
PointColorMapping(String)
The DataSource field that contains the color value of point
It is applicable for series
Declaration
public ChartIndicatorBuilder PointColorMapping(string pointColorMapping)
Parameters
Type |
Name |
Description |
System.String |
pointColorMapping |
|
Returns
Query(String)
Specifies query to select data from DataSource. This property is applicable only when the DataSource is ej.DataManager
.
Declaration
public ChartIndicatorBuilder Query(string query)
Parameters
Type |
Name |
Description |
System.String |
query |
|
Returns
SegmentAxis(Segment)
Defines the axis, based on which the line series will be split.
Declaration
public ChartIndicatorBuilder SegmentAxis(Segment segmentAxis)
Parameters
Type |
Name |
Description |
Segment |
segmentAxis |
|
Returns
Segments(Object)
Defines the collection of regions that helps to differentiate a line series.
Declaration
public ChartIndicatorBuilder Segments(object segments)
Parameters
Type |
Name |
Description |
System.Object |
segments |
|
Returns
SeriesName(String)
Defines the name of the series, the data of which has to be depicted as indicator.
Declaration
public ChartIndicatorBuilder SeriesName(string seriesName)
Parameters
Type |
Name |
Description |
System.String |
seriesName |
|
Returns
ShowZones(Boolean)
Enables/Disables the over-bought and over-sold regions.
Declaration
public ChartIndicatorBuilder ShowZones(bool showZones)
Parameters
Type |
Name |
Description |
System.Boolean |
showZones |
|
Returns
SlowPeriod(Double)
Sets the slow period to define the Macd line.
Declaration
public ChartIndicatorBuilder SlowPeriod(double slowPeriod)
Parameters
Type |
Name |
Description |
System.Double |
slowPeriod |
|
Returns
StandardDeviation(Double)
Sets the standard deviation values that helps to define the upper and lower bollinger bands.
Declaration
public ChartIndicatorBuilder StandardDeviation(double standardDeviation)
Parameters
Type |
Name |
Description |
System.Double |
standardDeviation |
|
Returns
Type(TechnicalIndicators)
Defines the type of the technical indicator.
Declaration
public ChartIndicatorBuilder Type(TechnicalIndicators type)
Parameters
Returns
UpperLine(ChartConnector)
Defines the appearance of the upper line in technical indicators.
Declaration
public ChartIndicatorBuilder UpperLine(ChartConnector upperLine)
Parameters
Returns
UpperLine(Action<ChartConnectorBuilder>)
Declaration
public ChartIndicatorBuilder UpperLine(Action<ChartConnectorBuilder> upperLine)
Parameters
Returns
Visible(Boolean)
Specifies the visibility of series.
Declaration
public ChartIndicatorBuilder Visible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Returns
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 ChartIndicatorBuilder Volume(string volume)
Parameters
Type |
Name |
Description |
System.String |
volume |
|
Returns
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 ChartIndicatorBuilder Width(double width)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Returns
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 ChartIndicatorBuilder XAxisName(string xAxisName)
Parameters
Type |
Name |
Description |
System.String |
xAxisName |
|
Returns
XName(String)
The DataSource field that contains the x value.
It is applicable for series and technical indicators
Declaration
public ChartIndicatorBuilder XName(string xName)
Parameters
Type |
Name |
Description |
System.String |
xName |
|
Returns
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 ChartIndicatorBuilder YAxisName(string yAxisName)
Parameters
Type |
Name |
Description |
System.String |
yAxisName |
|
Returns