Table of Contents

Class OrderBookAlerts

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

Constructors

OrderBookAlerts()

public OrderBookAlerts()

Properties

AlertBGColor

[Display(ResourceType = typeof(Strings), Name = "BackGround", GroupName = "Alerts", Description = "AlertFillColorDescription")]
public Color AlertBGColor { get; set; }

Property Value

Color

AlertFile

[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "Alerts", Description = "AlertFileDescription")]
public string AlertFile { get; set; }

Property Value

string

AlertForeColor

[Display(ResourceType = typeof(Strings), Name = "FontColor", GroupName = "Alerts", Description = "AlertTextColorDescription")]
public Color AlertForeColor { get; set; }

Property Value

Color

CoolDownPeriod

[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "CoolDownPeriod", GroupName = "Alerts", Description = "CoolDownAlertPeriodDescription")]
public float CoolDownPeriod { get; set; }

Property Value

float

Filter

[Parameter]
[Browsable(false)]
[Range(1, 2147483647)]
public decimal Filter { get; set; }

Property Value

decimal

FilterMoney

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

Property Value

string

MinVolumeFilter

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

[Display(ResourceType = typeof(Strings), Name = "Filter", GroupName = "Filters", Description = "MinVolumeFilterCommonDescription")]
public VolumeFilter MinVolumeFilter { get; set; }

Property Value

VolumeFilter

POMode

[Display(ResourceType = typeof(Strings), Name = "Mode", GroupName = "PriceOffset", Description = "CalculationModeDescription")]
public OrderBookAlerts.PriceOffsetMode POMode { get; set; }

Property Value

OrderBookAlerts.PriceOffsetMode

PriceOffset

[Parameter]
[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Offset", GroupName = "PriceOffset", Description = "PriceLevelsCountDescription")]
public int PriceOffset { get; set; }

Property Value

int

ShowOnChart

[Display(ResourceType = typeof(Strings), Name = "ShowOnChart", GroupName = "Alerts", Description = "ShowLevelsOnChartDescription")]
public bool ShowOnChart { get; set; }

Property Value

bool

TimeFilter

[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "TimeFilterSec", GroupName = "Filters", Description = "LevelValidTimeFilterDescription")]
public Filter TimeFilter { get; set; }

Property Value

Filter

UseAlerts

[Display(ResourceType = typeof(Strings), Name = "UseAlerts", GroupName = "Alerts", Description = "UseAlertsDescription")]
public bool UseAlerts { get; set; }

Property Value

bool

Methods

MarketDepthChanged(MarketDataArg)

Added in ATAS 8.0.15.

protected override void MarketDepthChanged(MarketDataArg depth)

Parameters

depth MarketDataArg

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.

OnDispose()

Called when the indicator is being disposed.

protected override void OnDispose()

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

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