Table of Contents

Class Zigzag

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

Constructors

Zigzag()

public Zigzag()

Properties

CalcMode

[Display(ResourceType = typeof(Strings), Name = "CalculationMode", GroupName = "CalculationSettings", Description = "CalculationModeDescription", Order = 100)]
public Zigzag.Mode CalcMode { get; set; }

Property Value

Zigzag.Mode

Days

[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "DaysLookBack", Order = 2147483647, Description = "DaysLookBackDescription")]
[Range(0, 1000)]
public int Days { get; set; }

Property Value

int

IgnoreWicks

[Display(ResourceType = typeof(Strings), Name = "IgnoreWicks", GroupName = "CalculationSettings", Description = "IgnoreWicksDescription", Order = 110)]
public bool IgnoreWicks { get; set; }

Property Value

bool

Percentage

[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "RequiredChange", GroupName = "CalculationSettings", Description = "RequiredChangeValueDescription", Order = 120)]
public decimal Percentage { get; set; }

Property Value

decimal

ShowBars

[Display(ResourceType = typeof(Strings), Name = "ShowBars", GroupName = "TextSettings", Description = "ShowCurrentParameterInfoDescription", Order = 250)]
public bool ShowBars { get; set; }

Property Value

bool

ShowDelta

[Display(ResourceType = typeof(Strings), Name = "ShowDelta", GroupName = "TextSettings", Description = "ShowCurrentParameterInfoDescription", Order = 220)]
public bool ShowDelta { get; set; }

Property Value

bool

ShowTicks

[Display(ResourceType = typeof(Strings), Name = "ShowTicks", GroupName = "TextSettings", Description = "ShowCurrentParameterInfoDescription", Order = 240)]
public bool ShowTicks { get; set; }

Property Value

bool

ShowTime

[Display(ResourceType = typeof(Strings), Name = "ShowTime", GroupName = "TextSettings", Description = "ShowCurrentParameterInfoDescription", Order = 260)]
public Zigzag.TimeFormat ShowTime { get; set; }

Property Value

Zigzag.TimeFormat

ShowVolume

[Display(ResourceType = typeof(Strings), Name = "ShowVolume", GroupName = "TextSettings", Description = "ShowCurrentParameterInfoDescription", Order = 230)]
public bool ShowVolume { get; set; }

Property Value

bool

TextColor

[Display(ResourceType = typeof(Strings), Name = "TextColor", GroupName = "TextSettings", Description = "LabelTextColorDescription", Order = 210)]
public Color TextColor { get; set; }

Property Value

Color

TextSize

[Range(1, 100)]
[Display(ResourceType = typeof(Strings), Name = "TextSize", GroupName = "TextSettings", Description = "FontSizeDescription", Order = 200)]
public float TextSize { get; set; }

Property Value

float

VerticalOffset

[Display(ResourceType = typeof(Strings), Name = "VerticalOffset", GroupName = "TextSettings", Description = "LabelOffsetYDescription", Order = 270)]
[Range(0, 1000)]
public int VerticalOffset { 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)

Not in ATAS 8.0.15 yet: available from the next version.

protected override void OnRender(RenderContext context, DrawingLayouts layout)

Parameters

context RenderContext
layout DrawingLayouts