AlligatorLine
The realization of one of indicator lines Alligator (Jaw, Teeth, and Lips).
Inherits: DecimalLengthIndicator
Constructors
public AlligatorLine()
alligatorLine = AlligatorLine()
Initializes a new instance of the AlligatorLine.
Properties
public override int NumValuesToInitialize { get; }
value = alligatorLine.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
public int Shift { get; set; }
value = alligatorLine.Shift
alligatorLine.Shift = value
Shift to the future.
Methods
protected override bool CalcIsFormed()
result = alligatorLine.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
protected override int GetCapacity()
result = alligatorLine.GetCapacity()
Gets the capacity of the buffer for data storage.
Returns: The capacity of the buffer. By default, it is equal to Length.
public override void Load(SettingsStorage storage)
alligatorLine.Load(storage)
Load settings.
- storage
- Settings storage.
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = alligatorLine.OnProcessDecimal(input)
To handle the input value.
- input
- The input value.
Returns: The new value of the indicator.
public override void Reset()
alligatorLine.Reset()
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).
public override void Save(SettingsStorage storage)
alligatorLine.Save(storage)
Save settings.
- storage
- Settings storage.
public override string ToString()
result = alligatorLine.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.