Skip to content

ChartTypeEventArgs

Summary

Provides data for the chart type chage event.

Signature

1
public class ChartTypeEventArgs

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
21
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the Chart ChartTypeEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartTypeEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.ChartTypeChanged += Chart_ChartTypeChanged;
         }
         private void Chart_ChartTypeChanged(ChartTypeEventArgs obj)
         {
             var text = string.Format("Chart Type Changed To: {0}", obj.Chart.ChartType);
             Chart.DrawStaticText("type", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: July 1, 2022

Comments