IQuotingBehavior

StockSharp.Algo.Strategies.Quoting

Definiert das Verhalten für die Berechnung des besten Preises und die Bestimmung, ob ein Zitat erforderlich ist.

Methoden

CalculateBestPrice
public decimal? CalculateBestPrice(Security security, IMarketDataProvider provider, Sides quotingDirection, decimal? bestBidPrice, decimal? bestAskPrice, decimal? lastTradePrice, decimal? lastTradeVolume, long lastTradeSeq, QuoteChange[] bids, QuoteChange[] asks)
result = iQuotingBehavior.CalculateBestPrice(security, provider, quotingDirection, bestBidPrice, bestAskPrice, lastTradePrice, lastTradeVolume, lastTradeSeq, bids, asks)

Calculates the best price for quoting based on market data.

security
Security
provider
IMarketDataProvider
quotingDirection
The direction of quoting (Buy or Sell).
bestBidPrice
The best bid price in the order book.
bestAskPrice
The best ask price in the order book.
lastTradePrice
The price of the last trade.
lastTradeVolume
The volume of the last trade.
lastTradeSeq
The identity of the last trade. It stays unchanged while the same trade is presented again, so a behavior that accumulates can count each trade once.
bids
Array of bid quotes from the order book.
asks
Array of ask quotes from the order book.

Rückgabe: The calculated best price for quoting, or null if unavailable.

NeedQuoting
public decimal? NeedQuoting(Security security, IMarketDataProvider provider, DateTime currentTime, decimal? currentPrice, decimal? currentVolume, decimal newVolume, decimal? bestPrice)
result = iQuotingBehavior.NeedQuoting(security, provider, currentTime, currentPrice, currentVolume, newVolume, bestPrice)

Bestimmt, ob eine Zitierung auf der Grundlage des aktuellen Auftragszustands und der Marktbedingungen erforderlich ist.

security
Finanzinstrument
provider
IMarketDataProvider
currentTime
Die aktuelle Zeit.
currentPrice
Der aktuelle Preis der Bestellung, oder null, wenn nicht registriert.
currentVolume
Das aktuelle Volumen der Bestellung oder null, wenn nicht registriert.
newVolume
Das neue Volumen wird zitiert.
bestPrice
Der berechnete beste Preis für das Zitieren.

Rückgabe: Der Preis, um an, oder null zu zitieren, wenn das Zitieren nicht erforderlich ist.