Class Watermark
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "WatermarkIndDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602668")]
public class Watermark : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectWatermark
- Implements
- Inherited Members
- Extension Methods
Constructors
Watermark()
public Watermark()
Properties
AdditionalFont
[Display(ResourceType = typeof(Strings), Name = "Font", GroupName = "SecondLine", Description = "FontSettingDescription", Order = 90)]
public FontSetting AdditionalFont { get; set; }
Property Value
AdditionalText
[Display(ResourceType = typeof(Strings), Name = "Text", GroupName = "SecondLine", Description = "LabelTextDescription", Order = 80)]
public string AdditionalText { get; set; }
Property Value
- string
AdditionalTextYOffset
[Display(ResourceType = typeof(Strings), Name = "VerticalOffset", GroupName = "SecondLine", Description = "LabelOffsetYDescription", Order = 100)]
[Range(-100000, 100000)]
public int AdditionalTextYOffset { get; set; }
Property Value
- int
Font
[Display(ResourceType = typeof(Strings), Name = "Font", GroupName = "FirstLine", Description = "FontSettingDescription", Order = 70)]
public FontSetting Font { get; set; }
Property Value
HorizontalOffset
[Display(ResourceType = typeof(Strings), Name = "HorizontalOffset", GroupName = "Common", Description = "LabelOffsetXDescription", Order = 30)]
[Range(-100000, 100000)]
public int HorizontalOffset { get; set; }
Property Value
- int
ShowInstrument
[Display(ResourceType = typeof(Strings), Name = "ShowInstrument", GroupName = "FirstLine", Description = "ShowCurrentParameterNameDescription", Order = 50)]
public bool ShowInstrument { get; set; }
Property Value
- bool
ShowPeriod
[Display(ResourceType = typeof(Strings), Name = "ShowPeriod", GroupName = "FirstLine", Description = "ShowCurrentParameterNameDescription", Order = 60)]
public bool ShowPeriod { get; set; }
Property Value
- bool
TextColor
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "Common", Description = "LabelTextColorDescription", Order = 10)]
public Color TextColor { get; set; }
Property Value
- Color
TextLocation
[Display(ResourceType = typeof(Strings), Name = "TextLocation", GroupName = "Common", Description = "LabelLocationDescription", Order = 20)]
public Watermark.Location TextLocation { get; set; }
Property Value
VerticalOffset
[Display(ResourceType = typeof(Strings), Name = "VerticalOffset", GroupName = "Common", Description = "LabelOffsetYDescription", Order = 40)]
[Range(-100000, 100000)]
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
barintBar number.
valuedecimalInput 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
contextRenderContextThe rendering context used to draw on the chart.
layoutDrawingLayoutsThe layout information for the drawing.