Class BarTimer
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "BarTimerDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602327")]
public class BarTimer : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectBarTimer
- Implements
- Inherited Members
- Extension Methods
Constructors
BarTimer()
public BarTimer()
Properties
AlertBackgroundColor
[Display(ResourceType = typeof(Strings), GroupName = "AlertNewCandle", Name = "AreaColor", Description = "AlertFillColorDescription", Order = 430)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public Color AlertBackgroundColor { get; set; }
Property Value
- Color
AlertBeforeFile
[Display(ResourceType = typeof(Strings), GroupName = "ColorBeforeCandle", Name = "AlertFile", Description = "AlertBeforeFileDescription", Order = 510)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
[SoundComboBoxEditor]
public string AlertBeforeFile { get; set; }
Property Value
- string
AlertBeforeSeconds
[Display(ResourceType = typeof(Strings), GroupName = "ColorBeforeCandle", Name = "Seconds", Description = "AlertBeforeSecondsDescription", Order = 520)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
[Range(1, 10000)]
public int AlertBeforeSeconds { get; set; }
Property Value
- int
AlertFile
[Display(ResourceType = typeof(Strings), GroupName = "AlertNewCandle", Name = "AlertFile", Description = "AlertFileDescription", Order = 410)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public string AlertFile { get; set; }
Property Value
- string
AlertTextColor
[Display(ResourceType = typeof(Strings), GroupName = "AlertNewCandle", Name = "TextColor", Description = "AlertTextColorDescription", Order = 420)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public Color AlertTextColor { get; set; }
Property Value
- Color
AreaBeforeColor
[Display(ResourceType = typeof(Strings), GroupName = "ColorBeforeCandle", Name = "AreaColor", Description = "LabelFillColorDescription", Order = 540)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public Color AreaBeforeColor { get; set; }
Property Value
- Color
BackGroundColor
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "BackGround", Description = "LabelFillColorDescription", Order = 310)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public FilterColor BackGroundColor { get; set; }
Property Value
CustomTimeZone
[Display(ResourceType = typeof(Strings), GroupName = "TimeSettings", Name = "TimeZone", Description = "TimeZoneDescription", Order = 120)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
[Range(-23, 23)]
public int CustomTimeZone { get; set; }
Property Value
- int
OffsetX
[Display(ResourceType = typeof(Strings), GroupName = "Settings", Name = "OffsetX", Description = "LabelOffsetXDescription", Order = 200)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
[Range(-10000, 10000)]
public FilterInt OffsetX { get; set; }
Property Value
OffsetY
[Display(ResourceType = typeof(Strings), GroupName = "Settings", Name = "OffsetY", Description = "LabelOffsetYDescription", Order = 210)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
[Range(-10000, 10000)]
public FilterInt OffsetY { get; set; }
Property Value
ShowAlertArea
[Display(ResourceType = typeof(Strings), GroupName = "ColorBeforeCandle", Name = "ShowArea", Description = "ShowAlertAreaDescription", Order = 530)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public bool ShowAlertArea { get; set; }
Property Value
- bool
Size
[Display(ResourceType = typeof(Strings), GroupName = "Settings", Name = "Size", Description = "FontSizeDescription", Order = 220)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
[Range(1, 100)]
public FilterInt Size { get; set; }
Property Value
TextBeforeColor
[Display(ResourceType = typeof(Strings), GroupName = "ColorBeforeCandle", Name = "TextColor", Description = "LabelTextColorDescription", Order = 550)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public Color TextBeforeColor { get; set; }
Property Value
- Color
TextColor
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "Color", Description = "LabelTextColorDescription", Order = 300)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public FilterColor TextColor { get; set; }
Property Value
TimeFormat
[Display(ResourceType = typeof(Strings), GroupName = "TimeSettings", Name = "TimeFormat", Description = "TimeFormatDescription", Order = 100)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public BarTimer.Format TimeFormat { get; set; }
Property Value
TimeLocation
[Display(ResourceType = typeof(Strings), GroupName = "Settings", Name = "Location", Description = "LabelLocationDescription", Order = 195)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public BarTimer.Location TimeLocation { get; set; }
Property Value
TimeMode
[Display(ResourceType = typeof(Strings), GroupName = "TimeSettings", Name = "Mode", Description = "TimeModeDescription", Order = 110)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public BarTimer.Mode TimeMode { get; set; }
Property Value
UseAlert
[Display(ResourceType = typeof(Strings), GroupName = "AlertNewCandle", Name = "UseAlerts", Description = "UseAlertsDescription", Order = 400)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public bool UseAlert { get; set; }
Property Value
- bool
UseAlertBefore
[Display(ResourceType = typeof(Strings), GroupName = "ColorBeforeCandle", Name = "UseAlerts", Description = "UseAlertBeforeDescription", Order = 500)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public bool UseAlertBefore { 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.
OnDispose()
Called when the indicator is being disposed.
protected override void OnDispose()
OnInitialize()
The method is executed before the first calculation.
protected override void OnInitialize()
OnRender(RenderContext, DrawingLayouts)
Added in ATAS 8.0.15.
protected override void OnRender(RenderContext context, DrawingLayouts layout)
Parameters
contextRenderContextlayoutDrawingLayouts