Skip to content

ChartDisplaySettingsEventArgs

Summary

Provides data for the chart display settings event.

Signature

1
public class ChartDisplaySettingsEventArgs

Namespace

cAlgo.API

Properties

Name Description
Chart { get; } Gets the chart.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the Chart ChartDisplaySettingsEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartDisplaySettingsEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.DisplaySettingsChanged += Chart_DisplaySettingsChanged;
         }
         private void Chart_DisplaySettingsChanged(ChartDisplaySettingsEventArgs obj)
         {
             Print("Chart {0} {1} Display settings changed", obj.Chart.SymbolName, obj.Chart.TimeFrame);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

Last update: June 26, 2022

Comments