Chart look reference
The 2 functions and 2 values of chart: signature, effects, phase, cost and tested examples.
Functions that colour the chart itself: its background and its candles.
Functions#
chart.background#
chart.background([color], [offset], [last_bars], [name], [display], [key], [was])
Colours the background of the bars where color is not na.
- Effects: draws on the chart or writes an output.
- Phase: every bar.
- Cost: counts against the limits on drawn objects and outputs.
- Examples: Trend background, Window of the day.
chart.candles#
chart.candles([color], [offset], [last_bars], [name], [display], [body], [wick], [border])
Colours the candles of the chart.
- Effects: draws on the chart or writes an output.
- Phase: every bar.
- Cost: counts against the limits on drawn objects and outputs.
Values#
chart.theme_backgroundchart.theme_foreground