Class HistoryMyTrade
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Represents a historical trade record.
public class HistoryMyTrade
- Inheritance
-
objectHistoryMyTrade
- Extension Methods
Constructors
HistoryMyTrade()
public HistoryMyTrade()
Properties
AccountID
Gets or sets the account ID associated with the historical trade.
public string? AccountID { get; set; }
Property Value
- string
ClosePrice
Gets or sets the close price of the historical trade.
public decimal ClosePrice { get; set; }
Property Value
- decimal
CloseTime
Gets or sets the close time of the historical trade.
public DateTime CloseTime { get; set; }
Property Value
- DateTime
CloseVolume
Gets or sets the close volume of the historical trade.
public decimal CloseVolume { get; set; }
Property Value
- decimal
Comment
Gets or sets the comment associated with the historical trade.
public string Comment { get; set; }
Property Value
- string
Commission
Gets or sets the commission associated with the historical trade.
public decimal? Commission { get; set; }
Property Value
- decimal?
EnterTrade
Gets or sets the enter trade associated with the historical trade.
public MyTrade EnterTrade { get; set; }
Property Value
EnterTradeId
Gets or sets the ID of the trade that opened the position. Not a LinqToDB column: the legacy SQLite storage has no such field, and the file cache persists the property through an explicit registry configuration instead.
Added in ATAS 8.0.15.
public string? EnterTradeId { get; set; }
Property Value
- string
ExitTrade
Gets or sets the exit trade associated with the historical trade.
public MyTrade ExitTrade { get; set; }
Property Value
ExitTradeId
Gets or sets the ID of the trade that closed the position. Not a LinqToDB column: see EnterTradeId.
Added in ATAS 8.0.15.
public string? ExitTradeId { get; set; }
Property Value
- string
Id
Gets or sets the unique identifier of the historical trade.
public long Id { get; set; }
Property Value
- long
IsComplete
Gets whether both the opening and the closing part of the trade are known: open and close prices and times are all non-default.
public bool IsComplete { get; }
Property Value
- bool
MissingDataCase
Indicates what part of the trade is missing
public MissingDataCases MissingDataCase { get; set; }
Property Value
OpenPrice
Gets or sets the open price of the historical trade.
public decimal OpenPrice { get; set; }
Property Value
- decimal
OpenTime
Gets or sets the open time of the historical trade.
public DateTime OpenTime { get; set; }
Property Value
- DateTime
OpenVolume
Gets or sets the open volume of the historical trade.
public decimal OpenVolume { get; set; }
Property Value
- decimal
Playbooks
Gets or sets the trading journal playbooks the trade is assigned to. Empty by default.
Added in ATAS 8.0.15.
[DataMember]
[LocalizedCategory(typeof(Strings), "Common")]
[LocalizedDisplayName(typeof(Strings), "Playbooks")]
public List<Playbook> Playbooks { get; set; }
Property Value
- List<Playbook>
PnL
Gets or sets the profit and loss (PnL) of the historical trade.
public decimal PnL { get; set; }
Property Value
- decimal
Portfolio
Gets or sets the portfolio object associated with the historical trade.
public Portfolio? Portfolio { get; set; }
Property Value
PricePnL
Gets or sets the PnL in price units of the historical trade.
public decimal PricePnL { get; set; }
Property Value
- decimal
Reviewed
Gets or sets the reviewed flag of the trade. Stored with the trade record; false by default.
Added in ATAS 8.0.15.
public bool Reviewed { get; set; }
Property Value
- bool
ScreenshotLink
Gets or sets the screenshot link associated with the historical trade.
Not a LinqToDB column: the legacy SQLite storage has no such field (importing an old cache
would fail with "no such column"), the file cache persists the property through
HistoryMyTradesFileCacheRegistry instead.
Not in ATAS 8.0.15 yet: available from the next version.
public string? ScreenshotLink { get; set; }
Property Value
- string
Security
Gets or sets the security object associated with the historical trade.
public Security? Security { get; set; }
Property Value
SecurityCode
Gets or sets the security code associated with the historical trade.
public string? SecurityCode { get; set; }
Property Value
- string
SecurityId
Gets or sets the security ID associated with the historical trade.
public string? SecurityId { get; set; }
Property Value
- string
TicksPnL
Gets or sets the PnL in ticks of the historical trade.
public decimal TicksPnL { get; set; }
Property Value
- decimal
Methods
Clone()
Creates a shallow copy of the trade record. Reviewed, Playbooks and MissingDataCase are not copied.
public HistoryMyTrade Clone()
Returns
- HistoryMyTrade
The copy.
OnPropertyChanged(string)
Raises the PropertyChanged event for a specific property.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyNamestringThe name of the property that changed.
ToString()
Returns a short description for logs: the opening direction, security ID, open and close prices and the absolute open volume.
public override string ToString()
Returns
- string
The description, or
Empty HistoryMyTradewhen neither the enter nor the exit trade is set.
Events
PropertyChanged
Added in ATAS 8.0.15.
public event PropertyChangedEventHandler? PropertyChanged
Event Type
- PropertyChangedEventHandler