Color Settings for Graph Draw Types


Introduction

This page documents the color and width settings on the Subgraphs tab of the Study Settings window that apply to the various price bar Graph Draw Types. The Graph Draw Type is set on the Subgraphs tab of the Study Settings window for a study.

For studies that have a Graph Draw Type set to a price bar type (OHLC Bar, Candlestick, ...), there are two ways to set colors and widths for the bars.

  1. The colors and widths can be set through the related settings, Subgraphs tab of the Study Settings window for the study. Descriptions for each of those settings is documented on this page.
  2. If Use Chart Graphics Settings for Subgraph Colors is enabled on the Subgraphs tab, then the Subgraph color and width settings on the Subgraphs tab of the Study Settings window do not apply and the color settings are instead set through Chart >> Graphics Settings or Global Settings >> Graphics Settings.

If you have enabled Global Settings >> Graphics Settings >> Color Entire OHLC Bar the High/Low Color , then the Open and Close colors for OHLC bars documented here will not apply.

If you have enabled Global Settings >> Graphics Settings >> Color Candlestick High-Low Using the Outline Colors , then the High to Low coloring documented here will not apply. The Candlestick outline colors will be used instead.

In the case where Display As Main Price Graph is enabled on a study that is not considered a Custom Chart type of study and it has Graph Draw Type set to a price bar type, then the study's Subgraph color settings do not apply and the price bar color settings are instead set through Chart >> Graphics Settings or Global Settings >> Graphics Settings.

In this case, the option Use Chart Graphics Settings for Subgraph Colors does not apply and is always considered to be enabled.

In the case where the study uses the ACSIL sc.Subgraph[].DataColor[] arrays, then those color arrays will fully control the colors of the price bars instead of the Chart or Global specific Graphics Settings.

OHLC Bars

  • Open Primary Color: This colors the Left Open Line of the bar.
  • Open Secondary Color: Does not apply.
  • High Primary Color: If this is an Up bar (Close > Open), then this colors the High to Low line of the bar.
  • Low Primary Color: If this is an Down bar (Close < Open), then this colors the High to Low line of the bar.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: This colors the Right Close Line of the bar.

Candlestick

  • Open Primary Color: If this is an Up candlestick bar (Close > Open), then this colors the outline of the candlestick body.
  • Open Secondary Color: If this is an Up candlestick bar (Close > Open), then this colors the High to Low line.
  • High Primary Color: If this is an Up candlestick bar (Close > Open), then this colors the interior of the candlestick body.
  • Low Primary Color: If this is a Down candlestick bar (Close < Open), then this colors the outline of the candlestick body.
  • Low Secondary Color: If this is a Down candlestick bar (Close < Open), then this colors the High to Low line.
  • Last Primary Color: If this is a Down candlestick bar (Close < Open), then this colors the interior of the candlestick body.
  • Open Width: This controls the outline width of up candlestick bars.
  • High Width: This controls the High to Low line width of up candlestick bars.
  • Low Width: This controls the outline width of down candlestick bars.
  • Last Width: This controls the High to Low line width of down candlestick bars.

Candlestick Body Only

  • Open Primary Color: If this is an Up candlestick bar (Close > Open), then this colors the outline of the candlestick body.
  • Open Secondary Color: Does not apply
  • High Primary Color: If this is an Up candlestick bar (Close > Open), then this colors the interior of the candlestick body.
  • Low Primary Color: If this is a Down candlestick bar (Close < Open), then this colors the outline of the candlestick body.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: If this is a Down candlestick bar (Close < Open), then this colors the interior of the candlestick body.

Line on Close

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: Does not apply.
  • Low Primary Color: Does not apply.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: This colours the line of Line on Close graph.

Mountain

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: Does not apply.
  • Low Primary Color: Does not apply.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: This colours the line of the graph and colors the fill underneath the line.

HLC Bars

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: If this is an Up bar (Close > Open), then this colors the High to Low line of the bar.
  • Low Primary Color: If this is an Down bar (Close < Open), then this colors the High to Low line of the bar.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: This colors the Right Close Line of the bar.

Line on Open

  • Open Primary Color: This colours the line of Line on Close graph.
  • Open Secondary Color: Does not apply.
  • High Primary Color: Does not apply.
  • Low Primary Color: Does not apply.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: Does not apply.

Line on HL Avg

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: Does not apply.
  • Low Primary Color: Does not apply.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: Does not apply.
  • Note: Regardless of color chosen, a blue color line will appear.

Stair Step on Close

  • Open Primary Color: Determines the color of the line outline.
  • Open Secondary Color: Does not apply.
  • High Primary Color: Does not apply.
  • Low Primary Color: Does not apply.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: Determines the color of the line outline.

HL Bars

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: If this is an Up bar (Close > Open), then this colors the High to Low line of the bar.
  • Low Primary Color: If this is an Down bar (Close < Open), then this colors the High to Low line of the bar.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: Does not apply.

Bid Ask Volume Bars

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: Does not apply.
  • Low Primary Color: Does not apply.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: Does not apply.

Price Volume Bars

  • Open Primary Color: Does not apply.
  • Open Secondary Color: Does not apply.
  • High Primary Color: If this is an Up bar (Close > Open), then this colors the body of the bar.
  • Low Primary Color: If this is an Down bar (Close < Open), then this colors the body of the bar.
  • Low Secondary Color: Does not apply.
  • Last Primary Color: Does not apply.

Candle Price Volume Bars

  • Open Primary Color: If this is an Up candlestick bar (Close > Open), then this colors the outline of the candlestick body.
  • Open Secondary Color: If this is an Up candlestick bar (Close > Open), then this colors the High to Low line.
  • High Primary Color: If this is an Up candlestick bar (Close > Open), then this colors the interior of the candlestick body.
  • Low Primary Color: If this is a Down candlestick bar (Close < Open), then this colors the outline of the candlestick body.
  • Low Secondary Color: If this is a Down candlestick bar (Close < Open), then this colors the High to Low line.
  • Last Primary Color: If this is a Down candlestick bar (Close < Open), then this colors the interior of the candlestick body.

ACSIL Color Control of Price Bar Graph Draw Types

An Advanced Custom Study, which uses a price bar type of Graph Draw Type, can control the coloring of chart bars in several ways.

It can set the sc.Subgraph[].PrimaryColor and sc.Subgraph[].SecondaryColor color values according to the color settings described on this page for each of the corresponding sc.Subgraph[] objects. In this case the Advanced Custom Study needs to set sc.GraphUsesChartColors to 0.

Or the Advanced Custom Study, can set the ACSIL equivalent of the Study Settings >> Subgraphs tab option Use Chart Graphics Settings for Subgraph Colors which is sc.GraphUsesChartColors, to 1 to use the colors defined for price bars in the Graphics Settings window.

Or the Advanced Custom Study, can control the colors of individual chart bars by using the sc.Subgraph[].DataColor arrays. In this case the Advanced Custom Study needs to set sc.GraphUsesChartColors to 0.


*Last modified Friday, 12th August, 2016.