Class OSMA
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "OSMADescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602432")]
public class OSMA : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectOSMA
- Implements
- Inherited Members
- Extension Methods
Constructors
OSMA()
public OSMA()
Properties
LongPeriod
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "LongPeriod", GroupName = "Period", Description = "LongPeriodDescription", Order = 110)]
[Range(2, 10000)]
[GreaterThan<int>("ShortPeriod", false, ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "ValueMustBeGreaterThan")]
public int LongPeriod { get; set; }
Property Value
- int
ShortPeriod
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "ShortPeriod", GroupName = "Period", Description = "ShortPeriodDescription", Order = 100)]
[Range(2, 10000)]
[LessThan<int>("LongPeriod", false, ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "ValueMustBeLessThan")]
public int ShortPeriod { get; set; }
Property Value
- int
SignalPeriod
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "SignalPeriod", GroupName = "Period", Description = "SignalPeriodDescription", Order = 120)]
[Range(2, 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
barintBar number.
valuedecimalInput data series value.