import type { Color } from "../../../core/util/Color"; import type { Graphics } from "../../../core/render/Graphics"; import type { XYSeries } from "../../xy/series/XYSeries"; import { AxisRendererX } from "../../xy/axes/AxisRendererX"; import { ValueAxis } from "../../xy/axes/ValueAxis"; import { Indicator, IIndicatorSettings, IIndicatorPrivate, IIndicatorEvents, IIndicatorEditableSetting } from "./Indicator"; import { ColumnSeries } from "../../xy/series/ColumnSeries"; export interface IVolumeProfileSettings extends IIndicatorSettings { /** * Color of the up volume part of each row. */ upColor?: Color; /** * Color of the down volume part of each row. */ downColor?: Color; /** * How the price range is split into rows: `"rows"` into `count` rows of * equal height, `"ticks"` into rows `count` ticks tall. * * @default "rows" */ countType?: "rows" | "ticks"; /** * Number of rows, or with `countType: "ticks"`, the height of a row in * ticks of `0.01`. * * @default 24 */ count?: number; /** * Width of the profile's longest row, in percent of the plot area width. * * @default 40 */ axisWidth?: number; /** * Percent of the visible range's volume to highlight as the value area: * the rows around the row with the most volume. * * @default 70 */ valueArea?: number; /** * Fill opacity of the rows in the value area. * * @default .7 */ valueAreaOpacity?: number; /** * The volume series to build the profile from. Required. */ volumeSeries: XYSeries; } export interface IVolumeProfilePrivate extends IIndicatorPrivate { } export interface IVolumeProfileEvents extends IIndicatorEvents { } /** * Volume Profile indicator: horizontal rows over the main series showing how * much volume traded at each price in the visible range, split into up and * down volume. * * @see {@link https://www.amcharts.com/docs/v5/charts/stock/indicators/} for more info * @since 5.7.0 */ export declare class VolumeProfile extends Indicator { static className: string; static classNames: Array; _settings: IVolumeProfileSettings; _privateSettings: IVolumeProfilePrivate; _events: IVolumeProfileEvents; /** * Series of the down volume columns. */ series: ColumnSeries; _editableSettings: IIndicatorEditableSetting[]; /** * Horizontal axis the rows' volume is measured on. */ xAxis: ValueAxis; /** * Series of the up volume columns, drawn after the down volume. */ upSeries: ColumnSeries; protected _previousColumn?: Graphics; /** * Sets the limits of `count` for the current `countType`: `10` to `500` * (step `1`) for rows; for ticks, a range derived from the Y axis step, so * it scales with the instrument. Also applies them to the dropdown's * "ticks" option. */ protected _updateCountBounds(): void; _clampSettings(force?: boolean): void; protected _afterNew(): void; protected _addInteractivity(series: ColumnSeries): void; _updateChildren(): void; /** * @ignore */ prepareData(): void; protected _dispose(): void; } //# sourceMappingURL=VolumeProfile.d.ts.map