-
Notifications
You must be signed in to change notification settings - Fork 277
/
MtOrder.cs
39 lines (35 loc) · 1.2 KB
/
MtOrder.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
namespace MtApi
{
public class MtOrder
{
public int Ticket { get; set; }
public string Symbol { get; set; }
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; }
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); }
}
}
}