import type { IIndicatorEditableSetting } from "./Indicator"; import type { Color } from "../../../core/util/Color"; import { MovingAverage, IMovingAverageSettings, IMovingAveragePrivate, IMovingAverageEvents } from "./MovingAverage"; import { LineSeries } from "../../xy/series/LineSeries"; export interface IMovingAverageEnvelopeSettings extends IMovingAverageSettings { /** * Distance of the bands from the moving average, in the unit set by * `shiftType`. * * @default 5 */ shift?: number; /** * Unit of `shift`: `"percent"` of the moving average, or `"points"` (price * units). * * @default "percent" */ shiftType?: "percent" | "points"; /** * Color of the upper band and of the fill between the bands. */ upperColor?: Color; /** * Color of the lower band. */ lowerColor?: Color; } export interface IMovingAverageEnvelopePrivate extends IMovingAveragePrivate { } export interface IMovingAverageEnvelopeEvents extends IMovingAverageEvents { } /** * Moving Average Envelope indicator: a moving average of `field` over * `period`, with bands `shift` above and below it. Drawn over the main series. * * @see {@link https://www.amcharts.com/docs/v5/charts/stock/indicators/} for more info */ export declare class MovingAverageEnvelope extends MovingAverage { static className: string; static classNames: Array; _settings: IMovingAverageEnvelopeSettings; _privateSettings: IMovingAverageEnvelopePrivate; _events: IMovingAverageEnvelopeEvents; /** * Series of the upper band. */ upperBandSeries: LineSeries; /** * Series of the lower band. */ lowerBandSeries: LineSeries; _editableSettings: IIndicatorEditableSetting[]; /** * Sets the limits of `shift` for the current `shiftType`: `0.1` to `20` * (step `0.1`) for percent, `1` to `5000` (step `1`) for points. */ protected _updateShiftBounds(): void; _clampSettings(force?: boolean): void; protected _afterNew(): void; _updateChildren(): void; _prepareChildren(): void; /** * @ignore */ prepareData(): void; protected _dispose(): void; hide(duration?: number): Promise; show(duration?: number): Promise; } //# sourceMappingURL=MovingAverageEnvelope.d.ts.map