35 lines
1.1 KiB
MQL5
35 lines
1.1 KiB
MQL5
//+------------------------------------------------------------------+
| |||
//| OrderRequests.mqh |
| |||
//| Copyright 2025, MetaQuotes Ltd. |
| |||
//| https://www.mql5.com |
| |||
//+------------------------------------------------------------------+
| |||
#property copyright "Copyright 2025, MetaQuotes Ltd."
| |||
#property link "https://www.mql5.com"
| |||
#property version "1.00"
| |||
| |||
// Framework/Trading/OrderRequests.mqh
| |||
struct MarketOrderRequest
| |||
{
| |||
string symbol;
| |||
int direction; // +1 Buy, -1 Sell
| |||
double volume;
| |||
double sl;
| |||
double tp;
| |||
string comment;
| |||
ulong magic;
| |||
double price; // 0 = market, otherwise specific price (unused)
| |||
};
| |||
| |||
struct PendingOrderRequest
| |||
{
| |||
string symbol;
| |||
ENUM_ORDER_TYPE type; // ORDER_TYPE_BUY_STOP, etc.
| |||
double volume;
| |||
double price;
| |||
double stoplimit; // for STOP_LIMIT
| |||
double sl;
| |||
double tp;
| |||
datetime expiration;
| |||
string comment;
| |||
ulong magic;
| |||
};
|