Class PnLMessageAdapter
- Namespace
- StockSharp.Algo.PnL
- Assembly
- StockSharp.Algo.dll
The message adapter, automatically calculating profit-loss.
public class PnLMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
PnLMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
PnLMessageAdapter(IMessageAdapter)
Initializes a new instance of the PnLMessageAdapter.
public PnLMessageAdapter(IMessageAdapter innerAdapter)
Parameters
innerAdapter
IMessageAdapterThe adapter, to which messages will be directed.
Properties
PnLManager
The profit-loss manager.
public IPnLManager PnLManager { get; set; }
Property Value
Methods
Clone()
Create a copy of PnLMessageAdapter.
public override IMessageChannel Clone()
Returns
- IMessageChannel
Copy.
OnInnerAdapterNewOutMessage(Message)
Process InnerAdapter output message.
protected override void OnInnerAdapterNewOutMessage(Message message)
Parameters
message
MessageThe message.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.