ChartTemplateColorSettings
Summary
Represents the chart template Color Settings.
Signature
| public abstract interface ChartTemplateColorSettings
|
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 | using cAlgo.API;
namespace cAlgo.Robots;
[Robot(AccessRights = AccessRights.None, AddIndicators = true)]
public 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;
}
}
|
See Also
Properties
BackgroundColor
Summary
Gets or sets the color of the chart background.
Signature
| public abstract Color BackgroundColor {get; set;}
|
Return Value
Color
ForegroundColor
Summary
Gets or sets the color of the chart foreground.
Signature
| public abstract Color ForegroundColor {get; set;}
|
Return Value
Color
GridLinesColor
Summary
Gets or sets the color of the grid lines.
Signature
| public abstract Color GridLinesColor {get; set;}
|
Return Value
Color
PeriodSeparatorColor
Summary
Gets or sets the color of the period separator.
Signature
| public abstract Color PeriodSeparatorColor {get; set;}
|
Return Value
Color
BullOutlineColor
Summary
Gets or sets the color of the bull candle or bar outline.
Signature
| public abstract Color BullOutlineColor {get; set;}
|
Return Value
Color
BearOutlineColor
Summary
Gets or sets the color of the bear candle or bar outline.
Signature
| public abstract Color BearOutlineColor {get; set;}
|
Return Value
Color
BullFillColor
Summary
Gets or sets the color of the bull candle fill.
Signature
| public abstract Color BullFillColor {get; set;}
|
Return Value
Color
BearFillColor
Summary
Gets or sets the color of the bear candle fill.
Signature
| public abstract Color BearFillColor {get; set;}
|
Return Value
Color
TickVolumeColor
Summary
Gets or sets the color of the tick volume.
Signature
| public abstract Color TickVolumeColor {get; set;}
|
Return Value
Color
WinningDealColor
Summary
Gets or sets the color of the winning deal.
Signature
| public abstract Color WinningDealColor {get; set;}
|
Return Value
Color
LosingDealColor
Summary
Gets or sets the color of the losing deal.
Signature
| public abstract Color LosingDealColor {get; set;}
|
Return Value
Color
AskPriceLineColor
Summary
Gets or sets the color of the ask price line.
Signature
| public abstract Color AskPriceLineColor {get; set;}
|
Return Value
Color
BidPriceLineColor
Summary
Gets or sets the color of the bid price line.
Signature
| public abstract Color BidPriceLineColor {get; set;}
|
Return Value
Color
BuyColor
Summary
Gets or sets the color of Buy positions and orders.
Signature
| public abstract Color BuyColor {get; set;}
|
Return Value
Color
SellColor
Summary
Gets or sets the color of Sell order positions and orders.
Signature
| public abstract Color SellColor {get; set;}
|
Return Value
Color
AreaFillColor
Summary
Gets or sets the color of area chart fill.
Signature
| public abstract Color AreaFillColor {get; set;}
|
Return Value
Color