Table of Contents

Class EMA

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

Constructors

EMA()

public EMA()

Properties

AlertFile

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

Property Value

string

AlertSensitivity

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

Property Value

int

BackgroundColor

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

Property Value

Color

BearishColor

[Display(ResourceType = typeof(Strings), Name = "BearlishColor", GroupName = "Visualization", Description = "BearishColorDescription", Order = 220)]
public Color BearishColor { get; set; }

Property Value

Color

BullishColor

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

Property Value

Color

ColoredDirection

[Display(ResourceType = typeof(Strings), Name = "ColoredDirection", GroupName = "Visualization", Description = "ColoredDirectionDescription", Order = 200)]
public bool ColoredDirection { get; set; }

Property Value

bool

FontColor

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

Property Value

Color

Period

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

Property Value

int

RepeatAlert

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

Property Value

bool

UseAlerts

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