Table of Contents

Class BlockMA

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

Constructors

BlockMA()

public BlockMA()

Properties

Multiplier1

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Multiplier1", GroupName = "Settings", Description = "Multiplier1Description", Order = 110)]
[Range(0.0001, 100000)]
public decimal Multiplier1 { get; set; }

Property Value

decimal

Multiplier2

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Multiplier2", GroupName = "Settings", Description = "Multiplier2Description", Order = 120)]
[Range(0.0001, 100000)]
public decimal Multiplier2 { get; set; }

Property Value

decimal

Period

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

Property Value

int

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