igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
182 lines (181 loc) • 5.68 kB
TypeScript
import { IgrStrategyBasedIndicator, IIgrStrategyBasedIndicatorProps } from "./igr-strategy-based-indicator";
import { PercentageVolumeOscillatorIndicator } from "./PercentageVolumeOscillatorIndicator";
/**
* Represents a IgxDataChartComponent Percentage Volume Oscillator (PVO) series.
* Default required members: Volume
*
* You can use the `PercentageVolumeOscillatorIndicator` to show the percentage difference volume.
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrPercentageVolumeOscillatorIndicator
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* closeMemberPath="Close" />
* </IgrDataChart>
* ```
*
* ```ts
* let series = new IgrPercentageVolumeOscillatorIndicator({name:"series1"});
* series.xAxisName = this.xAxis;
* series.yAxisName = this.yAxis;
* series.xAxis = this.categoryXAxis;
* series.yAxis = this.numericYAxis;
* series.openMemberPath = "open";
* series.highMemberPath = "high";
* series.lowMemberPath = "low";
* series.closeMemberPath = "close";
* ```
*/
export declare class IgrPercentageVolumeOscillatorIndicator extends IgrStrategyBasedIndicator<IIgrPercentageVolumeOscillatorIndicatorProps> {
protected createImplementation(): PercentageVolumeOscillatorIndicator;
/**
* @hidden
*/
get i(): PercentageVolumeOscillatorIndicator;
constructor(props: IIgrPercentageVolumeOscillatorIndicatorProps);
/**
* Gets or sets the short moving average period for the current PercentageVolumeOscillatorIndicator object.
* The typical, and initial, value for short PVO periods is 10.
*
* You can use the `ShortPeriod` to set the short moving average period.
*
* ```ts
* this.series.shortPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrPercentageVolumeOscillatorIndicator
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* shortPeriod = {30} />
* </IgrDataChart>
* ```
*/
get shortPeriod(): number;
set shortPeriod(v: number);
/**
* Gets or sets the short moving average period for the current PercentageVolumeOscillatorIndicator object.
* The typical, and initial, value for long PVO periods is 30.
*
* You can use the `LongPeriod` to set the long moving average period.
*
* ```ts
* this.series.longPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrPercentageVolumeOscillatorIndicator
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* longPeriod = {30} />
* </IgrDataChart>
* ```
*/
get longPeriod(): number;
set longPeriod(v: number);
}
export interface IIgrPercentageVolumeOscillatorIndicatorProps extends IIgrStrategyBasedIndicatorProps {
/**
* Gets or sets the short moving average period for the current PercentageVolumeOscillatorIndicator object.
* The typical, and initial, value for short PVO periods is 10.
*
* You can use the `ShortPeriod` to set the short moving average period.
*
* ```ts
* this.series.shortPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrPercentageVolumeOscillatorIndicator
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* shortPeriod = {30} />
* </IgrDataChart>
* ```
*/
shortPeriod?: number | string;
/**
* Gets or sets the short moving average period for the current PercentageVolumeOscillatorIndicator object.
* The typical, and initial, value for long PVO periods is 30.
*
* You can use the `LongPeriod` to set the long moving average period.
*
* ```ts
* this.series.longPeriod = 30;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
*
* <IgrCategoryXAxis name="xAxis" label="Date" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrPercentageVolumeOscillatorIndicator
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* lowMemberPath="Low"
* highMemberPath="High"
* openMemberPath="Open"
* longPeriod = {30} />
* </IgrDataChart>
* ```
*/
longPeriod?: number | string;
}