import type CSSObject from '../../../Core/Renderer/CSSObject'; import type ColorType from '../../../Core/Color/ColorType'; import type MultipleLinesComposition from '../MultipleLinesComposition'; import type { SMAOptions, SMAParamsOptions } from '../SMA/SMAOptions'; /** * Price envelopes indicator based on [SMA](#plotOptions.sma) calculations. * This series requires the `linkedTo` option to be set and should be loaded * after the `stock/indicators/indicators.js` file. * * @sample {highstock} stock/indicators/price-envelopes * Price envelopes * * @extends plotOptions.sma * @since 6.0.0 * @product highstock * @requires stock/indicators/indicators * @requires stock/indicators/price-envelopes * @interface Highcharts.PriceEnvelopesOptions */ export interface PriceEnvelopesOptions extends SMAOptions, MultipleLinesComposition.IndicatorOptions { /** * Option for fill color between lines in Price Envelopes Indicator. * * @sample {highstock} stock/indicators/indicator-area-fill * Background fill between lines. * * @since 11.0.0 */ fillColor?: ColorType; bottomLine?: Record; params?: PriceEnvelopesParamsOptions; topLine?: Record; } export interface PriceEnvelopesParamsOptions extends SMAParamsOptions { /** * Percentage above the moving average that should be displayed. * 0.1 means 110%. Relative to the calculated value. */ topBand: number; /** * Percentage below the moving average that should be displayed. * 0.1 means 90%. Relative to the calculated value. */ bottomBand: number; period: number; } export default PriceEnvelopesOptions;