Class Ratio
- Namespace
- ATAS.Indicators.Technical
- Assembly
- ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "RatioDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602282")]
public class Ratio : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
- Inheritance
-
objectRatio
- Implements
- Inherited Members
- Extension Methods
Constructors
Ratio()
public Ratio()
Fields
Call
public const int Call = 1
Field Value
- int
CallPutCount
public int CallPutCount
Field Value
- int
Put
public const int Put = -1
Field Value
- int
Wait
public const int Wait = 0
Field Value
- int
Properties
BackgroundColor
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "BackGround", Description = "FillColorDescription", Order = 13)]
public Color BackgroundColor { get; set; }
Property Value
- Color
Days
[Display(ResourceType = typeof(Strings), GroupName = "Calculation", Name = "DaysLookBack", Order = 2147483647, Description = "DaysLookBackDescription")]
[Range(0, 1000)]
public int Days { get; set; }
Property Value
- int
FontSize
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "FontSize", Description = "FontSizeDescription", Order = 22)]
[Range(1, 10000)]
public int FontSize { get; set; }
Property Value
- int
HighColor
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "HighColor", Description = "HighRatioColorDescription", Order = 12)]
public Color HighColor { get; set; }
Property Value
- Color
LowColor
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "LowColor", Description = "LowRatioColorDescription", Order = 10)]
public Color LowColor { get; set; }
Property Value
- Color
LowRatio
[Display(ResourceType = typeof(Strings), GroupName = "Settings", Name = "LowRatio", Description = "LowRatioDescription", Order = 20)]
public decimal LowRatio { get; set; }
Property Value
- decimal
NeutralColor
[Display(ResourceType = typeof(Strings), GroupName = "Colors", Name = "NeutralColor", Description = "NeutralRatioColorDescription", Order = 11)]
public Color NeutralColor { get; set; }
Property Value
- Color
NeutralRatio
[Display(ResourceType = typeof(Strings), GroupName = "Settings", Name = "NeutralRatio", Description = "HighRatioDescription", Order = 21)]
public decimal NeutralRatio { get; set; }
Property Value
- decimal
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.