Class TradesOnChart
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[HelpLink("https://help.atas.net/support/solutions/articles/72000633119")]
[Display(ResourceType = typeof(Strings), Description = "TradesOnChartDescription")]
public class TradesOnChart : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectTradesOnChart
- Implements
- Inherited Members
- Extension Methods
Constructors
TradesOnChart()
public TradesOnChart()
Properties
BuyColor
[Display(ResourceType = typeof(Strings), Name = "BuyColor", Description = "BuyTradeLineColorDescription", GroupName = "Visualization")]
public Color BuyColor { get; set; }
Property Value
- Color
LabelDisplay
[Display(ResourceType = typeof(Strings), Name = "LabelDisplay", Description = "LabelDisplayDescription", GroupName = "Visualization")]
public TradesOnChart.LabelDisplayMode LabelDisplay { get; set; }
Property Value
LineStyle
[Display(ResourceType = typeof(Strings), Name = "DashStyle", Description = "LineDashStyleDescription", GroupName = "Visualization")]
public DashStyle LineStyle { get; set; }
Property Value
- DashStyle
LineWidth
[Range(1, 20)]
[Display(ResourceType = typeof(Strings), Name = "LineWidth", Description = "LineWidthDescription", GroupName = "Visualization")]
public float LineWidth { get; set; }
Property Value
- float
LossColor
[Display(ResourceType = typeof(Strings), Name = "LossColor", Description = "LossTradeResultColorDescription", GroupName = "Visualization")]
public Color LossColor { get; set; }
Property Value
- Color
MarkerSize
[Range(1, 10)]
[Display(ResourceType = typeof(Strings), Name = "Size", Description = "SizeDescription", GroupName = "Visualization")]
public int MarkerSize { get; set; }
Property Value
- int
ProfitColor
[Display(ResourceType = typeof(Strings), Name = "ProfitColor", Description = "ProfitTradeResultColorDescription", GroupName = "Visualization")]
public Color ProfitColor { get; set; }
Property Value
- Color
SellColor
[Display(ResourceType = typeof(Strings), Name = "SellColor", Description = "SellTradeLineColorDescription", GroupName = "Visualization")]
public Color SellColor { get; set; }
Property Value
- Color
ShowLine
[Display(ResourceType = typeof(Strings), Name = "ShowLines", Description = "IsNeedShowLinesDescription", GroupName = "Visualization")]
public bool ShowLine { get; set; }
Property Value
- bool
ShowTooltip
[Display(ResourceType = typeof(Strings), Name = "ShowDescription", Description = "ShowTradeTooltipDescription", GroupName = "Visualization")]
public bool ShowTooltip { get; set; }
Property Value
- bool
Methods
OnApplyDefaultColors()
Invoked to apply default colors to the drawing elements.
protected override void OnApplyDefaultColors()
Remarks
This method can be overridden in derived classes to customize or set default color values for the drawing elements. When this method is called, it is an opportunity for the derived class to apply its own default color scheme to the drawing elements used in the specific implementation.
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.
OnDispose()
Called when the indicator is being disposed.
protected override void OnDispose()
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
contextRenderContextThe rendering context used to draw on the chart.
layoutDrawingLayoutsThe layout information for the drawing.