Table of Contents

Class Gaps

Namespace
ATAS.Indicators.Technical
Assembly
ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "GapsIndDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000618858")]
public class Gaps : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
Inheritance
object
Gaps
Implements
Inherited Members
Extension Methods

Constructors

Gaps()

public Gaps()

Properties

AlertBGColor

[Display(ResourceType = typeof(Strings), Name = "BackGround", GroupName = "Alerts", Description = "AlertFillColorDescription")]
public Color AlertBGColor { get; set; }

Property Value

Color

AlertFile

[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "Alerts", Description = "AlertFileDescription")]
public string AlertFile { get; set; }

Property Value

string

AlertForeColor

[Display(ResourceType = typeof(Strings), Name = "FontColor", GroupName = "Alerts", Description = "AlertTextColorDescription")]
public Color AlertForeColor { get; set; }

Property Value

Color

BearlishColor

[Display(ResourceType = typeof(Strings), Name = "BearlishColor", GroupName = "Visualization", Description = "BearishColorDescription")]
public Color BearlishColor { get; set; }

Property Value

Color

BorderWidth

[Range(1, 10)]
[Display(ResourceType = typeof(Strings), Name = "BorderWidth", GroupName = "Visualization", Description = "BorderWidthPixelDescription")]
public int BorderWidth { get; set; }

Property Value

int

BullishColor

[Display(ResourceType = typeof(Strings), Name = "BullishColor", GroupName = "Visualization", Description = "BullishColorDescription")]
public Color BullishColor { get; set; }

Property Value

Color

CloseGapsPartially

[Display(ResourceType = typeof(Strings), Name = "ClosePartially", GroupName = "Settings", Description = "UsePartialGapClosureDescription")]
public bool CloseGapsPartially { get; set; }

Property Value

bool

HideBorder

[Display(ResourceType = typeof(Strings), Name = "HideBorder", GroupName = "Visualization", Description = "HideBorderDescription")]
public bool HideBorder { get; set; }

Property Value

bool

HideGaps

[Display(ResourceType = typeof(Strings), Name = "HideGaps", GroupName = "Visualization", Description = "HideGapsDescription")]
public bool HideGaps { get; set; }

Property Value

bool

LabelColor

[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "Label", Description = "LabelTextColorDescription")]
public Color LabelColor { get; set; }

Property Value

Color

LabelOffsetX

[Display(ResourceType = typeof(Strings), Name = "OffsetX", GroupName = "Label", Description = "LabelOffsetXDescription")]
public int LabelOffsetX { get; set; }

Property Value

int

LabelOffsetY

[Display(ResourceType = typeof(Strings), Name = "OffsetY", GroupName = "Label", Description = "LabelOffsetYDescription")]
public int LabelOffsetY { get; set; }

Property Value

int

LabelSize

[Range(1, 50)]
[Display(ResourceType = typeof(Strings), Name = "Size", GroupName = "Label", Description = "TextSizeDescription")]
public int LabelSize { get; set; }

Property Value

int

LimitMaxGapBodyLength

[Display(ResourceType = typeof(Strings), Name = "LimitMaxGapBodyLength", GroupName = "Settings", Description = "IsLimitMaxLengthDescription")]
public bool LimitMaxGapBodyLength { get; set; }

Property Value

bool

MaxGapBodyLength

[Browsable(false)]
[Obsolete]
public int MaxGapBodyLength { get; set; }

Property Value

int

MaxGapBodyLengthFilter

[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "MaxGapBodyLength", GroupName = "Settings", Description = "MaxLengthDescription")]
public FilterInt MaxGapBodyLengthFilter { get; set; }

Property Value

FilterInt

MinDeviation

[Range(1, 100)]
[Display(ResourceType = typeof(Strings), Name = "MinimalDeviation", GroupName = "Settings", Description = "MinimalGapDeviationDescription")]
public int MinDeviation { get; set; }

Property Value

int

ShowLabel

[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "Label", Description = "IsNeedShowLabelDescription")]
public bool ShowLabel { get; set; }

Property Value

bool

Transparency

[Range(0, 10)]
[Display(ResourceType = typeof(Strings), Name = "Transparency", GroupName = "Visualization", Description = "VisualObjectsTransparencyDescription")]
public int Transparency { get; set; }

Property Value

int

UseAlerts

[Display(ResourceType = typeof(Strings), Name = "UseAlerts", GroupName = "Alerts", Description = "UseAlertsDescription")]
public bool UseAlerts { get; set; }

Property Value

bool

Methods

OnCalculate(int, decimal)

The main indicator calculation method is called for each bar on the history, then it is called on each tick.

protected override void OnCalculate(int bar, decimal value)

Parameters

bar int

Bar number.

value decimal

Input data series value.

OnRecalculate()

The method is executed before a new calculation.

protected override void OnRecalculate()

OnRender(RenderContext, DrawingLayouts)

Override this method for implementing your own data rendering logic.

protected override void OnRender(RenderContext context, DrawingLayouts layout)

Parameters

context RenderContext

The rendering context used to draw on the chart.

layout DrawingLayouts

The layout information for the drawing.