Class DailyLines
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "DailyLinesDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602284")]
public class DailyLines : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectDailyLines
- Implements
- Inherited Members
- Extension Methods
Constructors
DailyLines()
public DailyLines()
Fields
_format
Added in ATAS 8.0.15.
[Browsable(false)]
public readonly RenderStringFormat _format
Field Value
Properties
ClosePen
[Display(ResourceType = typeof(Strings), Name = "Line", GroupName = "Close", Description = "PenSettingsDescription", Order = 320)]
public PenSettings ClosePen { get; set; }
Property Value
CloseText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Close", Description = "LabelTextDescription", Order = 325)]
public string CloseText { get; set; }
Property Value
- string
CustomSession
[Display(ResourceType = typeof(Strings), Name = "CustomSession", GroupName = "Filters", Description = "IsCustomSessionDescription", Order = 120)]
public bool CustomSession { get; set; }
Property Value
- bool
Days
[Browsable(false)]
[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "DaysLookBack", Order = 2147483647, Description = "DaysLookBackDescription")]
[Range(1, 1000)]
public int Days { get; set; }
Property Value
- int
DrawFromBar
[Display(ResourceType = typeof(Strings), Name = "FirstBar", GroupName = "Show", Description = "FirstBarDescription", Order = 220)]
public bool DrawFromBar { get; set; }
Property Value
- bool
DrawOverChart
[Display(ResourceType = typeof(Strings), Name = "AbovePrice", GroupName = "Show", Description = "DrawAbovePriceDescription", Order = 230)]
public bool DrawOverChart { get; set; }
Property Value
- bool
EndTime
[Browsable(false)]
public TimeSpan EndTime { get; set; }
Property Value
- TimeSpan
FilterEndTime
[Display(ResourceType = typeof(Strings), Name = "SessionEnd", GroupName = "Filters", Description = "SessionEndDescription", Order = 120)]
public FilterTimeSpan FilterEndTime { get; set; }
Property Value
FilterStartTime
[Display(ResourceType = typeof(Strings), Name = "SessionBegin", GroupName = "Filters", Description = "SessionBeginDescription", Order = 120)]
public FilterTimeSpan FilterStartTime { get; set; }
Property Value
HalfGapPen
[Display(Name = "Line Half Gap", GroupName = "Misc", Description = "Half Gap line settings.", Order = 350)]
public PenSettings HalfGapPen { get; set; }
Property Value
HalfGapText
[Display(Name = "Text Half Gap", GroupName = "Misc", Description = "Half Gap label text.", Order = 355)]
public string HalfGapText { get; set; }
Property Value
- string
HighPen
[Display(ResourceType = typeof(Strings), Name = "Line", GroupName = "High", Description = "PenSettingsDescription", Order = 330)]
public PenSettings HighPen { get; set; }
Property Value
HighText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "High", Description = "LabelTextDescription", Order = 335)]
public string HighText { get; set; }
Property Value
- string
LowPen
[Display(ResourceType = typeof(Strings), Name = "Line", GroupName = "Low", Description = "PenSettingsDescription", Order = 340)]
public PenSettings LowPen { get; set; }
Property Value
LowText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Low", Description = "LabelTextDescription", Order = 345)]
public string LowText { get; set; }
Property Value
- string
OpenPen
[Display(ResourceType = typeof(Strings), Name = "Line", GroupName = "Open", Description = "PenSettingsDescription", Order = 310)]
public PenSettings OpenPen { get; set; }
Property Value
OpenText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Open", Description = "LabelTextDescription", Order = 315)]
public string OpenText { get; set; }
Property Value
- string
Period
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "Filters", Description = "PeriodDescription", Order = 110)]
public DailyLines.PeriodType Period { get; set; }
Property Value
ShowHalfGap
Added in ATAS 8.0.15.
[Display(Name = "Show Half Gap", GroupName = "Half Gap", Description = "Shows the midpoint between the period open and the previous period close.", Order = 300)]
public bool ShowHalfGap { get; set; }
Property Value
- bool
ShowPrice
[Display(ResourceType = typeof(Strings), Name = "ShowPriceLabels", GroupName = "Show", Description = "ShowSelectedPriceOnPriceAxisDescription", Order = 210)]
public bool ShowPrice { get; set; }
Property Value
- bool
ShowText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Show", Description = "IsNeedShowLabelDescription", Order = 200)]
public bool ShowText { get; set; }
Property Value
- bool
StartTime
[Browsable(false)]
public TimeSpan StartTime { get; set; }
Property Value
- TimeSpan
TextSize
[Range(5, 30)]
[Display(ResourceType = typeof(Strings), Name = "TextSize", GroupName = "Show", Description = "FontSizeDescription", Order = 205)]
public FilterInt TextSize { get; set; }
Property Value
Methods
IsNewSession(int)
Determines if a new custom session starts at the specified bar. Uses a two-phase detection to correctly handle gaps (e.g., weekends):
- First, a new default session must be detected (sets _newSessionWait = true)
- Then, the custom session start time must fall within the current bar This prevents false triggers when custom session time falls within weekend gaps.
protected bool IsNewSession(int bar)
Parameters
barint
Returns
- bool
IsNewWeek(int)
protected bool IsNewWeek(int bar)
Parameters
barint
Returns
- bool
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.
OnRecalculate()
The method is executed before a new calculation.
protected override void OnRecalculate()
OnRender(RenderContext, DrawingLayouts)
Override this method for implementing your own data rendering logic.
protected override void OnRender(RenderContext context, DrawingLayouts layout)
Parameters
contextRenderContextThe rendering context used to draw on the chart.
layoutDrawingLayoutsThe layout information for the drawing.