Skip to main content
Language version: 2 · Reference version: 2.7 · Date: 2026-10-25 · Compiler build: df7b3b14 · Namespace: chart · Entries: 10

chart (library)

Definition Values that describe the chart the script is drawn on: its colours (chart.bg_color and chart.fg_color) and its type (chart.is_standard, chart.is_heikinashi, chart.is_renko and the other chart.is_* values). Example

chart.bg_color (variable)

Definition The background colour of the chart the script is drawn on, as set by the reader. Type input color Example

chart.fg_color (variable)

Definition A foreground colour that contrasts with the chart’s background, for text and lines that must stay readable on both light and dark charts. Type input color Example

chart.is_heikinashi (variable)

Definition True when the chart type is Heikin Ashi. Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example

chart.is_kagi (variable)

Definition True when the chart type is Kagi. Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example

chart.is_linebreak (variable)

Definition True when the chart type is Line Break. Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example

chart.is_pnf (variable)

Definition True when the chart type is Point & Figure. Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example

chart.is_range (variable)

Definition True when the chart type is Range. Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example

chart.is_renko (variable)

Definition True when the chart type is Renko. Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example

chart.is_standard (variable)

Definition True when the chart type is a standard chart type (candles, bars, line or area). Charts built from synthetic bars do not show the instrument’s real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations. Type simple bool Example