Class Delta
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "DeltaDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602362")]
public class Delta : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectDelta
- Implements
- Inherited Members
- Extension Methods
Constructors
Delta()
public Delta()
Properties
Absorption
[Display(ResourceType = typeof(Strings), Name = "Absorption", GroupName = "Absorption", Description = "AbsorptionThresholdDesc", Order = 140)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
[Range(0, 2147483647)]
public FilterInt Absorption { get; set; }
Property Value
AbsorptionDeltaThreshold
[Browsable(false)]
public int AbsorptionDeltaThreshold { get; set; }
Property Value
- int
AlertBGColor
[Display(ResourceType = typeof(Strings), Name = "BackGround", GroupName = "Alerts", Description = "AlertFillColorDescription", Order = 340)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public Color AlertBGColor { get; set; }
Property Value
- Color
AlertFile
[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "Alerts", Description = "AlertFileDescription", Order = 320)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public string AlertFile { get; set; }
Property Value
- string
AlertFilter
[Browsable(false)]
public decimal AlertFilter { get; set; }
Property Value
- decimal
AlertForeColor
[Display(ResourceType = typeof(Strings), Name = "FontColor", GroupName = "Alerts", Description = "AlertTextColorDescription", Order = 330)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public Color AlertForeColor { get; set; }
Property Value
- Color
BarsDirection
[Display(ResourceType = typeof(Strings), Name = "BarsDirection", GroupName = "Filters", Description = "BarDirectionDescription", Order = 100)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public Delta.BarDirection BarsDirection { get; set; }
Property Value
DeltaTypes
[Display(ResourceType = typeof(Strings), Name = "DeltaType", GroupName = "Filters", Description = "DeltaTypeDescription", Order = 110)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public Delta.DeltaType DeltaTypes { get; set; }
Property Value
DivergenceBarsFilter
Added in ATAS 8.0.15.
[Display(ResourceType = typeof(Strings), Name = "DivergenceBars", GroupName = "Divergence", Order = 135)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public FilterColor DivergenceBarsFilter { get; set; }
Property Value
DownAlert
[Display(ResourceType = typeof(Strings), Name = "DownAlert", GroupName = "Alerts", Description = "DownAlertFileFilterDescription", Order = 310)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
[Range(-2147483648, 0)]
[DisplayFormat(DataFormatString = "F0")]
public VolumeFilter DownAlert { get; set; }
Property Value
DownColor
[Display(ResourceType = typeof(Strings), Name = "BearlishColor", GroupName = "Drawing", Description = "NegativeValueColorDescription", Order = 50)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color DownColor { get; set; }
Property Value
- Color
Filter
[Parameter]
[Browsable(false)]
[Range(0, 2147483647)]
public decimal Filter { get; set; }
Property Value
- decimal
FilterMoney
Not in ATAS 8.0.15 yet: available from the next version.
[Browsable(false)]
public string? FilterMoney { get; set; }
Property Value
- string
Font
[Display(ResourceType = typeof(Strings), Name = "Font", GroupName = "VolumeLabel", Description = "FontSettingDescription", Order = 230)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public FontSetting Font { get; set; }
Property Value
FontColor
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "VolumeLabel", Description = "LabelTextColorDescription", Order = 210)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color FontColor { get; set; }
Property Value
- Color
MinimizedMode
[Display(ResourceType = typeof(Strings), Name = "MinimizedMode", GroupName = "Visualization", Description = "HistogramMinimizedModeDescription", Order = 20)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool MinimizedMode { get; set; }
Property Value
- bool
MinimumFilter
[Display(ResourceType = typeof(Strings), Name = "Filter", GroupName = "Filters", Description = "MinDeltaVolumeFilterCommonDescription", Order = 120)]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public VolumeFilter MinimumFilter { get; set; }
Property Value
Mode
[Display(ResourceType = typeof(Strings), Name = "VisualMode", GroupName = "Visualization", Description = "VisualModeDescription", Order = 10)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Delta.DeltaVisualMode Mode { get; set; }
Property Value
NegativeAlertFilter
[Browsable(false)]
public decimal NegativeAlertFilter { get; set; }
Property Value
- decimal
NeutralColor
[Display(ResourceType = typeof(Strings), Name = "NeutralBorderColor", GroupName = "Drawing", Description = "NeutralValueDescription", Order = 60)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color NeutralColor { get; set; }
Property Value
- Color
ShowAbsorptionDots
[Browsable(false)]
public bool ShowAbsorptionDots { get; set; }
Property Value
- bool
ShowCurrentValues
[Display(ResourceType = typeof(Strings), Name = "ShowCurrentValue", GroupName = "Visualization", Description = "ShowCurrentValueDescription", Order = 30)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool ShowCurrentValues { get; set; }
Property Value
- bool
ShowDivergence
[Display(ResourceType = typeof(Strings), Name = "DivergenceDots", GroupName = "Divergence", Description = "BarDirVsDeltaDivergenceDescription", Order = 130)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool ShowDivergence { get; set; }
Property Value
- bool
ShowVolume
[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "VolumeLabel", Order = 200, Description = "VolumeLabelDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool ShowVolume { get; set; }
Property Value
- bool
UpAlert
[Display(ResourceType = typeof(Strings), Name = "UpAlert", GroupName = "Alerts", Description = "UpAlertFileFilterDescription", Order = 300)]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
[Range(0, 2147483647)]
[DisplayFormat(DataFormatString = "F0")]
public VolumeFilter UpAlert { get; set; }
Property Value
UpColor
[Display(ResourceType = typeof(Strings), Name = "BullishColor", GroupName = "Drawing", Description = "PositiveValueColorDescription", Order = 40)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color UpColor { get; set; }
Property Value
- Color
UseAlerts
[Browsable(false)]
public bool UseAlerts { get; set; }
Property Value
- bool
UseNegativeAlerts
[Browsable(false)]
public bool UseNegativeAlerts { get; set; }
Property Value
- bool
VolLocation
[Display(ResourceType = typeof(Strings), Name = "Location", GroupName = "VolumeLabel", Description = "LabelLocationDescription", Order = 220)]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Delta.Location VolLocation { get; set; }
Property Value
Methods
OnApplyDefaultColors()
Invoked to apply default colors to the drawing elements.
protected override void OnApplyDefaultColors()
Remarks
This method can be overridden in derived classes to customize or set default color values for the drawing elements. When this method is called, it is an opportunity for the derived class to apply its own default color scheme to the drawing elements used in the specific implementation.
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.
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.
OnValuationChanged()
Called when an exchange rate, the money display currency or the instrument model changed (Changed of Valuation). Indicators that show volumes in money recalculate or redraw them here. May be called on any thread.
Not in ATAS 8.0.15 yet: available from the next version.
protected override void OnValuationChanged()