Table of Contents

Class CandleStatistics

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

Constructors

CandleStatistics()

public CandleStatistics()

Properties

BackGroundColor

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

Property Value

Color

BackGroundTransparency

[Range(0, 10)]
[Display(ResourceType = typeof(Strings), Name = "Transparency", GroupName = "Visualization", Description = "VisualObjectsTransparencyDescription")]
public int BackGroundTransparency { get; set; }

Property Value

int

BorderWidth

[Range(1, 10)]
[Display(ResourceType = typeof(Strings), Name = "BorderWidth", GroupName = "Visualization", Description = "BorderWidthPixelDescription")]
public int BorderWidth { get; set; }

Property Value

int

ClusterModeOnly

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

Property Value

bool

DurationColor

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

Property Value

Color

FontSetting

[Display(ResourceType = typeof(Strings), Name = "Font", GroupName = "Visualization", Description = "FontSettingDescription")]
public FontSetting FontSetting { get; set; }

Property Value

FontSetting

HideBackGround

[Display(ResourceType = typeof(Strings), Name = "HideBackGround", GroupName = "Visualization", Description = "HideLabelBackGroundDescription")]
public bool HideBackGround { get; set; }

Property Value

bool

LabelLocation

[Display(ResourceType = typeof(Strings), Name = "LabelLocation", GroupName = "Settings", Description = "LabelLocationDescription")]
public CandleStatistics.LabelLocations LabelLocation { get; set; }

Property Value

CandleStatistics.LabelLocations

NegativeDeltaColor

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

Property Value

Color

Offset

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

Property Value

int

PositiveDeltaColor

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

Property Value

Color

ShowDelta

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

Property Value

bool

ShowDuration

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

Property Value

bool

ShowTrades

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

Property Value

bool

ShowVolume

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

Property Value

bool

TradesColor

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

Property Value

Color

VolumeColor

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

Property Value

Color

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)

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.