IndicatorAreaEventArgs
Summary
The arguments for the indicator area event.
Signature
| public abstract class IndicatorAreaEventArgs
|
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
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
Properties
Chart
Summary
Gets the chart.
Signature
| public Chart Chart {get;}
|
Return Value
Chart
Area
Summary
Gets the area.
Signature
| public IndicatorArea Area {get;}
|
Return Value
IndicatorArea
Last update: November 30, 2023