Parent: Object
The ChartPreferences class contains the visual settings used to render a WealthLab chart, including its colors, Chart Style, bar spacing, panes, cursors, event icons, trade arrows, fonts, and other display options.
Creates a new ChartPreferences instance using the default WealthLab chart settings.
If true, WealthLab adjusts the chart's y-axis scaling as necessary to ensure plotted stop and limit prices are visible when using methods such as PlotStopsAndLimits.
Controls whether the chart toolbar remains visible at all times. If false, the chart can use its auto-hide toolbar behavior.
Controls whether anti-aliasing is enabled when rendering the chart.
Gets or sets the spacing between chart bars, in pixels. Values less than 1 are automatically adjusted to 1.
Gets or sets the name of the Chart Style used to render the price bars, for example "Bar" or "Candlestick".
Gets or sets the ParameterList containing the configuration parameters for the Chart Style identified by ChartStyleName.
Gets or sets the background color used for the chart's axes.
Gets or sets the color used to render the chart's x-axis and y-axis labels.
Gets or sets the chart's primary background color.
Gets or sets the color used to render the chart's vertical and crosshair cursors.
Gets or sets the color used to render bars whose closing price is less than their opening price.
Gets or sets the color used to render chart grid lines.
Gets or sets the color used to render the separators between chart panes.
Gets or sets the background color used for pre-market and post-market regions of intraday charts. If no separate color has been assigned, the getter returns ColorBackground.
Gets or sets the color used to render bars whose closing price is greater than or equal to their opening price.
Gets or sets the color used to render the chart watermark containing the symbol and security name.
Gets or sets the thickness, in pixels, of the vertical and crosshair cursor lines.
If true, disables WealthLab's chart rendering optimizations. This can be useful for Chart Styles or other visual components that require full rendering behavior even at narrow bar spacing.
Controls whether EventDataPoint glyphs, such as dividend and split icons, are displayed on the chart.
Controls whether Strategy trade arrows are displayed on the chart.
Gets or sets the name of the default Indicator Set associated with the chart preferences.
Returns true when ColorBackground is considered a dark color.
Returns true when the brightness of ColorBackground is greater than 0.5.
Controls whether the chart's price axis uses logarithmic scaling. If false, the axis uses linear scaling.
Gets or sets the top and bottom margin used by chart panes. Values are constrained to the range 0 through 10.
Gets or sets the name of the Chart Preferences theme.
Gets or sets the width, in pixels, of the separators between chart panes.
Controls whether the chart displays its bar scale.
Controls whether Indicators display mouse-over highlighting.
Controls whether horizontal Signal lines are displayed on the chart.
Controls whether the chart status bar is displayed.
Controls whether the chart's Volume pane is displayed.
Controls whether plotted Indicators are included when WealthLab determines the minimum and maximum values required for a chart pane's vertical scale.
Controls whether Strategy trades are rendered using the legacy WealthLab 6-style trade arrows.
The parameterless overload creates and returns a copy of the ChartPreferences instance, including its Name. The overload that accepts ChartDisplaySettings first clones the current ChartPreferences and then applies any chart display settings defined in cds, including colors, bar spacing, volume pane visibility, cursor settings, margins, toolbar and status-bar settings, trade arrows, adaptive stop/limit scaling, and bar-scale visibility.
Creates and returns a ChartPreferences instance from the persisted string in s. The parser maintains backward compatibility with ChartPreferences strings created by earlier WealthLab versions.
Returns a string containing the persisted ChartPreferences configuration.
Returns an appropriate general-purpose text color for the current chart background. A dark text color is returned for a light background, and a light text color is returned for a dark background.
Returns a version of color adjusted, when necessary, to contrast with the chart's ColorBackground. On a light background, colors that are also too light are darkened. On a dark background, colors that are too dark are brightened.