Class PnLMessageAdapter
The message adapter, automatically calculating profit-loss.
Inherited Members
Namespace: StockSharp.Algo.PnL
Assembly: StockSharp.Algo.dll
Syntax
public class PnLMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
Constructors
PnLMessageAdapter(IMessageAdapter)
Initializes a new instance of the PnLMessageAdapter.
Declaration
public PnLMessageAdapter(IMessageAdapter innerAdapter)
Parameters
Type | Name | Description |
---|---|---|
IMessageAdapter | innerAdapter | The adapter, to which messages will be directed. |
Properties
PnLManager
The profit-loss manager.
Declaration
public IPnLManager PnLManager { get; set; }
Property Value
Type | Description |
---|---|
IPnLManager |
Methods
Clone()
Create a copy of PnLMessageAdapter.
Declaration
public override IMessageChannel Clone()
Returns
Type | Description |
---|---|
IMessageChannel | Copy. |
OnInnerAdapterNewOutMessage(Message)
Process InnerAdapter output message.
Declaration
protected override void OnInnerAdapterNewOutMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message. |
Overrides
OnSendInMessage(Message)
Send message.
Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Boolean | true if the specified message was processed successfully, otherwise, false. |
Overrides
Implements
Ecng.Common.ICloneable<>
Ecng.Serialization.IPersistable