Table of Contents

Interface IChartContainer

Namespace
ATAS.Indicators
Assembly
ATAS.Indicators.dll

Interface for a chart container that holds chart-related information and methods.

public interface IChartContainer : IContainer
Inherited Members
Extension Methods

Properties

BarSpacing

Gets the spacing between bars within the chart container.

decimal BarSpacing { get; }

Property Value

decimal

BarsWidth

Gets the width of the bars within the chart container.

decimal BarsWidth { get; }

Property Value

decimal

FirstVisibleBarNumber

Gets the bar number of the first visible bar within the chart container.

int FirstVisibleBarNumber { get; }

Property Value

int

GetVisibleBarsCount

Gets the number of visible bars within the chart container.

int GetVisibleBarsCount { get; }

Property Value

int

High

Gets the highest price value within the chart container.

decimal High { get; }

Property Value

decimal

LastVisibleBarNumber

Gets the bar number of the last visible bar within the chart container.

int LastVisibleBarNumber { get; }

Property Value

int

Low

Gets the lowest price value within the chart container.

decimal Low { get; }

Property Value

decimal

PriceLevelsCount

Gets the number of visible price levels within the chart container.

int PriceLevelsCount { get; }

Property Value

int

PriceRowHeight

Gets the height of each price row within the chart container.

decimal PriceRowHeight { get; }

Property Value

decimal

Step

Gets the step value for the price levels within the chart container.

decimal Step { get; }

Property Value

decimal

Remarks

Step could differ from the TickSize instrument if the Scale is used.

TotalBars

Gets the total number of bars within the chart container.

int TotalBars { get; }

Property Value

int

Methods

GetPriceByY(int)

Gets the price value corresponding to the specified Y coordinate within the chart container.

decimal GetPriceByY(int y)

Parameters

y int

The Y-coordinate

Returns

decimal

GetXByBar(int, bool)

Gets the X-coordinate value corresponding to the specified bar within the chart container.

int GetXByBar(int bar, bool isStartOfBar = true)

Parameters

bar int

The bar to get the X-coordinate for.

isStartOfBar bool

Flag indicating if the X-coordinate corresponds to the start of the bar.

Returns

int

The X-coordinate value corresponding to the specified bar.

GetXByBarNumber(int)

Gets the X-coordinate value corresponding to the specified bar number within the chart container.

int GetXByBarNumber(int i)

Parameters

i int

The bar number to get the X-coordinate for.

Returns

int

The X-coordinate value corresponding to the specified bar number.

GetYByPrice(decimal, bool)

Gets the Y-coordinate value corresponding to the specified price within the chart container.

int GetYByPrice(decimal price, bool isStartOfPriceLevel)

Parameters

price decimal

The price value to get the Y-coordinate for.

isStartOfPriceLevel bool

Flag indicating if the price level is the start of a row.

Returns

int

The Y-coordinate value corresponding to the specified price.

SetCustomBarsSpacing(decimal?)

Sets custom spacing between bars

void SetCustomBarsSpacing(decimal? value)

Parameters

value decimal?

Spacing between bars. Null enables automatic mode

SetCustomBarsWidth(decimal, bool)

Sets custom bars width

void SetCustomBarsWidth(decimal value, bool freezeValue)

Parameters

value decimal

Bars width. Null enables automatic mode

freezeValue bool

If true, customer won't be able to change bars' width from the chart