Skip to main content

Module settings

Module settings 

Source
Expand description

Editable and serializable chart display settings.

Use ChartSettingsState to read, modify or persist the settings exposed by the chart settings dialog without depending on application UI components.

Structs§

AlertsSettings
Alerts tab settings
ButtonsSettings
Canvas tab: Buttons visibility settings
CandleColorConfig
Candle color configuration (body, border, wick for up/down candles) and which parts are drawn. Saved settings without a field take its default.
ChartBasicStylesSettings
Canvas tab: Chart basic styles settings
ChartSettingsState
Serializable display settings shared by the chart and its settings dialog.
CrosshairSettings
Canvas tab: Crosshair settings
GridLinesSettings
Canvas tab: Grid lines settings
MarginsSettings
Canvas tab: Margins settings
OrderFlowSettings
Independent order-flow layers and their appearance. Missing saved fields keep layers off.
ScalesAndLinesSettings
Scales and lines tab settings
ScalesAppearanceSettings
Canvas tab: Scales appearance settings
StatusLineOptions
Status line display options. Saved settings without a field take its default.
TradingSettings
Trading tab settings: the Buy and Sell buttons’ behaviour, notifications and the layers ui::trading::Trading::show draws through Trading::display with the ui feature. The Buy and Sell buttons themselves are StatusLineOptions::show_quote_boxes. Saved settings without a field take its default, unless the field says otherwise.
WatermarkSettings
Canvas tab: Watermark settings

Enums§

BackgroundType
Background type for chart
ButtonVisibility
Button visibility mode
ChartSettingsError
Why ChartSettingsState::apply_to_chart left the chart unchanged. Its text is the one the settings dialog shows.
GridLinesMode
Grid lines display mode
PrecisionMode
Precision mode for price display
TradingNotifications
Which trading events raise a notification: the levels of the toasts they use.
WatermarkMode
Watermark display mode