mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 11:07:48 +00:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
namespace MtApi
|
|
{
|
|
public class MtOrder
|
|
{
|
|
public int Ticket { get; set; }
|
|
public string Symbol { get; set; } = string.Empty;
|
|
public TradeOperation Operation { get; set; }
|
|
public double OpenPrice { get; set; }
|
|
public double ClosePrice { get; set; }
|
|
public double Lots { get; set; }
|
|
public int MtOpenTime { get; set; }
|
|
public int MtCloseTime { get; set; }
|
|
public double Profit { get; set; }
|
|
public string Comment { get; set; } = string.Empty;
|
|
public double Commission { get; set; }
|
|
public int MagicNumber { get; set; }
|
|
public double Swap { get; set; }
|
|
public int MtExpiration { get; set; }
|
|
public double TakeProfit { get; set; }
|
|
public double StopLoss { get; set; }
|
|
|
|
public DateTime OpenTime
|
|
{
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtOpenTime); }
|
|
}
|
|
|
|
public DateTime CloseTime
|
|
{
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtCloseTime); }
|
|
}
|
|
|
|
public DateTime Expiration
|
|
{
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtExpiration); }
|
|
}
|
|
}
|
|
} |