Expand description
Drawing records, chart coordinates and tool-specific settings.
Use Drawing and ChartPoint when working with the drawing manager directly.
For persistence across history or interval changes, use timestamp anchors through
persistence or the chart’s drawing APIs.
Re-exports§
pub use crate::config::DrawingInteractionMode;pub use crate::config::DrawingToolType;pub use crate::config::ParseToolTypeError;pub use options::FontWeight;
Structs§
- Bars
Pattern Config - How a bars pattern copies its source bars. Drawings saved without one use the defaults.
- Chart
Point - A persistent point stored as (bar_idx, price) for pan/zoom stability
- Drawing
- A drawing on the chart
- Drawing
Options - Drawing interaction options
- Drawing
Template - Drawing properties without anchors or record identity. Apply to an existing drawing of the same type; its coordinates, closed outline, name, notes, layer, post link and persistence identity stay intact.
- Fibonacci
Config - Configuration for all Fibonacci levels in a drawing
- Fibonacci
Level - Configuration for a single Fibonacci level
- Gann
Config - Levels, fan lines and arcs of the Gann tools, and the background between them.
- Gann
Level - One line of a Gann tool: a price or time level, a fan line or an arc. The
GannConfigfield that holds it says how its value is read. - Ghost
Candle - One projected candle, with its body following the noisy path and wicks widened to the configured range when the body and intervening anchors fit inside it.
- Ghost
Feed Config - How a Ghost Feed builds its projected candles from the clicked path.
Older saved
spacingandwicksettings are ignored and use these defaults. - Image
Config - Size and opacity of an
Imagedrawing’s frame. - Pitchfork
Config - The pitchfork’s level lines and the fill between adjacent levels.
- Pitchfork
Level - A multiple of the median-to-tine distance, mirrored on both sides of the median.
- Position
Sizing - Instrument economics used by long and short position drawings.
Quantities are lots; one lot contains
lot_sizeunits, each worthpoint_valuein the account currency per price point. Defaults retain unit sizing without rounding. - Regression
Trend Config - Settings of the regression trend drawing.
- Timeframe
Visibility - The intervals a drawing shows on.
- Vwap
Band - A line above and a line below an anchored VWAP, a multiple of the volume-weighted standard deviation of the typical price away from it.
- Vwap
Config - The bands of an anchored VWAP drawing; a drawing without one uses the default.
Enums§
- Arrow
Style - Arrow/arrowhead style for line drawings
- Bars
Pattern Mode - How a bars pattern draws each copied bar.
- Elliott
Degree - The degree of an Elliott wave count, which sets the notation of its labels so that counts of different degree on one chart can be told apart. From the largest degree to the smallest.
- Gann
FanDirection - The corners the fan lines of a Gann square start from.
- Handle
Pos - Identifies a selection handle position on a drawing.
- Position
Size - How a long or short position drawing sizes its quantity.
Constants§
- MAX_
GHOST_ CANDLES - The most candles one Ghost Feed projects.