Class SpreadVolume
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "SpreadVolumeDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602630")]
public class SpreadVolume : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectSpreadVolume
- Implements
- Inherited Members
- Extension Methods
Constructors
SpreadVolume()
public SpreadVolume()
Properties
BuyColor
[Display(ResourceType = typeof(Strings), Name = "BuyColor", GroupName = "Colors", Description = "BuySignalColorDescription", Order = 1)]
public Color BuyColor { get; set; }
Property Value
- Color
Offset
[Display(ResourceType = typeof(Strings), Name = "Offset", GroupName = "Common", Description = "LabelOffsetXDescription")]
public int Offset { get; set; }
Property Value
- int
SellColor
[Display(ResourceType = typeof(Strings), Name = "SellColor", GroupName = "Colors", Description = "SellSignalColorDescription", Order = 3)]
public Color SellColor { get; set; }
Property Value
- Color
Spacing
[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Spacing", GroupName = "Common", Description = "SpaceBetweenLabelsDescription")]
public int Spacing { get; set; }
Property Value
- int
TextColor
[Display(ResourceType = typeof(Strings), Name = "TextColor", GroupName = "Colors", Description = "LabelTextColorDescription", Order = 4)]
public Color TextColor { get; set; }
Property Value
- Color
Width
[Range(10, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Width", GroupName = "Common", Description = "LabelWidthDescription")]
public int Width { get; set; }
Property Value
- int
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.
OnCumulativeTrade(CumulativeTrade)
Handles a cumulative trade event represented by a CumulativeTrade object.
protected override void OnCumulativeTrade(CumulativeTrade trade)
Parameters
tradeCumulativeTradeThe CumulativeTrade representing the cumulative trade data.
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.
OnUpdateCumulativeTrade(CumulativeTrade)
Handles an update event for a cumulative trade represented by a CumulativeTrade object.
protected override void OnUpdateCumulativeTrade(CumulativeTrade trade)
Parameters
tradeCumulativeTradeThe CumulativeTrade representing the updated cumulative trade data.