Envelope
StockSharp.Algo.Indicators
Envelope indicator.
Inherits: BaseComplexIndicator<IEnvelopeValue>
Constructors
Envelope
public Envelope(DecimalLengthIndicator ma)
envelope = Envelope(ma)
Initializes a new instance of the Envelope.
- ma
- Middle line.
Properties
Length
public int Length { get; set; }
value = envelope.Length
envelope.Length = value
Period length. By default equal to 1.
Shift
public decimal Shift { get; set; }
value = envelope.Shift
envelope.Shift = value
The shift width. Specified as percentage from 0 to 1. The default equals to 0.01.
Methods
CalcIsFormed
protected override bool CalcIsFormed()
result = envelope.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
CreateValue
protected override IEnvelopeValue CreateValue(DateTime time)
result = envelope.CreateValue(time)
Create .
- time
- Time
Load
public override void Load(SettingsStorage storage)
envelope.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = envelope.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
Save
public override void Save(SettingsStorage storage)
envelope.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = envelope.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.