Table of Contents

Class MACD

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

Constructors

MACD()

public MACD()

Properties

LongPeriod

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

Property Value

int

ShortPeriod

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

Property Value

int

SignalPeriod

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "SignalPeriod", GroupName = "Settings", Description = "SignalPeriodDescription", Order = 20)]
[Range(1, 10000)]
public int SignalPeriod { 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.