Table of Contents

Class FairValueGap

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

Constructors

FairValueGap()

public FairValueGap()

Properties

BearishColorCurrentTF

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

Property Value

Color

BearishColorHigherTF

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

Property Value

Color

BullishColorCurrentTF

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

Property Value

Color

BullishColorHigherTF

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

Property Value

Color

HideOlds

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

Property Value

bool

HigherTimeframe

[Display(ResourceType = typeof(Strings), Name = "HigherTimeFrame", GroupName = "Settings", Description = "SelectTimeframeDescription")]
public FairValueGap.TimeFrameScale HigherTimeframe { get; set; }

Property Value

FairValueGap.TimeFrameScale

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

MidPointColor

[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "Midpoint", Description = "LineColorDescription")]
public Color MidPointColor { get; set; }

Property Value

Color

MidPointWidth

[Range(1, 10)]
[Display(ResourceType = typeof(Strings), Name = "Width", GroupName = "Midpoint", Description = "LineWidthDescription")]
public int MidPointWidth { get; set; }

Property Value

int

MidpointTouch

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

Property Value

bool

ShowCurrentTF

[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "CurrentTimeFrame", Description = "ShowGapsDescription")]
public bool ShowCurrentTF { get; set; }

Property Value

bool

ShowHigherTF

[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "HigherTimeFrame", Description = "ShowGapsDescription")]
public bool ShowHigherTF { get; set; }

Property Value

bool

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 = "Settings", Description = "VisualObjectsTransparencyDescription")]
public int Transparency { get; set; }

Property Value

int

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.