Table of Contents

Class Momentum

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

Constructors

Momentum()

public Momentum()

Properties

Period

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

Property Value

int

ShowSma

[Display(ResourceType = typeof(Strings), Name = "ShowSMA", GroupName = "SMA", Description = "DisplaySMADescription", Order = 200)]
public bool ShowSma { get; set; }

Property Value

bool

SmaPeriod

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "SMAPeriodDescription", Order = 210)]
[Range(1, 10000)]
public int SmaPeriod { 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.