---
id: "T:cAlgo.API.ChartTemplateColorSettings"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartTemplateColorSettings (interface)

Represents the chart template Color Settings.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.ColorSettings).

## Definition

```csharp
public interface ChartTemplateColorSettings
```

Available since cAlgo.API 5.6.

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo.Robots;

public partial class ChartTemplate : Robot
{
    protected override void OnStart()
    {
        var template = ChartTemplates.Get("Template Name");

        if (template is null)
        {
            Print("Template not found");
            return;
        }

        template.ColorSettings.AskPriceLineColor = Color.Red;
        template.ColorSettings.BidPriceLineColor = Color.Red;
        template.ColorSettings.BackgroundColor = Color.Red;
        template.ColorSettings.BearFillColor = Color.Red;
        template.ColorSettings.BearOutlineColor = Color.Red;
        template.ColorSettings.BullFillColor = Color.Red;
        template.ColorSettings.BullOutlineColor = Color.Red;
        template.ColorSettings.BuyColor = Color.Red;
        template.ColorSettings.ForegroundColor = Color.Red;
        template.ColorSettings.GridLinesColor = Color.Red;
        template.ColorSettings.LosingDealColor = Color.Red;
        template.ColorSettings.PeriodSeparatorColor = Color.Red;
        template.ColorSettings.SellColor = Color.Red;
        template.ColorSettings.TickVolumeColor = Color.Red;
        template.ColorSettings.WinningDealColor = Color.Red;
        template.ColorSettings.AreaFillColor = Color.Red;
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        template = api.ChartTemplates.Get("Template Name")

        if template is None:
            print("Template not found")
            return

        template.ColorSettings.AskPriceLineColor = Color.Red
        template.ColorSettings.BidPriceLineColor = Color.Red
        template.ColorSettings.BackgroundColor = Color.Red
        template.ColorSettings.BearFillColor = Color.Red
        template.ColorSettings.BearOutlineColor = Color.Red
        template.ColorSettings.BullFillColor = Color.Red
        template.ColorSettings.BullOutlineColor = Color.Red
        template.ColorSettings.BuyColor = Color.Red
        template.ColorSettings.ForegroundColor = Color.Red
        template.ColorSettings.GridLinesColor = Color.Red
        template.ColorSettings.LosingDealColor = Color.Red
        template.ColorSettings.PeriodSeparatorColor = Color.Red
        template.ColorSettings.SellColor = Color.Red
        template.ColorSettings.TickVolumeColor = Color.Red
        template.ColorSettings.WinningDealColor = Color.Red
        template.ColorSettings.AreaFillColor = Color.Red
```

config.json:

```json
{
  "AccessRights": "None",
  "AddIndicators": true
}
```

## Properties

- `Color AreaFillColor {get; set;}` — Gets or sets the color of area chart fill. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/AreaFillColor/index.md)
- `Color AskPriceLineColor {get; set;}` — Gets or sets the color of the ask price line. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/AskPriceLineColor/index.md)
- `Color BackgroundColor {get; set;}` — Gets or sets the color of the chart background. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BackgroundColor/index.md)
- `Color BearFillColor {get; set;}` — Gets or sets the color of the bear candle fill. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BearFillColor/index.md)
- `Color BearOutlineColor {get; set;}` — Gets or sets the color of the bear candle or bar outline. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BearOutlineColor/index.md)
- `Color BidPriceLineColor {get; set;}` — Gets or sets the color of the bid price line. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BidPriceLineColor/index.md)
- `Color BullFillColor {get; set;}` — Gets or sets the color of the bull candle fill. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BullFillColor/index.md)
- `Color BullOutlineColor {get; set;}` — Gets or sets the color of the bull candle or bar outline. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BullOutlineColor/index.md)
- `Color BuyColor {get; set;}` — Gets or sets the color of Buy positions and orders. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/BuyColor/index.md)
- `Color ForegroundColor {get; set;}` — Gets or sets the color of the chart foreground. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/ForegroundColor/index.md)
- `Color GridLinesColor {get; set;}` — Gets or sets the color of the grid lines. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/GridLinesColor/index.md)
- `Color LosingDealColor {get; set;}` — Gets or sets the color of the losing deal. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/LosingDealColor/index.md)
- `Color PeriodSeparatorColor {get; set;}` — Gets or sets the color of the period separator. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/PeriodSeparatorColor/index.md)
- `Color SellColor {get; set;}` — Gets or sets the color of Sell order positions and orders. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/SellColor/index.md)
- `Color TickVolumeColor {get; set;}` — Gets or sets the color of the tick volume. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/TickVolumeColor/index.md)
- `Color WinningDealColor {get; set;}` — Gets or sets the color of the winning deal. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateColorSettings/WinningDealColor/index.md)

