Skip to content

ChartObjectsUpdatedEventArgs

Summary

Provides data for the chart objects update event.

Signature

1
public class ChartObjectsUpdatedEventArgs : 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 ChartObjectsUpdatedEventArgs
     // Draw an object, and then modify it
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartObjectsUpdatedEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.ObjectsUpdated += Chart_ObjectsUpdated;
         }
         private void Chart_ObjectsUpdated(ChartObjectsUpdatedEventArgs obj)
         {
             Print("Updated objects #: {0}", obj.ChartObjects.Count);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

Last update: July 1, 2022

Comments