Class Volume
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "VolumeIndDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602498")]
public class Volume : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectVolume
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Volume()
public Volume()
Fields
Format
Added in ATAS 8.0.15.
protected RenderStringFormat Format
Field Value
HighestVol
protected Highest HighestVol
Field Value
MaxVolSeries
Added in ATAS 8.0.15.
protected ValueDataSeries MaxVolSeries
Field Value
TextColor
protected Color TextColor
Field Value
- Color
Properties
AlertReverseFile
[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "ReverseAlert", Description = "AlertFileDescription")]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
[SoundComboBoxEditor]
public string AlertReverseFile { get; set; }
Property Value
- string
AlertVolumeFile
[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "Filter", Description = "AlertFileDescription")]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
[SoundComboBoxEditor]
public string AlertVolumeFile { get; set; }
Property Value
- string
DeltaColored
[Display(ResourceType = typeof(Strings), Name = "DeltaColored", GroupName = "Drawing", Description = "DeltaColoredDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool DeltaColored { get; set; }
Property Value
- bool
FilterColor
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "Filter", Description = "FilterColorDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color FilterColor { get; set; }
Property Value
- Color
FilterValue
[Display(ResourceType = typeof(Strings), Name = "Filter", GroupName = "Filter", Description = "MinVolumeFilterCommonDescription")]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
[Range(0, 1.7976931348623157E+308)]
public decimal FilterValue { get; set; }
Property Value
- decimal
FixedMajorLevel
[Display(ResourceType = typeof(Strings), Name = "MajorLevel", GroupName = "FixedThreshold", Description = "MajorLevelDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
[PostValueMode(PostValueModes.Delayed, DelayMilliseconds = 500)]
[Range(0, 1.7976931348623157E+308)]
public decimal FixedMajorLevel { get; set; }
Property Value
- decimal
FixedMinorLevel
Not in ATAS 8.0.15 yet: available from the next version.
[Display(ResourceType = typeof(Strings), Name = "MinorLevel", GroupName = "FixedThreshold", Description = "MinorLevelDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
[PostValueMode(PostValueModes.Delayed, DelayMilliseconds = 500)]
[Range(0, 1.7976931348623157E+308)]
public decimal FixedMinorLevel { get; set; }
Property Value
- decimal
Font
[Display(ResourceType = typeof(Strings), Name = "Font", GroupName = "VolumeLabel", Description = "FontSettingDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public FontSetting Font { get; set; }
Property Value
FontColor
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "VolumeLabel", Description = "LabelTextColorDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color FontColor { get; set; }
Property Value
- Color
HiVolPeriod
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "MaximumVolume", Description = "MaximumVolumePeriodDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
[Range(1, 100000)]
public int HiVolPeriod { get; set; }
Property Value
- int
Input
[Display(ResourceType = typeof(Strings), Name = "Type", GroupName = "Calculation", Description = "SourceTypeDescription")]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public Volume.InputType Input { get; set; }
Property Value
LineColor
[Display(ResourceType = typeof(Strings), Name = "Color", GroupName = "MaximumVolume", Description = "ColorDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color LineColor { get; set; }
Property Value
- Color
NegColor
[Display(ResourceType = typeof(Strings), Name = "Negative", GroupName = "Drawing", Description = "NegativeValueColorDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color NegColor { get; set; }
Property Value
- Color
NeutralColor
[Display(ResourceType = typeof(Strings), Name = "Neutral", GroupName = "Drawing", Description = "NeutralColorDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color NeutralColor { get; set; }
Property Value
- Color
PosColor
[Display(ResourceType = typeof(Strings), Name = "Positive", GroupName = "Drawing", Description = "PositiveValueColorDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Color PosColor { get; set; }
Property Value
- Color
ShowMaxVolume
[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "MaximumVolume", Description = "MaximumVolumeDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool ShowMaxVolume { get; set; }
Property Value
- bool
ShowThresholdLines
[Display(ResourceType = typeof(Strings), Name = "ShowThresholdLines", GroupName = "Thresholds", Description = "ShowThresholdLinesDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool ShowThresholdLines { get; set; }
Property Value
- bool
ShowVolume
[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "VolumeLabel", Description = "VolumeLabelDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public bool ShowVolume { get; set; }
Property Value
- bool
UseFilter
[Display(ResourceType = typeof(Strings), Name = "UseFilter", GroupName = "Filter", Description = "UseFilterDescription")]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public bool UseFilter { get; set; }
Property Value
- bool
UseReverseAlerts
[Display(ResourceType = typeof(Strings), Name = "Enabled", GroupName = "ReverseAlert", Description = "ReverseAlertDescription")]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public bool UseReverseAlerts { get; set; }
Property Value
- bool
UseVolumeAlerts
[Display(ResourceType = typeof(Strings), Name = "UseAlerts", GroupName = "Filter", Description = "UseAlertsDescription")]
[Tab(TabName = "Alerts", TabOrder = 2, ResourceType = typeof(Strings))]
public bool UseVolumeAlerts { get; set; }
Property Value
- bool
ValuesInMoney
Not in ATAS 8.0.15 yet: available from the next version.
[Display(ResourceType = typeof(Strings), Name = "ValuesInMoney", GroupName = "Calculation", Description = "VolumeValuesInMoneyDescription")]
[Tab(TabName = "Data", TabOrder = 0, ResourceType = typeof(Strings))]
public bool ValuesInMoney { get; set; }
Property Value
- bool
VolLocation
[Display(ResourceType = typeof(Strings), Name = "Location", GroupName = "VolumeLabel", Description = "LabelLocationDescription")]
[Tab(TabName = "Visualization", TabOrder = 1, ResourceType = typeof(Strings))]
public Volume.Location VolLocation { get; set; }
Property Value
Methods
FormatValue(decimal)
Formats a value of the indicator for a label: money with the currency sign in the money mode.
Not in ATAS 8.0.15 yet: available from the next version.
protected string FormatValue(decimal value)
Parameters
valuedecimal
Returns
- string
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()
Added in ATAS 8.0.15.
protected override void OnDispose()
OnInitialize()
The method is executed before the first calculation.
protected override void OnInitialize()
OnRender(RenderContext, DrawingLayouts)
Added in ATAS 8.0.15.
protected override void OnRender(RenderContext context, DrawingLayouts layout)
Parameters
contextRenderContextlayoutDrawingLayouts
OnValuationChanged()
Called when an exchange rate, the money display currency or the instrument model changed (Changed of Valuation). Indicators that show volumes in money recalculate or redraw them here. May be called on any thread.
Not in ATAS 8.0.15 yet: available from the next version.
protected override void OnValuationChanged()
ToString()
Added in ATAS 8.0.15.
public override string ToString()
Returns
- string