Skip to content

ChartDisplaySettings

Summary

Represents the chart display settings.

Signature

1
public abstract interface ChartDisplaySettings

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
 using cAlgo.API;
 namespace cAlgo
 {
     // You can use this sample indicator to change some of the chart display settings via chart controls
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartDisplaySettingsSample : Indicator
     {
         protected override void Initialize()
         {
             var stackPanel = new StackPanel
             {
                 HorizontalAlignment = HorizontalAlignment.Left,
                 VerticalAlignment = VerticalAlignment.Bottom,
                 BackgroundColor = Color.Gold,
                 Opacity = 0.7,
                 Margin = 5,
                 Orientation = Orientation.Vertical
             };
             var askPriceLineCheckBox = new CheckBox
             {
                 Text = "Ask Price Line",
                 Margin = 5,
                 IsChecked = Chart.DisplaySettings.AskPriceLine
             };
             askPriceLineCheckBox.Click += args => Chart.DisplaySettings.AskPriceLine = args.CheckBox.IsChecked.Value;
             stackPanel.AddChild(askPriceLineCheckBox);
             var bidPriceLineCheckBox = new CheckBox
             {
                 Text = "Bid Price Line",
                 Margin = 5,
                 IsChecked = Chart.DisplaySettings.BidPriceLine
             };
             bidPriceLineCheckBox.Click += args => Chart.DisplaySettings.BidPriceLine = args.CheckBox.IsChecked.Value;
             stackPanel.AddChild(bidPriceLineCheckBox);
             var chartScaleCheckBox = new CheckBox
             {
                 Text = "Chart Scale",
                 Margin = 5,
                 IsChecked = Chart.DisplaySettings.ChartScale
             };
             chartScaleCheckBox.Click += args => Chart.DisplaySettings.ChartScale = args.CheckBox.IsChecked.Value;
             stackPanel.AddChild(chartScaleCheckBox);
             var dealMapCheckBox = new CheckBox
             {
                 Text = "Deal Map",
                 Margin = 5,
                 IsChecked = Chart.DisplaySettings.DealMap
             };
             dealMapCheckBox.Click += args => Chart.DisplaySettings.DealMap = args.CheckBox.IsChecked.Value;
             stackPanel.AddChild(dealMapCheckBox);
             var gridCheckBox = new CheckBox
             {
                 Text = "Grid",
                 Margin = 5,
                 IsChecked = Chart.DisplaySettings.Grid
             };
             gridCheckBox.Click += args => Chart.DisplaySettings.Grid = args.CheckBox.IsChecked.Value;
             stackPanel.AddChild(gridCheckBox);
             var volumeCheckBox = new CheckBox
             {
                 Text = "Volume",
                 Margin = 5,
                 IsChecked = Chart.DisplaySettings.TickVolume
             };
             volumeCheckBox.Click += args => Chart.DisplaySettings.TickVolume = args.CheckBox.IsChecked.Value;
             stackPanel.AddChild(volumeCheckBox);
             Chart.AddControl(stackPanel);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

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