Table of Contents

Class AccountInfoDisplay

Namespace
ATAS.Indicators.Technical
Assembly
ATAS.Indicators.Technical.dll

Displays account information on the chart including account ID, balance, blocked margin, available balance, and PnL.

Added in ATAS 8.0.15.

[HelpLink("https://help.atas.net/en/support/solutions/articles/72000648751-account-info-display")]
[Display(ResourceType = typeof(Strings), Description = "AccountInfoDisplayDescription")]
public class AccountInfoDisplay : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
Inheritance
object
AccountInfoDisplay
Implements
Inherited Members
Extension Methods

Constructors

AccountInfoDisplay()

public AccountInfoDisplay()

Properties

BackgroundColor

[Display(ResourceType = typeof(Strings), Name = "BackGround", Description = "LabelFillColorDescription", GroupName = "Visualization")]
public Color BackgroundColor { get; set; }

Property Value

Color

ColumnSpacing

[Display(ResourceType = typeof(Strings), Name = "ColumnSpacing", Description = "ColumnSpacingDescription", GroupName = "LayoutGroup")]
[Range(5, 50)]
public int ColumnSpacing { get; set; }

Property Value

int

FontSize

[Display(ResourceType = typeof(Strings), Name = "FontSize", Description = "FontSizeDescription", GroupName = "Visualization")]
[Range(6, 30)]
public float FontSize { get; set; }

Property Value

float

HorizontalPosition

[Display(ResourceType = typeof(Strings), Name = "HorizontalPosition", GroupName = "LayoutGroup")]
public AccountInfoDisplay.HorizontalAlignment HorizontalPosition { get; set; }

Property Value

AccountInfoDisplay.HorizontalAlignment

NegativeColor

[Display(ResourceType = typeof(Strings), Name = "NegativeColor", Description = "NegativeColorDescription", GroupName = "Visualization")]
public Color NegativeColor { get; set; }

Property Value

Color

NeutralColor

[Display(ResourceType = typeof(Strings), Name = "NeutralColor", Description = "NeutralColorDescription", GroupName = "Visualization")]
public Color NeutralColor { get; set; }

Property Value

Color

OffsetX

[Display(ResourceType = typeof(Strings), Name = "OffsetX", Description = "OffsetXDescription", GroupName = "LayoutGroup")]
[Range(0, 1000)]
public int OffsetX { get; set; }

Property Value

int

OffsetY

[Display(ResourceType = typeof(Strings), Name = "OffsetY", Description = "OffsetYDescription", GroupName = "LayoutGroup")]
[Range(0, 1000)]
public int OffsetY { get; set; }

Property Value

int

PositiveColor

[Display(ResourceType = typeof(Strings), Name = "PositiveColor", Description = "PositiveColorDescription", GroupName = "Visualization")]
public Color PositiveColor { get; set; }

Property Value

Color

ShowAccountId

[Display(ResourceType = typeof(Strings), Name = "ShowAccountId", Description = "ShowAccountIdDescription", GroupName = "Settings")]
public bool ShowAccountId { get; set; }

Property Value

bool

ShowAvailableBalance

[Display(ResourceType = typeof(Strings), Name = "ShowAvailableBalance", Description = "ShowAvailableBalanceDescription", GroupName = "Settings")]
public bool ShowAvailableBalance { get; set; }

Property Value

bool

ShowBalance

[Display(ResourceType = typeof(Strings), Name = "ShowBalance", Description = "ShowBalanceDescription", GroupName = "Settings")]
public bool ShowBalance { get; set; }

Property Value

bool

ShowClosedPnL

[Display(ResourceType = typeof(Strings), Name = "ShowClosedPnL", Description = "ShowClosedPnLDescription", GroupName = "Settings")]
public bool ShowClosedPnL { get; set; }

Property Value

bool

ShowCurrency

[Display(ResourceType = typeof(Strings), Name = "ShowCurrency", Description = "ShowCurrencyDescription", GroupName = "Settings")]
public bool ShowCurrency { get; set; }

Property Value

bool

ShowLeverage

[Display(ResourceType = typeof(Strings), Name = "ShowLeverage", Description = "ShowLeverageDescription", GroupName = "Settings")]
public bool ShowLeverage { get; set; }

Property Value

bool

ShowMargin

[Display(ResourceType = typeof(Strings), Name = "ShowBlockedMargin", Description = "ShowBlockedMarginDescription", GroupName = "Settings")]
public bool ShowMargin { get; set; }

Property Value

bool

ShowOpenPnL

[Display(ResourceType = typeof(Strings), Name = "ShowOpenPnL", Description = "ShowOpenPnLDescription", GroupName = "Settings")]
public bool ShowOpenPnL { get; set; }

Property Value

bool

ShowTotalPnL

[Display(ResourceType = typeof(Strings), Name = "ShowTotalPnL", Description = "ShowTotalPnLDescription", GroupName = "Settings")]
public bool ShowTotalPnL { get; set; }

Property Value

bool

TextColor

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

Property Value

Color

VerticalPosition

[Display(ResourceType = typeof(Strings), Name = "VerticalPosition", GroupName = "LayoutGroup")]
public AccountInfoDisplay.VerticalAlignment VerticalPosition { get; set; }

Property Value

AccountInfoDisplay.VerticalAlignment

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

bar int

Bar number.

value decimal

Input data series value.

OnInitialize()

The method is executed before the first calculation.

protected override void OnInitialize()

OnPortfolioSelected(Portfolio)

This method is called when another portfolio is selected on the chart (see PortfolioSelected).

It is the right place for work that has to be redone for the new account - reloading an option chain, re-requesting trading data, resetting per-account state. Use OnPortfolioChanged(Portfolio) instead to react to every update of the selected portfolio (balance, PnL, margin).

Added in ATAS 8.0.15.

protected override void OnPortfolioSelected(Portfolio portfolio)

Parameters

portfolio Portfolio

The newly selected Portfolio.

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.