Skip to content

ChartZoomEventArgs

Summary

Provides data for the chart type change event.

Signature

1
public class ChartZoomEventArgs

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 ChartZoomEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartZoomEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.ZoomChanged += Chart_ZoomChanged;
         }
         private void Chart_ZoomChanged(ChartZoomEventArgs obj)
         {
             var text = string.Format("Chart Zoom Level Changed To: {0}", obj.Chart.ZoomLevel);
             Chart.DrawStaticText("zoom", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: November 25, 2022

Comments