namespace MtApi { enum MtCommandType { //NoCommand = 0 //trade operations OrderSend = 1, OrderClose = 2, // OrderCloseByCurrentPrice = 152, OrderCloseBy = 3, OrderClosePrice = 4, OrderClosePriceByTicket = 1004, OrderCloseTime = 5, OrderCloseAll = 151, OrderComment = 6, OrderCommission = 7, OrderDelete = 8, OrderExpiration = 9, OrderLots = 10, OrderMagicNumber = 11, OrderModify = 12, OrderOpenPrice = 13, OrderOpenPriceByTicket = 1013, OrderOpenTime = 14, OrderPrint = 15, OrderProfit = 16, OrderSelect = 17, OrdersHistoryTotal = 18, OrderStopLoss = 19, OrdersTotal = 20, OrderSwap = 21, OrderSymbol = 22, OrderTakeProfit = 23, OrderTicket = 24, OrderType = 25, //Check Status GetLastError = 26, IsConnected = 27, IsDemo = 28, IsDllsAllowed = 29, IsExpertEnabled = 30, IsLibrariesAllowed = 31, IsOptimization = 32, IsStopped = 33, IsTesting = 34, IsTradeAllowed = 35, IsTradeContextBusy = 36, IsVisualMode = 37, UninitializeReason = 38, ErrorDescription = 39, TerminalCompany = 68, TerminalName = 69, TerminalPath = 70, TerminalInfoString = 153, TerminalInfoInteger = 204, TerminalInfoDouble = 205, //Account Information AccountBalance = 40, AccountCredit = 41, AccountCompany = 42, AccountCurrency = 43, AccountEquity = 44, AccountFreeMargin = 45, AccountFreeMarginCheck = 46, AccountFreeMarginMode = 47, AccountLeverage = 48, AccountMargin = 49, AccountName = 50, AccountNumber = 51, AccountProfit = 52, AccountServer = 53, AccountStopoutLevel = 54, AccountStopoutMode = 55, //Common Commands Alert = 56, Comment = 57, GetTickCount = 58, MarketInfo = 59, MessageBox = 60, MessageBoxA = 61, PlaySound = 62, Print = 63, SendFTP = 64, SendFTPA = 65, SendMail = 66, Sleep = 67, //Date and Time Day = 71, DayOfWeek = 72, DayOfYear = 73, Hour = 74, Minute = 75, Month = 76, Seconds = 77, TimeCurrent = 78, TimeDay = 79, TimeDayOfWeek = 80, TimeDayOfYear = 81, TimeHour = 82, TimeLocal = 83, TimeMinute = 84, TimeMonth = 85, TimeSeconds = 86, TimeYear = 87, Year = 88, TimeGMT = 281, //Global Variables GlobalVariableCheck = 89, GlobalVariableDel = 90, GlobalVariableGet = 91, GlobalVariableName = 92, GlobalVariableSet = 93, GlobalVariableSetOnCondition = 94, GlobalVariablesDeleteAll = 95, GlobalVariablesTotal = 96, //Technical Indicators iAC = 97, iAD = 98, iAlligator = 99, iADX = 100, iATR = 101, iAO = 102, iBearsPower = 103, iBands = 104, iBandsOnArray = 105, iBullsPower = 106, iCCI = 107, iCCIOnArray = 108, iCustom = 109, //iCustom_d = 10109, iDeMarker = 110, iEnvelopes = 111, iEnvelopesOnArray = 112, iForce = 113, iFractals = 114, iGator = 115, iIchimoku = 116, iBWMFI = 117, iMomentum = 118, iMomentumOnArray = 119, iMFI = 120, iMA = 121, iMAOnArray = 122, iOsMA = 123, iMACD = 124, iOBV = 125, iSAR = 126, iRSI = 127, iRSIOnArray = 128, iRVI = 129, iStdDev = 130, iStdDevOnArray = 131, iStochastic = 132, iWPR = 133, //Timeseries access iBars = 134, iBarShift = 135, iClose = 136, iHigh = 137, iHighest = 138, iLow = 139, iLowest = 140, iOpen = 141, iTime = 142, iVolume = 143, iCloseArray = 144, iHighArray = 145, iLowArray = 146, iOpenArray = 147, iVolumeArray = 148, iTimeArray = 149, // RefreshRates = 150, // //Requests MtRequest = 155, //Backtesting BacktestingReady = 156, //Market Info SymbolInfoString = 154, SymbolsTotal = 200, SymbolName = 201, SymbolSelect = 202, SymbolInfoInteger = 203, //Object Functions ObjectCreate = 208, ObjectName = 209, ObjectDelete = 210, ObjectsDeleteAll = 211, ObjectFind = 212, ObjectGetTimeByValue = 213, ObjectGetValueByTime = 214, ObjectMove = 215, ObjectsTotal = 216, ObjectGetDouble = 217, ObjectGetInteger = 218, ObjectGetString = 219, ObjectSetDouble = 220, ObjectSetInteger = 221, ObjectSetString = 222, TextSetFont = 223, TextOut = 224, TextGetSize = 225, ObjectDescription = 226, ObjectGet = 227, ObjectGetFiboDescription = 228, ObjectGetShiftByValue = 229, ObjectGetValueByShift = 230, ObjectSet = 231, ObjectSetFiboDescription = 232, ObjectSetText = 233, ObjectType = 234, UnlockTicks = 235, //Chart Operations ChartId = 206, ChartRedraw = 207, ChartApplyTemplate = 236, ChartSaveTemplate = 237, ChartWindowFind = 238, ChartTimePriceToXY = 239, ChartXYToTimePrice = 240, ChartOpen = 241, ChartFirst = 242, ChartNext = 243, ChartClose = 244, ChartSymbol = 245, ChartPeriod = 246, ChartSetDouble = 247, ChartSetInteger = 248, ChartSetString = 249, ChartGetDouble = 250, ChartGetInteger = 251, ChartGetString = 252, ChartNavigate = 253, ChartIndicatorDelete = 254, ChartIndicatorName = 255, ChartIndicatorsTotal = 256, ChartWindowOnDropped = 257, ChartPriceOnDropped = 258, ChartTimeOnDropped = 259, ChartXOnDropped = 260, ChartYOnDropped = 261, ChartSetSymbolPeriod = 262, ChartScreenShot = 263, WindowBarsPerChart = 264, WindowExpertName = 265, WindowFind = 266, WindowFirstVisibleBar = 267, WindowHandle = 268, WindowIsVisible = 269, WindowOnDropped = 270, WindowPriceMax = 271, WindowPriceMin = 272, WindowPriceOnDropped = 273, WindowRedraw = 274, WindowScreenShot = 275, WindowTimeOnDropped = 276, WindowsTotal = 277, WindowXOnDropped = 278, WindowYOnDropped = 279, ChangeAccount = 280, GetOrder = 282, GetOrders = 283, CopyRates = 284, Session = 285, SeriesInfoInteger = 286, SeriesInfoString = 287, SymbolInfoTick = 288, SymbolInfoDouble = 289, GetQuote = 290 } }