Table of Contents

Class PnLMessageAdapter

Namespace
StockSharp.Algo.PnL
Assembly
StockSharp.Algo.dll

The message adapter, automatically calculating profit-loss.

public class PnLMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, ICloneable<IMessageAdapter>, ICloneable
Inheritance
PnLMessageAdapter
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the PnLMessageAdapter.

Constructors

PnLMessageAdapter(IMessageAdapter, IPnLManager)

The message adapter, automatically calculating profit-loss.

public PnLMessageAdapter(IMessageAdapter innerAdapter, IPnLManager pnlManager)

Parameters

innerAdapter IMessageAdapter

The adapter, to which messages will be directed.

pnlManager IPnLManager

The profit-loss manager.

Remarks

Initializes a new instance of the PnLMessageAdapter.

Methods

Clone()

Create a copy of PnLMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

OnInnerAdapterNewOutMessage(Message)

protected override void OnInnerAdapterNewOutMessage(Message message)

Parameters

message Message

OnSendInMessage(Message)

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Returns

bool