Table of Contents

Class Logo

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

Constructors

Logo()

public Logo()

Properties

AbovePrice

[Display(ResourceType = typeof(Strings), Name = "ShowAboveChart", GroupName = "Common", Description = "DrawAbovePriceDescription", Order = 50)]
public bool AbovePrice { get; set; }

Property Value

bool

FilePath

[Display(ResourceType = typeof(Strings), Name = "ImageLocation", GroupName = "Location", Description = "LogoFilePathDescription", Order = 70)]
[SelectFileEditor(Environment.SpecialFolder.MyPictures, Filter = "Image files (*.bmp, *.gif, *.jpeg, *.jpg, *.png, *.tiff)|*.bmp;*.gif;*.jpeg;*.jpg;*.png;*.tiff", IsTextEditable = false)]
public string FilePath { get; set; }

Property Value

string

HorizontalOffset

[Display(ResourceType = typeof(Strings), Name = "HorizontalOffset", GroupName = "Common", Description = "ImageOffsetXDescription", Order = 30)]
public int HorizontalOffset { get; set; }

Property Value

int

LogoLocation

[Display(ResourceType = typeof(Strings), Name = "LogoLocation", GroupName = "Common", Description = "ImageLocationDescription", Order = 20)]
public Logo.Location LogoLocation { get; set; }

Property Value

Logo.Location

Scale

[Display(ResourceType = typeof(Strings), Name = "Scale", GroupName = "Common", Description = "ElementScaleValueDescription", Order = 22)]
[NumericEditor(NumericEditorTypes.TrackBar, 0, 100)]
public int Scale { get; set; }

Property Value

int

Transparency

[Display(ResourceType = typeof(Strings), Name = "Transparency", GroupName = "Common", Description = "ImageTransparencyDescription", Order = 24)]
[NumericEditor(NumericEditorTypes.TrackBar, 0, 100)]
public int Transparency { get; set; }

Property Value

int

VerticalOffset

[Display(ResourceType = typeof(Strings), Name = "VerticalOffset", GroupName = "Common", Description = "ImageOffsetYDescription", Order = 40)]
public int VerticalOffset { get; set; }

Property Value

int

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()

OnRecalculate()

The method is executed before a new calculation.

protected override void OnRecalculate()

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.