![]() If these functions are executed successfully, the command is included in the common queue of the chart events. The functions defining the chart properties are actually used for sending change commands to the chart. All chart operations are allowed in Expert Advisors and scripts only. Sorting of the resulting list of orders cannot be guaranteed. These are functions for working with charts. ![]() It is strongly recommended to call the OrderSelect() function before request the order data.Ĭonsecutive selection of orders using the SELECT_BY_POS parameter returns information in the sequence in which it was received from the trading server. It means that in some cases the order details (open price, SL/TP levels or expiration date) may change and the data become non-actual. It is designed for fast retrieval of the most requested information about current prices. The OrderSelect() function copies order data into program environment and all further calls of OrderClosePrice(), OrderCloseTime(), OrderComment(), OrderCommission(), OrderExpiration(), OrderLots(), OrderMagicNumber(), OrderOpenPrice(), OrderOpenTime(), OrderPrint(), OrderProfit(), OrderStopLoss(), OrderSwap(), OrderSymbol(), OrderTakeProfit(), OrderTicket(), OrderType() functions return the data, copied earlier. MQL4 Help as One File: English Russian The Structure for Returning Current Prices (MqlTick) This is a structure for storing the latest prices of the symbol. They also differ from each other by their order types. If the order close time does not equal to 0, the order is a closed order or a deleted pending order and was selected from the terminal history. One can distinguish an opened order from a pending order by the order type. If the order close time equals to 0, the order is open or pending and taken from the terminal open orders list. To find out from what list the order has been selected, its close time must be analyzed. ![]() The ticket number is a unique order identifier. The pool parameter is ignored if the order is selected by the ticket number. To get the error information, one has to call the GetLastError() function. It returns true if the function succeeds, otherwise falses. MODE_HISTORY - order selected from history pool (closed and canceled order). MODE_TRADES (default)- order selected from trading pool(opened and pending orders), Regarding MT4-I am not aware that volume information reported in MT4. Used when the selected parameter is SELECT_BY_POS. SELECT_BY_TICKET - index is order ticket. Miscellaneous functions: These are various other functions that provide additional functionality, such as sending emails, playing sounds, setting system colors, and so on.Order index or order ticket depending on the second parameter.File functions: These functions are used to read and write files, such as CSV files or text files, and to manage directories, such as FileOpen, FileReadString, FileWrite, FileFlush, FileDelete, and so on.Object functions: These functions are used to create, modify, and manage graphical objects on the chart, such as trendlines, rectangles, text labels, and so on.Time-related functions: These functions are used to obtain information about time and dates, such as TimeCurrent, TimeGMT, Year, Month, Day, Hour, Minute, and so on.It can be any of ENUMTIMEFRAMES enumeration values. String functions: These functions are used for manipulating text strings, such as StringConcatenate, StringFind, StringFormat, StringSplit, and so on. The function returns the index of the bar which covers the specified time.Mathematical functions: These functions are used for mathematical calculations, such as MathMax, MathMin, MathPow, MathSqrt, MathAbs, and so on.Technical analysis functions: These functions are used to calculate various technical indicators, such as moving averages, oscillators, and other technical analysis tools, such as iMA, iRSI, iMACD, iStochastic, and so on. Calculates the On Balance Volume indicator and returns its value.Trading functions: These functions are used to execute trades, manage orders, and obtain information about the trading account, such as OrderSend, OrderClose, OrderSelect, OrderProfit, AccountBalance, AccountEquity, AccountFreeMargin, and so on.Price-related functions: These functions are used to obtain information about price data in the financial markets, such as Ask, Bid, iHigh, iLow, iOpen, iClose, iVolume, and so on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |