Skip to content

IndicatorAreaEventArgs

Summary

The arguments for the indicator area event.

Signature

1
public abstract class IndicatorAreaEventArgs

Namespace

cAlgo.API

Properties

Name Description
Chart { get; } Gets the chart.
Area { get; } Gets the area.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the IndicatorAreaEventArgs
     // IndicatorAreaEventArgs is the base class of IndicatorAreaAddedEventArgs and IndicatorAreaRemovedEventArgs
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class IndicatorAreaEventArgsSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.IndicatorAreaAdded += Chart_IndicatorAreaAdded;
             Chart.IndicatorAreaRemoved += Chart_IndicatorAreaRemoved;
         }
         private void Chart_IndicatorAreaRemoved(IndicatorAreaRemovedEventArgs obj)
         {
             var indicatorAreaEventArgs = obj as IndicatorAreaEventArgs;
         }
         private void Chart_IndicatorAreaAdded(IndicatorAreaAddedEventArgs obj)
         {
             var indicatorAreaEventArgs = obj as IndicatorAreaEventArgs;
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: July 1, 2022

Comments