Class Pivots
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "PivotsDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602446")]
public class Pivots : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectPivots
- Implements
- Inherited Members
- Extension Methods
Constructors
Pivots()
public Pivots()
Properties
FontSize
[Display(ResourceType = typeof(Strings), Name = "TextSize", GroupName = "Text", Description = "FontSizeDescription", Order = 60)]
[Range(1, 1000)]
public int FontSize { get; set; }
Property Value
- int
Location
[Display(ResourceType = typeof(Strings), Name = "TextLocation", GroupName = "Text", Description = "LabelLocationDescription", Order = 70)]
public Pivots.TextLocation Location { get; set; }
Property Value
PivotRange
[Parameter]
[Display(ResourceType = typeof(Strings), Name = "PivotRange", GroupName = "Settings", Description = "PeriodTypeDescription", Order = 15)]
public Pivots.Period PivotRange { get; set; }
Property Value
RenderPeriodsFilter
[Range(1, 2147483647)]
[Display(ResourceType = typeof(Strings), Name = "RenderPeriods", GroupName = "Settings", Description = "PeriodsCountFilterDescription", Order = 10)]
public FilterInt RenderPeriodsFilter { get; set; }
Property Value
SessionBegin
[Display(ResourceType = typeof(Strings), Name = "SessionBegin", GroupName = "CustomSession", Description = "SessionBeginDescription", Order = 30)]
[Mask(MaskTypes.DateTimeAdvancingCaret, "HH:mm:ss")]
public TimeSpan SessionBegin { get; set; }
Property Value
- TimeSpan
SessionEnd
[Display(ResourceType = typeof(Strings), Name = "SessionEnd", GroupName = "CustomSession", Description = "SessionEndDescription", Order = 40)]
[Mask(MaskTypes.DateTimeAdvancingCaret, "HH:mm:ss")]
public TimeSpan SessionEnd { get; set; }
Property Value
- TimeSpan
ShowText
[Display(ResourceType = typeof(Strings), Name = "Show", GroupName = "Text", Description = "IsNeedShowLabelDescription", Order = 50)]
public bool ShowText { get; set; }
Property Value
- bool
ThirdFormula
[Display(ResourceType = typeof(Strings), Name = "ThirdFormula", GroupName = "Settings", Description = "CalculationModeDescription", Order = 5)]
public Pivots.Formula ThirdFormula { get; set; }
Property Value
UseCustomSession
[Display(ResourceType = typeof(Strings), Name = "Enabled", GroupName = "CustomSession", Description = "IsCustomSessionDescription", Order = 20)]
public bool UseCustomSession { get; set; }
Property Value
- bool
Methods
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.
OnInitialize()
The method is executed before the first calculation.
protected override void OnInitialize()