Table of Contents

Class AverageDelta

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

Constructors

AverageDelta()

public AverageDelta()

Properties

CalcType

[Display(ResourceType = typeof(Strings), Name = "CalculationMode", GroupName = "Calculation", Description = "CalculationModeDescription")]
public AverageDelta.CalculationType CalcType { get; set; }

Property Value

AverageDelta.CalculationType

NegColor

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

Property Value

Color

Period

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

Property Value

int

PosColor

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

Property Value

Color

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()