WeightedIndexSecurity
StockSharp.Algo
The instruments basket, based on weigh-scales Weights.
Inherits: IndexSecurity
Constructors
WeightedIndexSecurity
public WeightedIndexSecurity()
weightedIndexSecurity = WeightedIndexSecurity()
Initializes a new instance of the WeightedIndexSecurity.
Properties
InnerSecurityIds
public override IEnumerable<SecurityId> InnerSecurityIds { get; }
value = weightedIndexSecurity.InnerSecurityIds
Instruments, from which this basket is created.
Weights
public CachedSynchronizedDictionary<SecurityId, decimal> Weights { get; }
value = weightedIndexSecurity.Weights
Instruments and their weighting coefficients in the basket.
Methods
Clone
public override Security Clone()
result = weightedIndexSecurity.Clone()
Create a copy of Security.
Returns: Copy.
FromSerializedString
protected override void FromSerializedString(string text)
weightedIndexSecurity.FromSerializedString(text)
Load security state from .
- text
- Value, received from ToSerializedString.
ToSerializedString
protected override string ToSerializedString()
result = weightedIndexSecurity.ToSerializedString()
Save security state to string.
Returns: String.
ToString
public override string ToString()
result = weightedIndexSecurity.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.