Table of Contents

Class CurrentPrice

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

Constructors

CurrentPrice()

public CurrentPrice()

Properties

Background

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

Property Value

Color

FontSize

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

Property Value

float

ShowTime

[Display(ResourceType = typeof(Strings), Name = "ShowTime", GroupName = "Time", Description = "IsNeedShowCurrentTimeDescription")]
public bool ShowTime { get; set; }

Property Value

bool

TextColor

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

Property Value

Color

TimeFormat

[Display(ResourceType = typeof(Strings), Name = "TimeFormat", GroupName = "Time", Description = "TimeFormatDescription")]
public string TimeFormat { get; set; }

Property Value

string

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.

OnRender(RenderContext, DrawingLayouts)

Added in ATAS 8.0.15.

protected override void OnRender(RenderContext context, DrawingLayouts layout)

Parameters

context RenderContext
layout DrawingLayouts