Class Envelope
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Envelope indicator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Envelope", Description = "EnvelopeDesc")]
[Doc("topics/api/indicators/list_of_indicators/envelope.html")]
[IndicatorOut(typeof(EnvelopeValue))]
public class Envelope : BaseComplexIndicator<EnvelopeValue>, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
Envelope
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Envelope()
Initializes a new instance of the Envelope.
public Envelope()
Envelope(LengthIndicator<decimal>)
Initializes a new instance of the Envelope.
public Envelope(LengthIndicator<decimal> ma)
Parameters
maLengthIndicator<decimal>Middle line.
Properties
Length
Period length. By default equal to 1.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Period", Description = "IndicatorPeriod", GroupName = "General")]
public int Length { get; set; }
Property Value
Lower
Lower line.
[Browsable(false)]
public LengthIndicator<decimal> Lower { get; }
Property Value
Middle
Middle line.
[Browsable(false)]
public LengthIndicator<decimal> Middle { get; }
Property Value
Shift
The shift width. Specified as percentage from 0 to 1. The default equals to 0.01.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Threshold", Description = "ThresholdDesc", GroupName = "General")]
public decimal Shift { get; set; }
Property Value
Upper
Upper line.
[Browsable(false)]
public LengthIndicator<decimal> Upper { get; }
Property Value
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
CreateValue(DateTimeOffset)
Create EnvelopeValue.
protected override EnvelopeValue CreateValue(DateTimeOffset time)
Parameters
timeDateTimeOffset
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
inputIIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
ToString()
public override string ToString()