Table of Contents

Class MaxLevels

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

Constructors

MaxLevels()

public MaxLevels()

Properties

AlertBgColor

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

Property Value

Color

AlertFile

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

Property Value

string

AlertForeColor

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

Property Value

Color

AxisTextColor

[Display(ResourceType = typeof(Strings), GroupName = "Visualization", Name = "AxisTextColor", Description = "AxisTextColorDescription", Order = 50)]
public Color AxisTextColor { get; set; }

Property Value

Color

Color

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

Property Value

Color

CustomLabel

[Display(ResourceType = typeof(Strings), GroupName = "Label", Name = "CustomLabel", Description = "LabelTextDescription", Order = 54)]
public string CustomLabel { get; set; }

Property Value

string

FontSize

[Range(7, 100)]
[Display(ResourceType = typeof(Strings), GroupName = "Label", Name = "Size", Description = "FontSizeDescription", Order = 70)]
public int FontSize { get; set; }

Property Value

int

LabelOffset

[Display(ResourceType = typeof(Strings), GroupName = "Label", Name = "LabelOffset", Description = "LabelOffsetXDescription", Order = 51)]
[Range(0, 10000)]
public int LabelOffset { get; set; }

Property Value

int

Length

[Display(ResourceType = typeof(Strings), GroupName = "Visualization", Name = "Length", Description = "LineLengthDescription", Order = 45)]
[Range(1, 10000)]
public int Length { get; set; }

Property Value

int

Period

[Parameter]
[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "Period", Description = "ProfilePeriodDescription", Order = 10)]
public FixedProfilePeriods Period { get; set; }

Property Value

FixedProfilePeriods

ShowText

[Display(ResourceType = typeof(Strings), GroupName = "Label", Name = "Text", Description = "IsNeedShowLabelDescription", Order = 52)]
public bool ShowText { get; set; }

Property Value

bool

ShowValue

[Display(ResourceType = typeof(Strings), GroupName = "Label", Name = "Value", Description = "ShowValueOnLabelDescription", Order = 55)]
public bool ShowValue { get; set; }

Property Value

bool

TextColor

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

Property Value

Color

TradingSession

[Parameter]
[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "TradingSession", Description = "TradingSessionDescription", Order = 15)]
[ComboBoxEditor(typeof(MaxLevels.TradingSessionsSource), DisplayMember = "Name", ValueMember = "Id", SelectItemWithNullValue = true)]
public long? TradingSession { get; set; }

Property Value

long?

Type

[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "Type", Description = "SourceTypeDescription", Order = 20)]
public MaxLevels.MaxLevelType Type { get; set; }

Property Value

MaxLevels.MaxLevelType

UseAlert

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

Property Value

bool

Width

[Display(ResourceType = typeof(Strings), GroupName = "Visualization", Name = "Width", Description = "LineWidthDescription", Order = 40)]
[Range(1, 100)]
public int Width { get; set; }

Property Value

int

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.

OnRender(RenderContext, DrawingLayouts)

Added in ATAS 8.0.15.

protected override void OnRender(RenderContext context, DrawingLayouts layout)

Parameters

context RenderContext
layout DrawingLayouts