Class PnLQueue
- Namespace
- StockSharp.Algo.PnL
- Assembly
- StockSharp.Algo.dll
The queue of profit calculation by messages stream.
public class PnLQueue
- Inheritance
-
PnLQueue
- Inherited Members
- Extension Methods
Constructors
PnLQueue(SecurityId)
Initializes a new instance of the PnLQueue.
public PnLQueue(SecurityId securityId)
Parameters
securityId
SecurityIdSecurity ID.
Properties
AskPrice
Last price of offer.
public decimal? AskPrice { get; }
Property Value
BidPrice
Last price of bid.
public decimal? BidPrice { get; }
Property Value
LastPrice
Last price of tick trade.
public decimal? LastPrice { get; }
Property Value
Leverage
Leverage.
public decimal Leverage { get; set; }
Property Value
LotMultiplier
Lot multiplier.
public decimal LotMultiplier { get; set; }
Property Value
PriceStep
Price step.
public decimal PriceStep { get; }
Property Value
RealizedPnL
Realized profit.
public decimal RealizedPnL { get; }
Property Value
SecurityId
Security ID.
public SecurityId SecurityId { get; }
Property Value
StepPrice
Step price.
public decimal? StepPrice { get; }
Property Value
UnrealizedPnL
Unrealized profit.
public decimal? UnrealizedPnL { get; }
Property Value
Methods
Process(ExecutionMessage)
To calculate trade profitability. If the trade was already processed earlier, previous information returns.
public PnLInfo Process(ExecutionMessage trade)
Parameters
trade
ExecutionMessageTrade.
Returns
- PnLInfo
Information on new trade.
ProcessCandle(CandleMessage)
To process CandleMessage message.
public void ProcessCandle(CandleMessage candleMsg)
Parameters
candleMsg
CandleMessage
ProcessExecution(ExecutionMessage)
To process the message, containing information on tick trade.
public void ProcessExecution(ExecutionMessage execMsg)
Parameters
execMsg
ExecutionMessageThe message, containing information on tick trade.
ProcessLevel1(Level1ChangeMessage)
To process the message, containing market data.
public void ProcessLevel1(Level1ChangeMessage levelMsg)
Parameters
levelMsg
Level1ChangeMessageThe message, containing market data.
ProcessQuotes(QuoteChangeMessage)
To process the message, containing data on order book.
public void ProcessQuotes(QuoteChangeMessage quoteMsg)
Parameters
quoteMsg
QuoteChangeMessageThe message, containing data on order book.