Table of Contents

Class OpenLine

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

Constructors

OpenLine()

public OpenLine()

Properties

CustomSessionStart

[Obsolete]
[Browsable(false)]
public bool CustomSessionStart { get; set; }

Property Value

bool

CustomSessionStartFilter

[Display(ResourceType = typeof(Strings), Name = "CustomSessionStart", GroupName = "Settings", Description = "CustomSessionStartFilterDescription", Order = 10)]
public FilterTimeSpan CustomSessionStartFilter { get; set; }

Property Value

FilterTimeSpan

Days

[Display(ResourceType = typeof(Strings), Name = "Days", GroupName = "Settings", Description = "DaysLookBackDescription", Order = 5)]
[Range(0, 10000)]
public int Days { get; set; }

Property Value

int

ExtendLastLineToRight

[Display(ResourceType = typeof(Strings), Name = "ExtendLast", GroupName = "Drawing", Description = "ExtendLastDescription", Order = 63)]
public bool ExtendLastLineToRight { get; set; }

Property Value

bool

FontSize

[Display(ResourceType = typeof(Strings), Name = "TextSize", GroupName = "Drawing", Description = "FontSizeDescription", Order = 40)]
[Range(1, 200)]
public int FontSize { get; set; }

Property Value

int

LinePen

[Display(ResourceType = typeof(Strings), Name = "OpenLine", GroupName = "Drawing", Description = "PenSettingsDescription", Order = 60)]
public PenSettings LinePen { get; set; }

Property Value

PenSettings

Offset

[Display(ResourceType = typeof(Strings), Name = "OffsetY", GroupName = "Drawing", Description = "LabelOffsetYDescription", Order = 50)]
public int Offset { get; set; }

Property Value

int

OpenCandleText

[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Drawing", Description = "LabelTextDescription", Order = 30)]
public string OpenCandleText { get; set; }

Property Value

string

StartDate

[Obsolete]
[Browsable(false)]
public TimeSpan StartDate { get; set; }

Property Value

TimeSpan

TillTouch

[Display(ResourceType = typeof(Strings), Name = "LineTillTouch", GroupName = "Drawing", Description = "IsLineTillTouchDescription", Order = 62)]
public bool TillTouch { 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.

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.