Table of Contents

Class PriceSelectionValue

Namespace
ATAS.Indicators
Assembly
ATAS.Indicators.dll

Represents a class for defining price level selection in clusters and bars. Using in PriceSelectionDataSeries.

public class PriceSelectionValue
Inheritance
object
PriceSelectionValue
Extension Methods

Constructors

PriceSelectionValue(decimal)

Constructor for creating a price selection with a given price.

public PriceSelectionValue(decimal price)

Parameters

price decimal

The price to set as both minimum and maximum.

Properties

BarLocation

Horizontal location of the graphic object within the bar, in percent from left to right. A null value keeps the object centered in the bar.

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

public decimal? BarLocation { get; set; }

Property Value

decimal?

Context

Context object associated with the price selection.

public object Context { get; set; }

Property Value

object

DrawValue

Draw value inside object

public bool DrawValue { get; set; }

Property Value

bool

HeightFactor

Height Factor (obsolete).

[Obsolete]
public decimal HeightFactor { get; set; }

Property Value

decimal

MaximumPrice

Maximum price of the selection.

public decimal MaximumPrice { get; set; }

Property Value

decimal

MinimumPrice

Minimum price of the selection.

public decimal MinimumPrice { get; set; }

Property Value

decimal

ObjectColor

Color of the graphic objects.

public Color ObjectColor { get; set; }

Property Value

Color

ObjectsTransparency

Transparency of objects filling.

public int ObjectsTransparency { get; set; }

Property Value

int

PriceSelectionColor

Color of the price selection. Use alpha channel for transparency.

public Color PriceSelectionColor { get; set; }

Property Value

Color

RenderCurrency

Currency code of RenderMoney (USD, EUR, USDT...).

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

public string? RenderCurrency { get; set; }

Property Value

string

RenderMoney

Money value drawn inside the object instead of RenderValue, with the sign of RenderCurrency. RenderValue stays the traded volume the object stands for.

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

public decimal? RenderMoney { get; set; }

Property Value

decimal?

RenderValue

Render value inside object

public decimal? RenderValue { get; set; }

Property Value

decimal?

SelectionSide

Selection type.

public SelectionType SelectionSide { get; set; }

Property Value

SelectionType

Size

Graphic objects size.

public int Size { get; set; }

Property Value

int

TextColor

Color of the value text drawn inside the object. If not set, a contrasting color (black or white) is derived from the effective objects color.

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

public Color? TextColor { get; set; }

Property Value

Color?

Tooltip

Tooltip associated with the selection.

public string Tooltip { get; set; }

Property Value

string

VisualObject

Visual object type.

public ObjectType VisualObject { get; set; }

Property Value

ObjectType

Methods

GetBorderPen()

Gets the render pen for the border of the graphic objects.

public RenderPen GetBorderPen()

Returns

RenderPen

The render pen for the border of the graphic objects.

GetObjectsColor()

Gets the current graphic objects color.

public Color GetObjectsColor()

Returns

Color

The current graphic objects color.

GetPriceSelectionColor()

Gets the current price selection color.

public Color GetPriceSelectionColor()

Returns

Color

The current price selection color.

GetTextColor(Color)

Gets the color of the value text drawn inside the object: the explicitly set TextColor, or a contrasting color (black or white) derived from the effective objects color over the given chart background.

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

public Color GetTextColor(Color chartBackground)

Parameters

chartBackground Color

Chart background color the object is drawn over.

Returns

Color

The color of the value text.