Table of Contents

Class MaDifference

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

Constructors

MaDifference()

public MaDifference()

Properties

NegColor

[Display(ResourceType = typeof(Strings), Name = "Down", GroupName = "Drawing", Description = "NegativeValueColorDescription", Order = 620)]
public Color NegColor { get; set; }

Property Value

Color

Period1

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

Property Value

int

Period2

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "SMA2", GroupName = "Settings", Description = "PeriodDescription", Order = 110)]
[Range(1, 10000)]
public int Period2 { get; set; }

Property Value

int

PosColor

[Display(ResourceType = typeof(Strings), Name = "Up", GroupName = "Drawing", Description = "PositiveValueColorDescription", Order = 610)]
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.