ExpressionIndexSecurityProcessor

StockSharp.Algo.Expressions

Index Finanzinstrumente Prozessor für ExpressionIndexSecurity.

Erbt von: IndexSecurityBaseProcessor<ExpressionIndexSecurity>

Konstruktoren

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

Index Finanzinstrumente Prozessor für ExpressionIndexSecurity.

basketSecurity
Der Index, der aus der Kombination mehrerer Instrumente durch mathematische Formel Ausdruck aufgebaut ist.

Methoden

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

Rückgabe: ValueTask

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

Um den Korbwert zu berechnen.

values
Werte von Korb zusammengesetzte Instrumente InnerSecurityIds.

Rückgabe: Der Korbwert.