2024-06-16 13:57:50 +03:00
|
|
|
namespace MtApi
|
2016-04-22 19:14:47 +03:00
|
|
|
{
|
|
|
|
|
public class MtOrder
|
|
|
|
|
{
|
|
|
|
|
public int Ticket { get; set; }
|
2024-06-16 13:57:50 +03:00
|
|
|
public string Symbol { get; set; } = string.Empty;
|
2016-04-22 19:14:47 +03:00
|
|
|
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; }
|
2024-06-16 13:57:50 +03:00
|
|
|
public string Comment { get; set; } = string.Empty;
|
2016-04-22 19:14:47 +03:00
|
|
|
public double Commission { get; set; }
|
|
|
|
|
public int MagicNumber { get; set; }
|
2016-04-29 19:31:35 +03:00
|
|
|
public double Swap { get; set; }
|
2016-05-06 10:30:51 +03:00
|
|
|
public int MtExpiration { get; set; }
|
2016-06-07 14:25:14 +03:00
|
|
|
public double TakeProfit { get; set; }
|
|
|
|
|
public double StopLoss { get; set; }
|
2016-04-22 19:14:47 +03:00
|
|
|
|
|
|
|
|
public DateTime OpenTime
|
|
|
|
|
{
|
|
|
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtOpenTime); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DateTime CloseTime
|
|
|
|
|
{
|
|
|
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtCloseTime); }
|
|
|
|
|
}
|
2016-05-06 10:30:51 +03:00
|
|
|
|
|
|
|
|
public DateTime Expiration
|
|
|
|
|
{
|
|
|
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtExpiration); }
|
|
|
|
|
}
|
2016-04-22 19:14:47 +03:00
|
|
|
}
|
|
|
|
|
}
|