PnLManager

StockSharp.Algo.PnL

The profit-loss manager.

Implements: IPnLManager, IPersistable, ICloneable<IPnLManager>, ICloneable

Constructors

PnLManager
public PnLManager()
pnLManager = PnLManager()

Initializes a new instance of the PnLManager.

Properties

RealizedPnL
public decimal RealizedPnL { get; private set; }
value = pnLManager.RealizedPnL
pnLManager.RealizedPnL = value

The value of realized profit-loss.

UnrealizedPnL
public decimal UnrealizedPnL { get; }
value = pnLManager.UnrealizedPnL

The value of unrealized profit-loss.

UseCandles
public bool UseCandles { get; set; }
value = pnLManager.UseCandles
pnLManager.UseCandles = value

Use IsCandles for UnrealizedPnL calculation.

UseLevel1
public bool UseLevel1 { get; set; }
value = pnLManager.UseLevel1
pnLManager.UseLevel1 = value

Use Level1 for UnrealizedPnL calculation.

UseOrderBook
public bool UseOrderBook { get; set; }
value = pnLManager.UseOrderBook
pnLManager.UseOrderBook = value

Use MarketDepth for UnrealizedPnL calculation.

UseOrderLog
public bool UseOrderLog { get; set; }
value = pnLManager.UseOrderLog
pnLManager.UseOrderLog = value

Use OrderLog for UnrealizedPnL calculation.

UseTick
public bool UseTick { get; set; }
value = pnLManager.UseTick
pnLManager.UseTick = value

Use Ticks for UnrealizedPnL calculation.

Methods

Clone
public IPnLManager Clone()
result = pnLManager.Clone()

Creates a new object that is a deep copy of the current instance.

Returns: A new object that is a deep copy of this instance.

Load
public void Load(SettingsStorage storage)
pnLManager.Load(storage)

Load settings.

storage
Storage.
Reset
public void Reset()
pnLManager.Reset()

To zero PnL.

Save
public void Save(SettingsStorage storage)
pnLManager.Save(storage)

Save settings.

storage
Storage.