> ## Documentation Index
> Fetch the complete documentation index at: https://docs.luxalgo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Candle Coloring

The candle coloring feature allows the user to change the body color of the candles/bars when using candlesticks or bar charts. Three coloring modes are available, with two of them being based on the previously described signal methodologies.

Candle coloring also works on charts using Heikin-Ashi, Renko, Kagi, line break, point and figure, and range candles.

Each mode can be enabled from the settings in the **candle color mode** dropdown menu.

<img src="https://mintcdn.com/luxalgo/-Cu8R2acNraf_ZS4/public/images/lux-algo/candle-coloring/image547.png?fit=max&auto=format&n=-Cu8R2acNraf_ZS4&q=85&s=7692667d9dcc0112c257a0abd19f7adb" alt="" width="663" height="427" data-path="public/images/lux-algo/candle-coloring/image547.png" />

In order to use candle coloring as properly as possible make sure to disable the **borders** setting in your chart settings.

<img src="https://mintcdn.com/luxalgo/-Cu8R2acNraf_ZS4/public/images/lux-algo/candle-coloring/image72.png?fit=max&auto=format&n=-Cu8R2acNraf_ZS4&q=85&s=7ca94a45139f6146678990af6412ce3c" alt="" width="518" height="215" data-path="public/images/lux-algo/candle-coloring/image72.png" />

### Confirmation Simple

The **confirmation simple** color mode is based on the methodology used by confirmation signals and is the one enabled by default. This mode uses three colors, each one can be interpreted as follows:

* **Green candles:** Strong bullish signal active.
* **Red candles:** Strong bearish signal active.
* **Purple candles:** Normal bullish or bearish signal active.

<img src="https://mintcdn.com/luxalgo/-Cu8R2acNraf_ZS4/public/images/lux-algo/candle-coloring/image398.png?fit=max&auto=format&n=-Cu8R2acNraf_ZS4&q=85&s=d84cae32af93270a975562dd9127f5b1" alt="Confirmation Simple color mode" width="1462" height="721" data-path="public/images/lux-algo/candle-coloring/image398.png" />

<Tip>
  If you need to set an alert based on candle coloring or need to return information on what is the current candle color on an alert message simply use the **Bar Color Value** variable. This variable as three possible values each indicating the following:

  * 1: Candle color is green
  * 0: Candle color is purple
  * -1: Candle color is red

  This variable can be used as input for external indicators as well.
</Tip>

### Confirmation Gradient

The **confirmation gradient** color mode is also based on the algorithm that generates confirmation signals, but will slightly differ from the previously described **confirmation simple** color mode.

Lighter green colors indicate strong bullish variations, while lighter red colors indicate strong bearish variations. Colors closer to purple indicate that the current variation might be a retracement or that the market is ranging.

<img src="https://mintcdn.com/luxalgo/-Cu8R2acNraf_ZS4/public/images/lux-algo/candle-coloring/image93.png?fit=max&auto=format&n=-Cu8R2acNraf_ZS4&q=85&s=a2f0c3e6ec644381ed26292296bf14de" alt="Confirmation Gradient color mode" width="917" height="574" data-path="public/images/lux-algo/candle-coloring/image93.png" />

### Contrarian Gradient

The **contrarian gradient** color mode is based on the contrarian signals algorithm. Stronger green colors indicate an oversold market and a potential reversal, while stronger red colors indicate an overbought market.

<img src="https://mintcdn.com/luxalgo/-Cu8R2acNraf_ZS4/public/images/lux-algo/candle-coloring/contrarian.png?fit=max&auto=format&n=-Cu8R2acNraf_ZS4&q=85&s=dc002f4db0bc69330456eabbec45e164" alt="Contrarian Gradient color mode" width="2114" height="871" data-path="public/images/lux-algo/candle-coloring/contrarian.png" />
