Skip to content

IndicatorAreaEventArgs.Area

property · IndicatorAreaEventArgs · cAlgo.API

DesktopCLICloud

Gets the area.

Definition

public IndicatorArea Area {get;}
indicatorAreaEventArgs.Area: IndicatorArea

Returns IndicatorArea

Examples

protected override void OnStart()
{
    Chart.IndicatorAreaAdded += OnIndicatorAreaAdded;
}

private void OnIndicatorAreaAdded(IndicatorAreaAddedEventArgs args)
{
    args.Area.DrawStaticText("areaInfo", "New indicator area", VerticalAlignment.Top, HorizontalAlignment.Left, Color.Gray);
}
def on_start(self):
    api.Chart.IndicatorAreaAdded += self.on_indicator_area_added

def on_indicator_area_added(self, args):
    args.Area.DrawStaticText("areaInfo", "New indicator area", VerticalAlignment.Top, HorizontalAlignment.Left, Color.Gray)