Table of Contents

Class MarginZones

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

Constructors

MarginZones()

public MarginZones()

Properties

AutoPrice

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

Property Value

bool

BaseLineColor

[Browsable(false)]
[Obsolete]
public Color BaseLineColor { get; set; }

Property Value

Color

BaseLineFilter

[Display(ResourceType = typeof(Strings), Name = "BaseLine", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 60)]
public FilterColor BaseLineFilter { get; set; }

Property Value

FilterColor

CustomPrice

[Browsable(false)]
[Obsolete]
public decimal CustomPrice { get; set; }

Property Value

decimal

CustomPriceFilter

[Display(ResourceType = typeof(Strings), Name = "CustomPrice", GroupName = "Settings", Description = "CustomPriceFilterDescription", Order = 40)]
public Filter CustomPriceFilter { get; set; }

Property Value

Filter

Direction

[Display(ResourceType = typeof(Strings), Name = "DirectionOfZone", GroupName = "Visualization", Description = "ZoneDirectionDescription", Order = 10)]
public MarginZones.ZoneDirection Direction { get; set; }

Property Value

MarginZones.ZoneDirection

Margin

[Parameter]
[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Margin", GroupName = "Settings", Description = "MarginValueDescription", Order = 10)]
public int Margin { get; set; }

Property Value

int

ShowBaseLine

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

Property Value

bool

ShowZon50

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

Property Value

bool

ShowZone100

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

Property Value

bool

ShowZone150

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

Property Value

bool

ShowZone200

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

Property Value

bool

ShowZone25

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

Property Value

bool

ShowZone75

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

Property Value

bool

TickCost

[Parameter]
[Range(1E-06, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "TickCost", GroupName = "Settings", Description = "TickCostValueDescription", Order = 20)]
public decimal TickCost { get; set; }

Property Value

decimal

Zone100Filter

[Display(ResourceType = typeof(Strings), Name = "Zone100", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 30)]
public FilterColor Zone100Filter { get; set; }

Property Value

FilterColor

Zone100LineColor

[Browsable(false)]
[Obsolete]
public Color Zone100LineColor { get; set; }

Property Value

Color

Zone150Filter

[Display(ResourceType = typeof(Strings), Name = "Zone150", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 20)]
public FilterColor Zone150Filter { get; set; }

Property Value

FilterColor

Zone150LineColor

[Browsable(false)]
[Obsolete]
public Color Zone150LineColor { get; set; }

Property Value

Color

Zone200Filter

[Display(ResourceType = typeof(Strings), Name = "Zone200", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 15)]
public FilterColor Zone200Filter { get; set; }

Property Value

FilterColor

Zone200LineColor

[Browsable(false)]
[Obsolete]
public Color Zone200LineColor { get; set; }

Property Value

Color

Zone25Filter

[Display(ResourceType = typeof(Strings), Name = "Zone25", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 60)]
public FilterColor Zone25Filter { get; set; }

Property Value

FilterColor

Zone25LineColor

[Browsable(false)]
[Obsolete]
public Color Zone25LineColor { get; set; }

Property Value

Color

Zone50Filter

[Display(ResourceType = typeof(Strings), Name = "Zone50", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 50)]
public FilterColor Zone50Filter { get; set; }

Property Value

FilterColor

Zone50LineColor

[Browsable(false)]
[Obsolete]
public Color Zone50LineColor { get; set; }

Property Value

Color

Zone75Filter

[Display(ResourceType = typeof(Strings), Name = "Zone75", GroupName = "Visualization", Description = "EnabledColorElementDescription", Order = 40)]
public FilterColor Zone75Filter { get; set; }

Property Value

FilterColor

Zone75LineColor

[Browsable(false)]
[Obsolete]
public Color Zone75LineColor { get; set; }

Property Value

Color

ZoneWidth

[Display(ResourceType = typeof(Strings), Name = "ZoneWidth", GroupName = "Settings", Description = "DaysLookBackDescription", Order = 30)]
public int ZoneWidth { 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.

OnInitialize()

The method is executed before the first calculation.

protected override void OnInitialize()

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.