ExpressionIndexSecurityProcessor
StockSharp.Algo.Expressions
Index securities processor for ExpressionIndexSecurity.
Inherits: IndexSecurityBaseProcessor<ExpressionIndexSecurity>
Constructors
ExpressionIndexSecurityProcessor
public ExpressionIndexSecurityProcessor(Security basketSecurity)
expressionIndexSecurityProcessor = ExpressionIndexSecurityProcessor(basketSecurity)
Index securities processor for ExpressionIndexSecurity.
- basketSecurity
- The index, built of combination of several instruments through mathematical formula Expression.
Methods
InitAsync
public override ValueTask InitAsync(CancellationToken cancellationToken)
result = expressionIndexSecurityProcessor.InitAsync(cancellationToken)
Prepare the processor for Message): whatever it needs that has to be waited for.
- cancellationToken
- CancellationToken
Returns: ValueTask
OnCalculate
protected override decimal OnCalculate(decimal[] values)
result = expressionIndexSecurityProcessor.OnCalculate(values)
To calculate the basket value.
- values
- Values of basket composite instruments InnerSecurityIds.
Returns: The basket value.