Skip to content

ChartObjectsAddedEventArgs

Summary

Provides data for the adding chart objects event.

Signature

1
public class ChartObjectsAddedEventArgs : 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 ChartObjectsAddedEventArgs
     // ChartObjectsAddedEventArgs is derived from ChartObjectsEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartObjectsAddedEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.ObjectsAdded += Chart_ObjectsAdded; ;
         }
         private void Chart_ObjectsAdded(ChartObjectsAddedEventArgs obj)
         {
             Print("{0} objects added to chart", obj.ChartObjects.Count);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: July 1, 2022

Comments