Skip to content

ChartTemplateDisplaySettings

Summary

Represents the chart template display Settings.

Signature

1
public abstract interface ChartTemplateDisplaySettings

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
32
 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.DisplaySettings.AskPriceLine = true;
         template.DisplaySettings.Bars = true;
         template.DisplaySettings.BidPriceLine = true;
         template.DisplaySettings.ChartScale = true;
         template.DisplaySettings.DealMap = true;
         template.DisplaySettings.Grid = true;
         template.DisplaySettings.IndicatorTitles = true;
         template.DisplaySettings.MarketSentiment = true;
         template.DisplaySettings.Orders = true;
         template.DisplaySettings.PeriodSeparators = true;
         template.DisplaySettings.Positions = true;
         template.DisplaySettings.PriceAlerts = true;
         template.DisplaySettings.PriceAxisOverlayButtons = true;
         template.DisplaySettings.QuickTradeButtons = true;
         template.DisplaySettings.Targets = true;
         template.DisplaySettings.TickVolume = true;
         template.DisplaySettings.AddRobotButton = true;
     }
 }
 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
 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.DisplaySettings.AskPriceLine = True
         template.DisplaySettings.Bars = True
         template.DisplaySettings.BidPriceLine = True
         template.DisplaySettings.ChartScale = True
         template.DisplaySettings.DealMap = True
         template.DisplaySettings.Grid = True
         template.DisplaySettings.IndicatorTitles = True
         template.DisplaySettings.MarketSentiment = True
         template.DisplaySettings.Orders = True
         template.DisplaySettings.PeriodSeparators = True
         template.DisplaySettings.Positions = True
         template.DisplaySettings.PriceAlerts = True
         template.DisplaySettings.PriceAxisOverlayButtons = True
         template.DisplaySettings.QuickTradeButtons = True
         template.DisplaySettings.Targets = True
         template.DisplaySettings.TickVolume = True
         template.DisplaySettings.AddRobotButton = True

See Also

Properties

Positions

Summary

Defines if the Positions are displayed on the chart.

Signature

1
public abstract bool Positions {get; set;}

Return Value

bool

Orders

Summary

Defines if the Orders are displayed on the chart.

Signature

1
public abstract bool Orders {get; set;}

Return Value

bool

BidPriceLine

Summary

Defines if the Bid Price Line is displayed on the chart.

Signature

1
public abstract bool BidPriceLine {get; set;}

Return Value

bool

AskPriceLine

Summary

Defines if the Ask Price Line is displayed on the chart.

Signature

1
public abstract bool AskPriceLine {get; set;}

Return Value

bool

Grid

Summary

Defines if the Grid is displayed on the chart background.

Signature

1
public abstract bool Grid {get; set;}

Return Value

bool

Related Tutorials

PeriodSeparators

Summary

Defines if the Period Separators are displayed on the chart.

Signature

1
public abstract bool PeriodSeparators {get; set;}

Return Value

bool

TickVolume

Summary

Defines if the Tick Volume is displayed on the chart.

Signature

1
public abstract bool TickVolume {get; set;}

Return Value

bool

DealMap

Summary

Defines if the Deal Map is displayed on the chart.

Signature

1
public abstract bool DealMap {get; set;}

Return Value

bool

ChartScale

Summary

Defines if the Chart Scale is displayed on the chart.

Signature

1
public abstract bool ChartScale {get; set;}

Return Value

bool

PriceAxisOverlayButtons

Summary

Defines if the price axis overlays buttons are visible on the chart.

Signature

1
public abstract bool PriceAxisOverlayButtons {get; set;}

Return Value

bool

PriceAlerts

Summary

Defines if the Price Alerts are visible on the chart.

Signature

1
public abstract bool PriceAlerts {get; set;}

Return Value

bool

MarketSentiment

Summary

Defines if the Market Sentiment is visible on the chart.

Signature

1
public abstract bool MarketSentiment {get; set;}

Return Value

bool

Targets

Summary

Defines if the Target is visible on the chart.

Signature

1
public abstract bool Targets {get; set;}

Return Value

bool

QuickTradeButtons

Summary

Defines if the QuickTrade buttons are visible on the chart.

Signature

1
public abstract bool QuickTradeButtons {get; set;}

Return Value

bool

IndicatorTitles

Summary

Defines if the Indicator Titles are displayed on the chart.

Signature

1
public abstract bool IndicatorTitles {get; set;}

Return Value

bool

Bars

Summary

Defines if the Bars is displayed on the chart.

Signature

1
public abstract bool Bars {get; set;}

Return Value

bool

Related Tutorials

ChartType

Summary

Gets or sets the type of the chart for chart template.

Signature

1
public abstract ChartType ChartType {get; set;}

Return Value

ChartType

ZoomLevel

Summary

Gets or sets the chart zoom percent value for chart template. Valid values are from 5 to 500 with a step of 5, as can be seen on UI in thecharts Zoom control.

Signature

1
public abstract int ZoomLevel {get; set;}

Return Value

int

AddRobotButton

Summary

Defines if the Add cBot button is displayed on the chart.

Signature

1
public abstract bool AddRobotButton {get; set;}

Return Value

bool