Class InitialBalance
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "InitialBalanceIndDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602294")]
public class InitialBalance : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectInitialBalance
- Implements
- Inherited Members
- Extension Methods
Constructors
InitialBalance()
public InitialBalance()
Properties
BorderColor
[Display(ResourceType = typeof(Strings), Name = "BorderColor", GroupName = "OpenRange", Description = "BorderColorDescription", Order = 30)]
public Color BorderColor { get; set; }
Property Value
- Color
BorderWidth
[Display(ResourceType = typeof(Strings), Name = "BorderWidth", GroupName = "OpenRange", Description = "BorderWidthPixelDescription", Order = 20)]
[Range(1, 100)]
public int BorderWidth { get; set; }
Property Value
- int
CustomSessionStart
[Display(ResourceType = typeof(Strings), Name = "CustomSession", GroupName = "SessionTime", Description = "IsCustomSessionDescription", Order = 10)]
public bool CustomSessionStart { get; set; }
Property Value
- bool
Days
[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "DaysLookBack", Order = 2147483647, Description = "DaysLookBackDescription")]
[Range(0, 1000)]
public int Days { get; set; }
Property Value
- int
DrawText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "Show", Description = "IsNeedShowLabelDescription", Order = 130)]
public bool DrawText { get; set; }
Property Value
- bool
EndDate
[Display(ResourceType = typeof(Strings), Name = "EndTime", GroupName = "SessionTime", Description = "EndTimeDescription", Order = 25)]
public TimeSpan EndDate { get; set; }
Property Value
- TimeSpan
FillColor
[Display(ResourceType = typeof(Strings), Name = "FillColor", GroupName = "OpenRange", Description = "FillColorDescription", Order = 40)]
public Color FillColor { get; set; }
Property Value
- Color
IbHm
[Display(ResourceType = typeof(Strings), Name = "IBHM", GroupName = "BackGround", Description = "AreaColorDescription", Order = 230)]
public Color IbHm { get; set; }
Property Value
- Color
IbMl
[Display(ResourceType = typeof(Strings), Name = "IBML", GroupName = "BackGround", Description = "AreaColorDescription", Order = 240)]
public Color IbMl { get; set; }
Property Value
- Color
Ibhx1h
[Display(ResourceType = typeof(Strings), Name = "IBHX1H", GroupName = "BackGround", Description = "AreaColorDescription", Order = 220)]
public Color Ibhx1h { get; set; }
Property Value
- Color
Ibhx21
[Display(ResourceType = typeof(Strings), Name = "IBHX21", GroupName = "BackGround", Description = "AreaColorDescription", Order = 210)]
public Color Ibhx21 { get; set; }
Property Value
- Color
Ibhx32
[Display(ResourceType = typeof(Strings), Name = "IBHX32", GroupName = "BackGround", Description = "AreaColorDescription", Order = 200)]
public Color Ibhx32 { get; set; }
Property Value
- Color
Ibl1
[Display(ResourceType = typeof(Strings), Name = "IBL1", GroupName = "BackGround", Description = "AreaColorDescription", Order = 250)]
public Color Ibl1 { get; set; }
Property Value
- Color
Iblx12
[Display(ResourceType = typeof(Strings), Name = "IBLX12", GroupName = "BackGround", Description = "AreaColorDescription", Order = 260)]
public Color Iblx12 { get; set; }
Property Value
- Color
Iblx23
[Display(ResourceType = typeof(Strings), Name = "IBLX23", GroupName = "BackGround", Description = "AreaColorDescription", Order = 270)]
public Color Iblx23 { get; set; }
Property Value
- Color
Period
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "SessionTime", Description = "PeriodDescription", Order = 30)]
[Range(1, 10000)]
public int Period { get; set; }
Property Value
- int
PeriodMode
[Display(ResourceType = typeof(Strings), Name = "PeriodType", GroupName = "SessionTime", Description = "PeriodTypeDescription", Order = 40)]
public InitialBalance.PeriodType PeriodMode { get; set; }
Property Value
ShowOpenRange
[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "OpenRange", Description = "ShowOpenRangeDescription", Order = 10)]
public bool ShowOpenRange { get; set; }
Property Value
- bool
StartDate
[Display(ResourceType = typeof(Strings), Name = "StartTime", GroupName = "SessionTime", Description = "StartTimeDescription", Order = 20)]
public TimeSpan StartDate { get; set; }
Property Value
- TimeSpan
X1
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Multiplier1", GroupName = "Multiplier", Description = "MultiplierDescription", Order = 100)]
[Range(0.1, 100)]
public decimal X1 { get; set; }
Property Value
- decimal
X2
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Multiplier2", GroupName = "Multiplier", Description = "MultiplierDescription", Order = 110)]
[Range(0.1, 100)]
public decimal X2 { get; set; }
Property Value
- decimal
X3
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Multiplier3", GroupName = "Multiplier", Description = "MultiplierDescription", Order = 120)]
[Range(0.1, 100)]
public decimal X3 { get; set; }
Property Value
- decimal
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()