Table of Contents

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 SecurityId

Security ID.

Properties

AskPrice

Last price of offer.

public decimal? AskPrice { get; }

Property Value

decimal?

BidPrice

Last price of bid.

public decimal? BidPrice { get; }

Property Value

decimal?

LastPrice

Last price of tick trade.

public decimal? LastPrice { get; }

Property Value

decimal?

Leverage

Leverage.

public decimal Leverage { get; set; }

Property Value

decimal

LotMultiplier

Lot multiplier.

public decimal LotMultiplier { get; set; }

Property Value

decimal

PriceStep

Price step.

public decimal PriceStep { get; }

Property Value

decimal

RealizedPnL

Realized profit.

public decimal RealizedPnL { get; }

Property Value

decimal

SecurityId

Security ID.

public SecurityId SecurityId { get; }

Property Value

SecurityId

StepPrice

Step price.

public decimal? StepPrice { get; }

Property Value

decimal?

UnrealizedPnL

Unrealized profit.

public decimal? UnrealizedPnL { get; }

Property Value

decimal?

Methods

Process(ExecutionMessage)

To calculate trade profitability. If the trade was already processed earlier, previous information returns.

public PnLInfo Process(ExecutionMessage trade)

Parameters

trade ExecutionMessage

Trade.

Returns

PnLInfo

Information on new trade.

ProcessCandle(CandleMessage)

To process CandleMessage message.

public void ProcessCandle(CandleMessage candleMsg)

Parameters

candleMsg CandleMessage

CandleMessage.

ProcessExecution(ExecutionMessage)

To process the message, containing information on tick trade.

public void ProcessExecution(ExecutionMessage execMsg)

Parameters

execMsg ExecutionMessage

The message, containing information on tick trade.

ProcessLevel1(Level1ChangeMessage)

To process the message, containing market data.

public void ProcessLevel1(Level1ChangeMessage levelMsg)

Parameters

levelMsg Level1ChangeMessage

The message, containing market data.

ProcessQuotes(QuoteChangeMessage)

To process the message, containing data on order book.

public void ProcessQuotes(QuoteChangeMessage quoteMsg)

Parameters

quoteMsg QuoteChangeMessage

The message, containing data on order book.