Table of Contents

Class MovingAverage

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

Constructors

MovingAverage()

public MovingAverage()

Properties

AlertFile

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

Property Value

string

AlertSensitivity

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

Property Value

int

BackgroundColor

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

Property Value

Color

BearishColor

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

Property Value

Color

BullishColor

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

Property Value

Color

ColoredDirection

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

Property Value

bool

FontColor

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

Property Value

Color

MovType

[Display(ResourceType = typeof(Strings), Name = "MovingType", GroupName = "Settings", Description = "CalculationModeDescription")]
public MovingAverage.MovingType MovType { get; set; }

Property Value

MovingAverage.MovingType

Period

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

Property Value

int

RepeatAlert

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

Property Value

bool

UseAlerts

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

OnRecalculate()

The method is executed before a new calculation.

protected override void OnRecalculate()