igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
199 lines (198 loc) • 6.19 kB
TypeScript
import { IgrStrategyBasedIndicator, IIgrStrategyBasedIndicatorProps } from "./igr-strategy-based-indicator";
import { ChaikinOscillatorIndicator } from "./ChaikinOscillatorIndicator";
/**
* Represents the IgxDataChartComponent Chaikin Oscillator indicator series.
* Default required members: Close, Low, High, Volume
*
* `ChaikinOscillatorIndicator` class specify the series as Chaikin Oscillator Indicator series.
*
* ```ts
* <IgrDataChart
* ref={this.onChartRef}
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrChaikinOscillatorIndicator
* name="series3"
* xAxisName="xAxis"
* yAxisName="yAxis"
* displayType="Line"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* closeMemberPath="Close"
* volumeMemberPath="Volume"
* longPeriod={30}/>
* </IgrDataChart>
* ```
*
* ```ts
* let series1 = new IgrAbsoluteVolumeOscillatorIndicator({ name: ""});
* series1.xAxis = this.categoryXAxis;
* series1.yAxis = this.numericYAxis;
* series1.xAxisName = "XAxis";
* series1.yAxisName = "YAxis";
* series1.valueMemberPath = "Volume";
* series1.openMemberPath = "open";
* series1.highMemberPath = "high";
* series1.lowMemberPath = "low";
* series1.closeMemberPath = "close";
* ```
*/
export declare class IgrChaikinOscillatorIndicator extends IgrStrategyBasedIndicator<IIgrChaikinOscillatorIndicatorProps> {
protected createImplementation(): ChaikinOscillatorIndicator;
/**
* @hidden
*/
get i(): ChaikinOscillatorIndicator;
constructor(props: IIgrChaikinOscillatorIndicatorProps);
/**
* Gets or sets the short moving average period for the current ChaikinOscillatorIndicator object.
* The typical, and initial, value for short CHO periods is 3.
*
* Set the `ShortPeriod` property if you wish to change the short moving average period for the indicator.
*
* ```ts
* this.series.shortPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrChaikinOscillatorIndicator
* name="series3"
* xAxisName="xAxis"
* yAxisName="yAxis"
* displayType="Line"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* closeMemberPath="Close"
* volumeMemberPath="Volume"
* ShortPeriod ={5}/>
* </IgrDataChart>
* ```
*/
get shortPeriod(): number;
set shortPeriod(v: number);
/**
* Gets or sets the long moving average period for the current ChaikinOscillatorIndicator object.
* The typical, and initial, value for long CHO periods is 10.
*
* Set the `LongPeriod` property if you wish to change the long moving average period for the indicator.
*
* ```ts
* this.series.longPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrChaikinOscillatorIndicator
* name="series3"
* xAxisName="xAxis"
* yAxisName="yAxis"
* displayType="Line"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* closeMemberPath="Close"
* volumeMemberPath="Volume"
* longPeriod={30}/>
* </IgrDataChart>
* ```
*/
get longPeriod(): number;
set longPeriod(v: number);
}
export interface IIgrChaikinOscillatorIndicatorProps extends IIgrStrategyBasedIndicatorProps {
/**
* Gets or sets the short moving average period for the current ChaikinOscillatorIndicator object.
* The typical, and initial, value for short CHO periods is 3.
*
* Set the `ShortPeriod` property if you wish to change the short moving average period for the indicator.
*
* ```ts
* this.series.shortPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrChaikinOscillatorIndicator
* name="series3"
* xAxisName="xAxis"
* yAxisName="yAxis"
* displayType="Line"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* closeMemberPath="Close"
* volumeMemberPath="Volume"
* ShortPeriod ={5}/>
* </IgrDataChart>
* ```
*/
shortPeriod?: number | string;
/**
* Gets or sets the long moving average period for the current ChaikinOscillatorIndicator object.
* The typical, and initial, value for long CHO periods is 10.
*
* Set the `LongPeriod` property if you wish to change the long moving average period for the indicator.
*
* ```ts
* this.series.longPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrChaikinOscillatorIndicator
* name="series3"
* xAxisName="xAxis"
* yAxisName="yAxis"
* displayType="Line"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* closeMemberPath="Close"
* volumeMemberPath="Volume"
* longPeriod={30}/>
* </IgrDataChart>
* ```
*/
longPeriod?: number | string;
}