IndexSecurityBaseProcessor
StockSharp.Algo
Базовый индексный процессор финансовых инструментов.
Наследует: BasketSecurityBaseProcessor<T>
Конструкторы
IndexSecurityBaseProcessor
protected IndexSecurityBaseProcessor(Security security)
indexSecurityBaseProcessor = IndexSecurityBaseProcessor(security)
Базовый индексный процессор финансовых инструментов.
- security
- финансовый инструмент.
Методы
GetCandleHigh
protected virtual decimal GetCandleHigh(CandleMessage candle, int legIndex)
result = indexSecurityBaseProcessor.GetCandleHigh(candle, legIndex)
Get a leg price used to build the basket candle high.
GetCandleLow
protected virtual decimal GetCandleLow(CandleMessage candle, int legIndex)
result = indexSecurityBaseProcessor.GetCandleLow(candle, legIndex)
Get a leg price used to build the basket candle low.
GetQuotes
protected virtual QuoteChange[] GetQuotes(QuoteChangeMessage message, int legIndex, bool isBid)
result = indexSecurityBaseProcessor.GetQuotes(message, legIndex, isBid)
Get a leg side used to build one side of the basket book.
- message
- Leg order book.
- legIndex
- Leg index.
- isBid
- Whether the basket bid is being built.
Возвращает: Quotes used for the basket side.
OnCalculate
protected abstract decimal OnCalculate(decimal[] values)
result = indexSecurityBaseProcessor.OnCalculate(values)
Для расчета стоимости корзины.
- values
- Значения корзины составных инструментов InnerSecurityIds.
Возвращает: Стоимость корзины.
Process
public override IEnumerable<Message> Process(Message message)
result = indexSecurityBaseProcessor.Process(message)
Проверьте сообщение об условиях оповещения.
- message
- Сообщение.
Возвращает: Output messages.