Class AccountSnapshot
- Namespace
- ATAS.Indicators.Trading
- Assembly
- ATAS.Indicators.dll
A trading account at one moment, copied by the platform.
<p>Not in ATAS 8.0.15 yet: available from the next version.</p>
public sealed class AccountSnapshot
- Inheritance
-
objectAccountSnapshot
- Extension Methods
Constructors
AccountSnapshot()
Initializes an empty snapshot; the platform sets the values.
public AccountSnapshot()
Properties
AccountId
The account id, as the platform shows it.
public string AccountId { get; init; }
Property Value
- string
Balance
The balance of the account, in the account currency.
public decimal Balance { get; init; }
Property Value
- decimal
ConnectionName
The name of the connection the account belongs to.
public string ConnectionName { get; init; }
Property Value
- string
IsReplay
True for the account of Market Replay: its orders never reach a broker.
public bool IsReplay { get; init; }
Property Value
- bool
IsSimulation
True for a simulated account of the platform's own simulator.
public bool IsSimulation { get; init; }
Property Value
- bool
OpenPnL
The unrealized profit or loss of all open positions, in the account currency.
public decimal OpenPnL { get; init; }
Property Value
- decimal
RealizedPnL
The realized profit or loss of the account, in the account currency.
public decimal RealizedPnL { get; init; }
Property Value
- decimal
Remarks
The value as the connection reports it: the period it covers (the trading day, the session, or the whole history of the account) and whether commissions are included depend on the broker. A rule over a day's result stores the value at the start of its own day and compares with that; a drop between two checks is a realized loss.