ExpressionIndexSecurityProcessor

StockSharp.Algo.Expressions

Процессор индексных финансовых инструментов для ExpressionIndexSecurity.

Наследует: IndexSecurityBaseProcessor<ExpressionIndexSecurity>

Конструкторы

ExpressionIndexSecurityProcessor
public ExpressionIndexSecurityProcessor(Security basketSecurity)
expressionIndexSecurityProcessor = ExpressionIndexSecurityProcessor(basketSecurity)

Процессор индексных финансовых инструментов для ExpressionIndexSecurity.

basketSecurity
Индекс, построенный из комбинации нескольких инструментов посредством математической формулы Expression.

Методы

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

Возвращает: ValueTask

OnCalculate
protected override decimal OnCalculate(decimal[] values)
result = expressionIndexSecurityProcessor.OnCalculate(values)

Для расчета стоимости корзины.

values
Значения корзины составных инструментов InnerSecurityIds.

Возвращает: Стоимость корзины.