Table of Contents

Class WMA

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

Constructors

WMA()

public WMA()

Properties

AlertFile

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

Property Value

string

AlertSensitivity

[Display(ResourceType = typeof(Strings), Name = "ApproximationFilter", GroupName = "ApproximationAlert", Description = "ApproximationFilterDescription", Order = 320)]
[Range(0, 100000)]
public int AlertSensitivity { get; set; }

Property Value

int

BackgroundColor

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

Property Value

Color

FontColor

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

Property Value

Color

Period

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "Common", Description = "PeriodDescription", Order = 20)]
[Range(1, 10000)]
public int Period { get; set; }

Property Value

int

RepeatAlert

[Display(ResourceType = typeof(Strings), Name = "RepeatAlert", GroupName = "ApproximationAlert", Description = "RepeatAlertDescription", Order = 310)]
[Range(0, 100000)]
public bool RepeatAlert { get; set; }

Property Value

bool

UseAlerts

[Display(ResourceType = typeof(Strings), Name = "UseAlerts", GroupName = "ApproximationAlert", Description = "UseAlertsDescription", Order = 300)]
public bool UseAlerts { 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.