Skip to content

ChartObjectsRemovedEventArgs

Summary

Provides data for the removing chart objects event.

Signature

1
public class ChartObjectsRemovedEventArgs : ChartObjectsEventArgs

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
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the Chart ChartObjectsRemovedEventArgs
     // ChartObjectsRemovedEventArgs is derived from ChartObjectsEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartObjectsRemovedEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.ObjectsRemoved += Chart_ObjectsRemoved;
         }
         private void Chart_ObjectsRemoved(ChartObjectsRemovedEventArgs obj)
         {
             Print("{0} objects removed from chart", obj.ChartObjects.Count);
         }
         public override void Calculate(int index)
         {
         }
     }
 }