ExpressionIndexSecurity
StockSharp.Algo.Expressions
The index, built of combination of several instruments through mathematical formula Expression.
Inherits: IndexSecurity
Implements: IDisposable
Constructors
ExpressionIndexSecurity
public ExpressionIndexSecurity()
expressionIndexSecurity = ExpressionIndexSecurity()
Initializes a new instance of the ExpressionIndexSecurity.
Properties
Expression
public string Expression { get; set; }
value = expressionIndexSecurity.Expression
expressionIndexSecurity.Expression = value
The mathematical formula of index.
Formula
public ExpressionFormula<decimal> Formula { get; private set; }
value = expressionIndexSecurity.Formula
expressionIndexSecurity.Formula = value
Compiled mathematical formula.
InnerSecurityIds
public override IEnumerable<SecurityId> InnerSecurityIds { get; }
value = expressionIndexSecurity.InnerSecurityIds
Instruments, from which this basket is created.
Methods
Clone
public override Security Clone()
result = expressionIndexSecurity.Clone()
Create a copy of Security.
Returns: Copy.
FromSerializedString
protected override void FromSerializedString(string text)
expressionIndexSecurity.FromSerializedString(text)
Load security state from .
- text
- Value, received from ToSerializedString.
ToSerializedString
protected override string ToSerializedString()
result = expressionIndexSecurity.ToSerializedString()
Save security state to string.
Returns: String.
ToString
public override string ToString()
result = expressionIndexSecurity.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.