UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

87 lines (86 loc) 3.61 kB
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { StochRSIIndicator } from "./StochRSIIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent StochRSI indicator series. * Default required members: Close * * `StochRSIIndicator` or Stochastic Relative Strength IndexI Indicator (SRSI) measures when a security is overbought or oversold within a specified period of time. The values range from 0 to 1. The StochRSI Indicator is calculated by applying the Stochastic Oscillator formula to RelativeStrengthIndexIndicator (RSI) data. * * Using this indicator requires setting the `CloseMemberPath`. */ export let IgcStochRSIIndicatorComponent = /*@__PURE__*/ (() => { class IgcStochRSIIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new StochRSIIndicator(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent == null) { let names = getAllPropertyNames(IgcStochRSIIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent = names; } return IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent; } static register() { if (!IgcStochRSIIndicatorComponent._isElementRegistered) { IgcStochRSIIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcStochRSIIndicatorComponent.htmlTagName, IgcStochRSIIndicatorComponent); } } /** * Gets or sets the moving average period for the current StochRSIIndicator object. * The typical, and initial, value for StochRSI periods is 14. * * ```ts * this.series.period = 10; * ``` */ get period() { return this.i.acl; } set period(v) { this.i.acl = +v; this._a("period", this.i.acl); } } IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent = null; IgcStochRSIIndicatorComponent.htmlTagName = "igc-stoch-rsi-indicator"; IgcStochRSIIndicatorComponent._isElementRegistered = false; return IgcStochRSIIndicatorComponent; })();