Class OrderBlock
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "OrderBlockIndDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000641186-order-block")]
public class OrderBlock : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectOrderBlock
- Implements
- Inherited Members
- Extension Methods
Constructors
OrderBlock()
public OrderBlock()
Properties
BearishBreakColor
[Display(ResourceType = typeof(Strings), Name = "BearishBreakColor", GroupName = "Bearish", Description = "BrokenBearishDescription")]
public Color BearishBreakColor { get; set; }
Property Value
- Color
BearishColor
[Display(ResourceType = typeof(Strings), Name = "BearishColor", GroupName = "Bearish", Description = "BearishColorDescription")]
public Color BearishColor { get; set; }
Property Value
- Color
BearishNumber
[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "LastBearishElementsNumber", GroupName = "Bearish")]
public int BearishNumber { get; set; }
Property Value
- int
BullishBreakColor
[Display(ResourceType = typeof(Strings), Name = "BullishBreakColor", GroupName = "Bullish", Description = "BrokenBullishDescription")]
public Color BullishBreakColor { get; set; }
Property Value
- Color
BullishColor
[Display(ResourceType = typeof(Strings), Name = "BullishColor", GroupName = "Bullish", Description = "BullishColorDescription")]
public Color BullishColor { get; set; }
Property Value
- Color
BullishNumber
[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "LastBullishElementsNumber", GroupName = "Bullish")]
public int BullishNumber { get; set; }
Property Value
- int
Period
[Parameter]
[Range(3, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "Settings", Description = "PeriodDescription")]
public int Period { get; set; }
Property Value
- int
PocColor
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "PocLevel", Description = "ColorDescription")]
public Color PocColor { get; set; }
Property Value
- Color
PocStyle
[Display(ResourceType = typeof(Strings), Name = "LineDashStyle", GroupName = "PocLevel", Description = "LineDashStyleDescription")]
public LineDashStyle PocStyle { get; set; }
Property Value
PocWidth
[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Width", GroupName = "PocLevel", Description = "LineWidthDescription")]
public int PocWidth { get; set; }
Property Value
- int
ShowPocLevel
[Display(ResourceType = typeof(Strings), Name = "ShowPocLevel", GroupName = "PocLevel", Description = "ShowPocLevelDescription")]
public bool ShowPocLevel { get; set; }
Property Value
- bool
Transparency
[Range(0, 10)]
[Display(ResourceType = typeof(Strings), Name = "Transparency", GroupName = "Settings", Description = "VisualObjectsTransparencyDescription")]
public int Transparency { get; set; }
Property Value
- int
UsBody
[Display(ResourceType = typeof(Strings), Name = "IgnoreWicks", GroupName = "Settings", Description = "IgnoreWicksDescription")]
public bool UsBody { 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.
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.