Skip to main content

Module domain

Module domain 

Source
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§

BarsPatternConfig
How a bars pattern copies its source bars. Drawings saved without one use the defaults.
ChartPoint
A persistent point stored as (bar_idx, price) for pan/zoom stability
Drawing
A drawing on the chart
DrawingOptions
Drawing interaction options
DrawingTemplate
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.
FibonacciConfig
Configuration for all Fibonacci levels in a drawing
FibonacciLevel
Configuration for a single Fibonacci level
GannConfig
Levels, fan lines and arcs of the Gann tools, and the background between them.
GannLevel
One line of a Gann tool: a price or time level, a fan line or an arc. The GannConfig field that holds it says how its value is read.
GhostCandle
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.
GhostFeedConfig
How a Ghost Feed builds its projected candles from the clicked path. Older saved spacing and wick settings are ignored and use these defaults.
ImageConfig
Size and opacity of an Image drawing’s frame.
PitchforkConfig
The pitchfork’s level lines and the fill between adjacent levels.
PitchforkLevel
A multiple of the median-to-tine distance, mirrored on both sides of the median.
PositionSizing
Instrument economics used by long and short position drawings. Quantities are lots; one lot contains lot_size units, each worth point_value in the account currency per price point. Defaults retain unit sizing without rounding.
RegressionTrendConfig
Settings of the regression trend drawing.
TimeframeVisibility
The intervals a drawing shows on.
VwapBand
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.
VwapConfig
The bands of an anchored VWAP drawing; a drawing without one uses the default.

Enums§

ArrowStyle
Arrow/arrowhead style for line drawings
BarsPatternMode
How a bars pattern draws each copied bar.
ElliottDegree
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.
GannFanDirection
The corners the fan lines of a Gann square start from.
HandlePos
Identifies a selection handle position on a drawing.
PositionSize
How a long or short position drawing sizes its quantity.

Constants§

MAX_GHOST_CANDLES
The most candles one Ghost Feed projects.