Class Envelope
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Envelope.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Envelope")]
public class Envelope : BaseComplexIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
Envelope
- Implements
-
IPersistableICloneable<IIndicator>
- Derived
- Inherited Members
- Extension Methods
Remarks
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
ma
LengthIndicator<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
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()