Table of Contents

Class DynamicLevels

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

Constructors

DynamicLevels()

public DynamicLevels()

Properties

AlertBGColor

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

Property Value

Color

AlertFile

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

Property Value

string

AlertForeColor

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

Property Value

Color

ApproximationFilter

[Display(ResourceType = typeof(Strings), Name = "ApproximationFilter", GroupName = "Alerts", Description = "ApproximationFilterDescription", Order = 310)]
public int ApproximationFilter { get; set; }

Property Value

int

Days

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

Property Value

int

EffectiveTpoSubPeriodMinutes

[Browsable(false)]
[IgnoreDataMember]
public int EffectiveTpoSubPeriodMinutes { get; }

Property Value

int

Filter

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

Property Value

decimal

FilterMoney

[Browsable(false)]
public string? FilterMoney { get; set; }

Property Value

string

MinimumFilter

[Display(ResourceType = typeof(Strings), Name = "Filter", GroupName = "Filters", Description = "MinimumFilterDescription", Order = 130)]
public VolumeFilter MinimumFilter { get; set; }

Property Value

VolumeFilter

PeriodFrame

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "Filters", Description = "PeriodTypeDescription", Order = 120)]
public DynamicLevels.Period PeriodFrame { get; set; }

Property Value

DynamicLevels.Period

ShowVolumes

[VisibleWhen("Type", new object[] { DynamicLevels.MiddleClusterType.Bid, DynamicLevels.MiddleClusterType.Ask, DynamicLevels.MiddleClusterType.Delta, DynamicLevels.MiddleClusterType.Volume, DynamicLevels.MiddleClusterType.Tick, DynamicLevels.MiddleClusterType.Time })]
[Display(ResourceType = typeof(Strings), Name = "ShowVolume", GroupName = "Other", Description = "ShowVolumesDescription", Order = 200)]
public bool ShowVolumes { get; set; }

Property Value

bool

TextColor

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

Property Value

Color

TpoSubPeriodMinutes

[VisibleWhen("Type", new object[] { DynamicLevels.MiddleClusterType.TPO })]
[Range(1, 1440)]
[Display(ResourceType = typeof(Strings), Name = "TPOSubPeriodMinutes", GroupName = "Filters", Description = "TPOSubPeriodDescription", Order = 115)]
public int TpoSubPeriodMinutes { get; set; }

Property Value

int

Type

[Display(ResourceType = typeof(Strings), Name = "Type", GroupName = "Filters", Description = "SourceTypeDescription", Order = 110)]
public DynamicLevels.MiddleClusterType Type { get; set; }

Property Value

DynamicLevels.MiddleClusterType

UseAlerts

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

Property Value

bool

UseApproximationAlert

[Display(ResourceType = typeof(Strings), Name = "ApproximationAlert", GroupName = "Alerts", Description = "IsApproximationAlertDescription", Order = 300)]
public bool UseApproximationAlert { get; set; }

Property Value

bool

UsePocTouchAlert

[Display(ResourceType = typeof(Strings), Name = "PocAlert", GroupName = "Alerts", Description = "UsePocTouchAlertDescription", Order = 330)]
public bool UsePocTouchAlert { get; set; }

Property Value

bool

UseVahTouchAlert

[Display(ResourceType = typeof(Strings), Name = "VahAlert", GroupName = "Alerts", Description = "UseVAHTouchAlertDescription", Order = 350)]
public bool UseVahTouchAlert { get; set; }

Property Value

bool

UseValTouchAlert

[Display(ResourceType = typeof(Strings), Name = "ValAlert", GroupName = "Alerts", Description = "UseVALTouchAlertDescription", Order = 340)]
public bool UseValTouchAlert { get; set; }

Property Value

bool

VizualizationType

[VisibleWhen("Type", new object[] { DynamicLevels.MiddleClusterType.Bid, DynamicLevels.MiddleClusterType.Ask, DynamicLevels.MiddleClusterType.Delta, DynamicLevels.MiddleClusterType.Volume, DynamicLevels.MiddleClusterType.Tick, DynamicLevels.MiddleClusterType.Time })]
[Display(ResourceType = typeof(Strings), Name = "VolumeVisualizationType", GroupName = "Other", Description = "CalculationModeDescription", Order = 210)]
public DynamicLevels.VolumeVizualizationType VizualizationType { get; set; }

Property Value

DynamicLevels.VolumeVizualizationType

Methods

OnApplyDefaultColors()

Invoked to apply default colors to the drawing elements.

protected override void OnApplyDefaultColors()

Remarks

This method can be overridden in derived classes to customize or set default color values for the drawing elements. When this method is called, it is an opportunity for the derived class to apply its own default color scheme to the drawing elements used in the specific implementation.

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.

OnFinishRecalculate()

The method is executed after the end of the calculation.

protected override void OnFinishRecalculate()

OnInitialize()

The method is executed before the first calculation.

protected override void OnInitialize()

OnNewTrades(IEnumerable<MarketDataArg>)

Handles a collection of new trade data represented by MarketDataArg objects.

protected override void OnNewTrades(IEnumerable<MarketDataArg> trades)

Parameters

trades IEnumerable<MarketDataArg>

An IEnumerable of MarketDataArg representing the new trade data.

OnRecalculate()

The method is executed before a new calculation.

protected override void OnRecalculate()

OnValuationChanged()

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

protected override void OnValuationChanged()

ToString()

Converts the current instance of the indicator to its string representation.

public override string ToString()

Returns

string

A string representation of the indicator.