Table of Contents

Class ImbalanceRatio

Namespace
ATAS.Indicators.Technical
Assembly
ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "ImbalanceRatioIndDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602404")]
public class ImbalanceRatio : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
Inheritance
object
ImbalanceRatio
Implements
Inherited Members
Extension Methods

Constructors

ImbalanceRatio()

public ImbalanceRatio()

Properties

BuyColor

[Display(ResourceType = typeof(Strings), Name = "BuyColor", GroupName = "Visualization", Description = "BuySignalColorDescription", Order = 200)]
public Color BuyColor { get; set; }

Property Value

Color

Font

[Display(ResourceType = typeof(Strings), Name = "Font", GroupName = "Visualization", Description = "FontSettingDescription", Order = 225)]
public FontSetting Font { get; set; }

Property Value

FontSetting

IgnoreZeroValues

Added in ATAS 8.0.15.

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "IgnoreZeroValues", GroupName = "Settings", Description = "IgnoreZeroValuesDescription", Order = 130)]
public bool IgnoreZeroValues { get; set; }

Property Value

bool

MinVolumeFilter

[Display(ResourceType = typeof(Strings), Name = "VolumeFilter", GroupName = "Settings", Description = "MinVolumeFilterDescription", Order = 110)]
public VolumeFilter MinVolumeFilter { get; set; }

Property Value

VolumeFilter

MinimumDifference

Added in ATAS 8.0.15.

[Parameter]
[Browsable(false)]
[Range(0, 1000000000)]
public int MinimumDifference { get; set; }

Property Value

int

MinimumDifferenceExact

[Browsable(false)]
public decimal MinimumDifferenceExact { get; set; }

Property Value

decimal

MinimumDifferenceFilter

[Display(ResourceType = typeof(Strings), Name = "ImbalanceDifference", GroupName = "Settings", Order = 120)]
public VolumeFilter MinimumDifferenceFilter { get; set; }

Property Value

VolumeFilter

MinimumDifferenceMoney

Not in ATAS 8.0.15 yet: available from the next version.

[Browsable(false)]
public string? MinimumDifferenceMoney { get; set; }

Property Value

string

Ratio

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "ImbalanceRatio", GroupName = "Settings", Description = "MinRatioValueDescription", Order = 100)]
[Range(1, 10000)]
public int Ratio { get; set; }

Property Value

int

SellColor

[Display(ResourceType = typeof(Strings), Name = "SellColor", GroupName = "Visualization", Description = "SellSignalColorDescription", Order = 210)]
public Color SellColor { get; set; }

Property Value

Color

ShowBot

[Display(ResourceType = typeof(Strings), Name = "ShowBotBlock", GroupName = "Visualization", Description = "ShowBottomElementsDescription", Order = 250)]
public bool ShowBot { get; set; }

Property Value

bool

ShowTop

[Display(ResourceType = typeof(Strings), Name = "ShowTopBlock", GroupName = "Visualization", Description = "ShowTopElementsDescription", Order = 240)]
public bool ShowTop { get; set; }

Property Value

bool

TextColor

[Display(ResourceType = typeof(Strings), Name = "TextColor", GroupName = "Visualization", Description = "LabelTextColorDescription", Order = 220)]
public Color TextColor { get; set; }

Property Value

Color

Transparency

[Display(ResourceType = typeof(Strings), Name = "ClusterSelectionTransparency", GroupName = "Visualization", Description = "PriceSelectionTransparencyDescription", Order = 230)]
[Range(0, 100)]
public int Transparency { get; set; }

Property Value

int

VolumeFilter

[Parameter]
[Browsable(false)]
[Range(0, 1000000000)]
public int VolumeFilter { get; set; }

Property Value

int

VolumeFilterExact

[Browsable(false)]
public decimal VolumeFilterExact { get; set; }

Property Value

decimal

VolumeFilterMoney

Not in ATAS 8.0.15 yet: available from the next version.

[Browsable(false)]
public string? VolumeFilterMoney { get; set; }

Property Value

string

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

bar int

Bar number.

value decimal

Input 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

context RenderContext

The rendering context used to draw on the chart.

layout DrawingLayouts

The 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()