Class SpeedOfTape
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "SpeedOfTapeDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602472")]
public class SpeedOfTape : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectSpeedOfTape
- Implements
- Inherited Members
- Extension Methods
Constructors
SpeedOfTape()
public SpeedOfTape()
Properties
AlertBgColor
[Display(ResourceType = typeof(Strings), Name = "BackGround", GroupName = "Alerts", Description = "AlertFillColorDescription")]
public Color AlertBgColor { get; set; }
Property Value
- Color
AlertFile
[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "Alerts", Description = "AlertFileDescription")]
public string AlertFile { get; set; }
Property Value
- string
AlertForeColor
[Display(ResourceType = typeof(Strings), Name = "FontColor", GroupName = "Alerts", Description = "AlertTextColorDescription")]
public Color AlertForeColor { get; set; }
Property Value
- Color
AutoFilter
[Display(ResourceType = typeof(Strings), Name = "AutoFilter", GroupName = "Filters", Description = "SpeedOfTapeAutoFilterDescription")]
public bool AutoFilter { get; set; }
Property Value
- bool
AutoFilterPeriod
[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "AutoFilterPeriod", GroupName = "Filters", Description = "SMAPeriodDescription")]
public int AutoFilterPeriod { get; set; }
Property Value
- int
BarsLength
[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "Length", GroupName = "Visualization", Description = "LineLengthDescription")]
public int BarsLength { get; set; }
Property Value
- int
DrawLines
[Display(ResourceType = typeof(Strings), Name = "ShowPriceSelection", GroupName = "Visualization", Description = "DrawLinesDescription")]
public bool DrawLines { get; set; }
Property Value
- bool
MaxSpeedColor
[Display(ResourceType = typeof(Strings), Name = "FilterColor", GroupName = "Visualization", Description = "FilterCandleColorDescription")]
public Color MaxSpeedColor { get; set; }
Property Value
- Color
NegPen
[Display(ResourceType = typeof(Strings), Name = "NegativeDelta", GroupName = "Visualization", Description = "PenSettingsDescription")]
public PenSettings NegPen { get; set; }
Property Value
PaintBars
[Display(ResourceType = typeof(Strings), Name = "PaintBars", GroupName = "Visualization", Description = "PaintBarsDescription")]
public bool PaintBars { get; set; }
Property Value
- bool
PosPen
[Display(ResourceType = typeof(Strings), Name = "PositiveDelta", GroupName = "Visualization", Description = "PenSettingsDescription")]
public PenSettings PosPen { get; set; }
Property Value
Sec
[Parameter]
[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "TimeFilterSec", GroupName = "Filters", Description = "MaxTimeFilterDescription")]
public int Sec { get; set; }
Property Value
- int
Trades
[Range(0, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "TradesFilter", GroupName = "Filters", Description = "TradesCountDescription")]
public int Trades { get; set; }
Property Value
- int
Type
[Display(ResourceType = typeof(Strings), Name = "CalculationMode", GroupName = "Filters", Description = "CalculationModeDescription")]
public SpeedOfTape.SpeedOfTapeType Type { get; set; }
Property Value
UseAlerts
[Display(ResourceType = typeof(Strings), Name = "UseAlerts", GroupName = "Alerts", Description = "UseAlertsDescription")]
public bool UseAlerts { 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.