2014-10-31 09:05:52 +02:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MtApi5
|
|
|
|
|
{
|
|
|
|
|
public class MqlTradeRequest
|
|
|
|
|
{
|
|
|
|
|
public ENUM_TRADE_REQUEST_ACTIONS Action { get; set; } // Trade operation type
|
2017-08-25 15:32:24 +02:00
|
|
|
public ulong Magic { get; set; } // Expert Advisor ID (magic number)
|
2016-10-07 17:05:06 +03:00
|
|
|
public ulong Order { get; set; } // Order ticket
|
2014-10-31 09:05:52 +02:00
|
|
|
public string Symbol { get; set; } // Trade symbol
|
|
|
|
|
public double Volume { get; set; } // Requested volume for a deal in lots
|
|
|
|
|
public double Price { get; set; } // Price
|
|
|
|
|
public double Stoplimit { get; set; } // StopLimit level of the order
|
|
|
|
|
public double Sl { get; set; } // Stop Loss level of the order
|
|
|
|
|
public double Tp { get; set; } // Take Profit level of the order
|
2017-09-07 20:08:01 +02:00
|
|
|
public ulong Deviation { get; set; } // Maximal possible deviation from the requested price
|
2014-10-31 09:05:52 +02:00
|
|
|
public ENUM_ORDER_TYPE Type { get; set; } // Order type
|
|
|
|
|
public ENUM_ORDER_TYPE_FILLING Type_filling { get; set; } // Order execution type
|
|
|
|
|
public ENUM_ORDER_TYPE_TIME Type_time { get; set; } // Order expiration type
|
|
|
|
|
public DateTime Expiration { get; set; } // Order expiration time (for the orders of ORDER_TIME_SPECIFIED type)
|
|
|
|
|
public string Comment { get; set; } // Order comment
|
2017-08-25 15:32:24 +02:00
|
|
|
public ulong Position { get; set; } // Position ticket
|
|
|
|
|
public ulong PositionBy { get; set; } // The ticket of an opposite position
|
2014-10-31 09:05:52 +02:00
|
|
|
}
|
|
|
|
|
}
|