Class SwingHighLow
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "SwingHighLowDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602483")]
public class SwingHighLow : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectSwingHighLow
- Implements
- Inherited Members
- Extension Methods
Constructors
SwingHighLow()
public SwingHighLow()
Properties
AlertFile
[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "ApproximationAlert", Description = "AlertFileDescription", Order = 210)]
public string AlertFile { get; set; }
Property Value
- string
BackgroundColor
[Display(ResourceType = typeof(Strings), Name = "BackGround", GroupName = "ApproximationAlert", Description = "AlertFillColorDescription", Order = 350)]
public Color BackgroundColor { get; set; }
Property Value
- Color
FontColor
[Display(ResourceType = typeof(Strings), Name = "FontColor", GroupName = "ApproximationAlert", Description = "AlertTextColorDescription", Order = 340)]
public Color FontColor { get; set; }
Property Value
- Color
IncludeEqual
[Display(ResourceType = typeof(Strings), Name = "IncludeEqualHighLow", GroupName = "Settings", Description = "IncludeEqualsValuesDescription", Order = 110)]
public bool IncludeEqual { get; set; }
Property Value
- bool
Period
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "Settings", Description = "PeriodDescription", Order = 100)]
[Range(1, 10000)]
public int Period { get; set; }
Property Value
- int
UseAlerts
[Display(ResourceType = typeof(Strings), Name = "UseAlert", GroupName = "ApproximationAlert", Description = "UseAlertDescription", Order = 200)]
public bool UseAlerts { get; set; }
Property Value
- bool
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.