Class Stochastic
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "StochasticDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602478")]
public class Stochastic : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectStochastic
- Implements
- Inherited Members
- Extension Methods
Constructors
Stochastic()
public Stochastic()
Properties
AveragePeriod
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "AveragePeriod", Description = "SMAPeriod2Description", GroupName = "Settings")]
[Range(1, 10000)]
public int AveragePeriod { get; set; }
Property Value
- int
DownLine
[Display(ResourceType = typeof(Strings), Name = "Down", Description = "OversoldLimitDescription", GroupName = "Line", Order = 30)]
public LineSeries DownLine { get; set; }
Property Value
DrawLines
[Display(ResourceType = typeof(Strings), Name = "Show", Description = "DrawLinesDescription", GroupName = "Line", Order = 30)]
public bool DrawLines { get; set; }
Property Value
- bool
Period
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", Description = "PeriodDescription", GroupName = "Settings")]
[Range(1, 10000)]
public int Period { get; set; }
Property Value
- int
Smooth
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Smooth", Description = "SMAPeriod1Description", GroupName = "Settings")]
[Range(1, 10000)]
public int Smooth { get; set; }
Property Value
- int
UpLine
[Display(ResourceType = typeof(Strings), Name = "Up", Description = "OverboughtLimitDescription", GroupName = "Line", Order = 30)]
public LineSeries UpLine { get; set; }
Property Value
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.