Language Basics All MQL4 functions in alphabetical order. Standard Constants, Enumerations and Structures Function Action Section MQL4 programs AccountBalance Returns balance value of Account Predefined Variables the current account Information Common Functions Array Functions AccountCompany Returns the brokerage Account Conversion Functions company name where the Information current account was Math Functions registered String Functions Date and Time AccountCredit Returns credit value of the Account Account Information current account Information Checkup AccountCurrency Returns currency name of Account Market Info the current account Information Timeseries and Indicators AccountEquity Returns equity value of Account Access the current account Information Chart Operations Trade Functions AccountFreeMargin Returns free margin value Account of the current account Information Trade Signals Global Variables of the AccountFreeMarginCheck Returns free margin that Account Terminal remains after the Information File Functions specified position has Custom Indicators been opened at the current price on the Object Functions current account Technical Indicators Working with Events AccountFreeMarginMode Calculation mode of free Account margin allowed to open Information Obsolete functions orders on the current List of MQL4 Functions account List of MQL4 Constants AccountInfoDouble Returns a value of double Account type of the corresponding Information account property AccountInfoInteger Returns a value of integer Account type (bool, int or long) of Information the corresponding account property AccountInfoString Returns a value string type Account corresponding account Information property AccountLeverage Returns leverage of the Account current account Information AccountMargin Returns margin value of Account the current account Information AccountName Returns the current Account account name Information AccountNumber Returns the current Account account number Information AccountProfit Returns profit value of the Account current account Information AccountServer Returns the connected Account server name Information AccountStopoutLevel Returns the value of the Account Stop Out level Information AccountStopoutMode Returns the calculation Account mode for the Stop Out Information level acos Returns the arc cosine of Math x in radians Functions Alert Displays a message in a Common separate window Functions ArrayBsearch Returns index of the first Array found element in the first Functions array dimension ArrayCompare Returns the result of Array comparing two arrays of Functions simple types or custom structures without complex objects ArrayCopy Copies one array into Array another Functions ArrayCopyRates Copies rates to the two- Array dimensional array from Functions chart RateInfo array returns copied bars amount ArrayCopySeries Copies a series array to Array another one and returns Functions the count of the copied elements ArrayDimension Returns the Array multidimensional array Functions rank ArrayFill Fills an array with the Array specified value Functions ArrayFree Frees up buffer of any Array dynamic array and sets Functions the size of the zero dimension in 0. ArrayGetAsSeries Checks direction of array Array indexing Functions ArrayInitialize Sets all elements of a Array numeric array into a single Functions value ArrayIsDynamic Checks whether an array Array is dynamic Functions ArrayIsSeries Checks whether an array Array is a timeseries Functions ArrayMaximum Search for an element Array with the maximal value Functions ArrayMinimum Search for an element Array with the minimal value Functions ArrayRange Returns the number of Array elements in the specified Functions dimension of the array ArrayResize Sets the new size in the Array first dimension of the Functions array ArraySetAsSeries Sets the direction of array Array indexing Functions ArraySize Returns the number of Array elements in the array Functions ArraySort Sorting of numeric arrays Array by the first dimension Functions asin Returns the arc sine of x Math in radians Functions atan Returns the arc tangent of Math x in radians Functions Bars Returns the number of Timeseries bars count in the history and for a specified symbol and Indicators period Access ceil Returns integer numeric Math value closest from above Functions CharArrayToString Converting symbol code Conversion (ansi) into one-symbol Functions array ChartApplyTemplate Applies a specific Chart template from a specified Operations file to the chart ChartClose Closes the specified chart Chart Operations ChartFirst Returns the ID of the first Chart chart of the client terminal Operations ChartGetDouble Returns the double value Chart property of the specified Operations chart ChartGetInteger Returns the integer value Chart property of the specified Operations chart ChartGetString Returns the string value Chart property of the specified Operations chart ChartID Returns the ID of the Chart current chart Operations ChartIndicatorDelete Removes an indicator with Chart a specified name from the Operations specified chart window ChartIndicatorName Returns the short name of Chart the indicator by the Operations number in the indicators list on the specified chart window ChartIndicatorsTotal Returns the number of all Chart indicators applied to the Operations specified chart window. ChartNavigate Performs shift of the Chart specified chart by the Operations specified number of bars relative to the specified position in the chart ChartNext Returns the chart ID of the Chart chart next to the specified Operations one ChartOpen Opens a new chart with Chart the specified symbol and Operations period CharToStr Conversion of the symbol Conversion code into a one-character Functions string CharToString Converting a symbol code Conversion into a one-character string Functions ChartPeriod Returns the period value Chart of the specified chart Operations ChartPriceOnDropped Returns the price Chart coordinate of the chart Operations point, the Expert Advisor or script has been dropped to ChartRedraw Calls a forced redrawing Chart of a specified chart Operations ChartSaveTemplate Saves current chart Chart settings in a template with Operations a specified name ChartScreenShot Provides a screenshot of Chart the chart of its current Operations state in a gif format ChartSetDouble Sets the double value for Chart a corresponding property Operations of the specified chart ChartSetInteger Sets the integer value Chart (datetime, int, color, bool Operations or char) for a corresponding property of the specified chart ChartSetString Sets the string value for a Chart corresponding property of Operations the specified chart ChartSetSymbolPeriod Changes the symbol value Chart and a period of the Operations specified chart ChartSymbol Returns the symbol name Chart of the specified chart Operations ChartTimeOnDropped Returns the time Chart coordinate of the chart Operations point, the Expert Advisor or script has been dropped to ChartTimePriceToXY Converts the coordinates Chart of a chart from the Operations time/price representation to the X and Y coordinates ChartWindowFind Returns the number of a Chart subwindow where an Operations indicator is drawn ChartWindowOnDropped Returns the number Chart (index) of the chart Operations subwindow, the Expert Advisor or script has been dropped to ChartXOnDropped Returns the X coordinate Chart of the chart point, the Operations Expert Advisor or script has been dropped to ChartXYToTimePrice Converts the X and Y Chart coordinates on a chart to Operations the time and price values ChartYOnDropped Returns the Y coordinate Chart of the chart point, the Operations Expert Advisor or script has been dropped to CheckPointer Returns the type of the Common object pointer Functions ColorToARGB Converting color type to Conversion uint type to receive ARGB Functions representation of the color. ColorToString Converting color value Conversion into string as "R,G,B" Functions Comment Outputs a comment in the Common left top corner of the chart Functions CopyClose Gets history data on bar Timeseries closing price for a and specified symbol and Indicators period into an array Access CopyHigh Gets history data on Timeseries maximal bar price for a and specified symbol and Indicators period into an array Access CopyLow Gets history data on Timeseries minimal bar price for a and specified symbol and Indicators period into an array Access CopyOpen Gets history data on bar Timeseries opening price for a and specified symbol and Indicators period into an array Access CopyRates Gets history data of the Timeseries Rates structure for a and specified symbol and Indicators period into an array Access CopyTickVolume Gets history data on tick Timeseries volumes for a specified and symbol and period into an Indicators array Access CopyTime Gets history data on bar Timeseries opening time for a and specified symbol and Indicators period into an array Access cos Returns the cosine of a Math number Functions CryptDecode Performs the inverse Common transformation of the data Functions from array CryptEncode Transforms the data from Common array with the specified Functions method Day Returns the current day of Date and the month, i.e., the day of Time month of the last known server time DayOfWeek Returns the current zero- Date and based day of the week of Time the last known server time DayOfYear Returns the current day of Date and the year i.e., the day of Time year of the last known server time
DebugBreak Program breakpoint in Common
debugging Functions Digits Returns the number of Checkup decimal digits determining the accuracy of the price value of the current chart symbol DoubleToStr Returns text string with Conversion the specified numerical Functions value converted into a specified precision format DoubleToString Converting a numeric Conversion value to a text line with a Functions specified accuracy EnumToString Converting an Conversion enumeration value of any Functions type to string EventChartCustom Generates a custom event Working for the specified chart with Events EventKillTimer Stops the generation of Working events by the timer in the with Events current chart EventSetMillisecondTimer Launches event generator Working of the high-resolution with Events timer with a period less than 1 second for the current chart EventSetTimer Starts the timer event Working generator with the with Events specified periodicity for the current chart exp Returns exponent of a Math number Functions ExpertRemove Stops Expert Advisor and Common unloads it from the chart Functions fabs Returns absolute value Math (modulus) of the specified Functions numeric value FileClose Closes a previously File opened file Functions FileCopy Copies the original file File from a local or shared Functions folder to another file FileDelete Deletes a specified file File Functions FileFindClose Closes search handle File Functions FileFindFirst Starts the search of files File in a directory in Functions accordance with the specified filter FileFindNext Continues the search File started by the Functions FileFindFirst() function FileFlush Writes to a disk all data File remaining in the Functions input/output file buffer FileGetInteger Gets an integer property File of a file Functions FileIsEnding Defines the end of a file in File the process of reading Functions FileIsExist Checks the existence of a File file Functions FileIsLineEnding Defines the end of a line in File a text file in the process of Functions reading FileMove Moves or renames a file File Functions FileOpen Opens a file with a File specified name and flag Functions FileOpenHistory Opens file in the current File history directory or in its Functions subfolders FileReadArray Reads arrays of any type File except for string from the Functions file of the BIN type FileReadBool Reads from the file of the File CSV type a string from the Functions current position till a delimiter (or till the end of a text line) and converts the read string to a value of bool type FileReadDatetime Reads from the file of the File CSV type a string of one Functions of the formats: "YYYY.MM.DD HH:MM:SS", "YYYY.MM.DD" or "HH:MM:SS" - and converts it into a datetime value FileReadDouble Reads a double value File from the current position Functions of the file pointer FileReadFloat Reads a float value from File the current position of the Functions file pointer FileReadInteger Reads int, short or char File value from the current Functions position of the file pointer FileReadLong Reads a long type value File from the current position Functions of the file pointer FileReadNumber Reads from the file of the File CSV type a string from the Functions current position till a delimiter (or til the end of a text line) and converts the read string into double value FileReadString Reads a string from the File current position of a file Functions pointer from a file FileReadStruct Reads the contents from a File binary file into a structure Functions passed as a parameter, from the current position of the file pointer FileSeek Moves the position of the File file pointer by a specified Functions number of bytes relative to the specified position FileSize Returns the size of a File corresponding open file Functions FileTell Returns the current File position of the file pointer Functions of a corresponding open file FileWrite Writes data to a file of File CSV or TXT type Functions FileWriteArray Writes arrays of any type File except for string into a file Functions of BIN type FileWriteDouble Writes value of the double File type from the current Functions position of a file pointer into a binary file FileWriteFloat Writes value of the float File type from the current Functions position of a file pointer into a binary file FileWriteInteger Writes value of the int type File from the current position Functions of a file pointer into a binary file FileWriteLong Writes value of the long File type from the current Functions position of a file pointer into a binary file FileWriteString Writes the value of a File string parameter into a Functions BIN or TXT file starting from the current position of the file pointer FileWriteStruct Writes the contents of a File structure passed as a Functions parameter into a binary file, starting from the current position of the file pointer floor Returns integer numeric Math value closest from below Functions fmax Returns the maximal value Math of the two numeric values Functions fmin Returns the minimal value Math of the two numeric values Functions fmod Returns the real remainder Math after the division of two Functions numbers FolderClean Deletes all files in the File specified folder Functions FolderCreate Creates a folder in the File Files directory Functions FolderDelete Removes a selected File directory. If the folder is Functions not empty, then it can't be removed GetLastError Returns the last error Checkup GetPointer Returns the object pointer Common Functions GetTickCount Returns the number of Common milliseconds that have Functions elapsed since the system was started GlobalVariableCheck Checks the existence of a Global global variable with the Variables specified name of the Terminal GlobalVariableDel Deletes a global variable Global Variables of the Terminal GlobalVariableGet Returns the value of a Global global variable Variables of the Terminal
GlobalVariableName Returns the name of a Global
global variable by it's Variables ordinal number in the list of the of global variables Terminal GlobalVariablesDeleteAll Deletes global variables Global with the specified prefix in Variables their names of the Terminal GlobalVariableSet Sets the new value to a Global global variable Variables of the Terminal GlobalVariableSetOnCondition Sets the new value of the Global existing global variable by Variables condition of the Terminal GlobalVariablesFlush Forcibly saves contents of Global all global variables to a Variables disk of the Terminal GlobalVariablesTotal Returns the total number Global of global variables Variables of the Terminal GlobalVariableTemp Sets the new value to a Global global variable, that exists Variables only in the current session of the of the terminal Terminal GlobalVariableTime Returns time of the last Global accessing the global Variables variable of the Terminal HideTestIndicators The function sets a flag Custom hiding indicators called by Indicators the Expert Advisor Hour Returns the hour of the Date and last known server time by Time the moment of the program start iAC Accelerator Oscillator Technical Indicators iAD Accumulation/Distribution Technical Indicators iADX Average Directional Index Technical Indicators iAlligator Alligator Technical Indicators iAO Awesome Oscillator Technical Indicators iATR Average True Range Technical Indicators iBands Bollinger Bands® Technical Indicators iBandsOnArray Calculation of Bollinger Technical Bands® indicator on data, Indicators stored in a numeric array iBars Returns the number of Timeseries bars on the specified and chart Indicators Access iBarShift Returns the index of the Timeseries bar which covers the and specified time Indicators Access iBearsPower Bears Power Technical Indicators iBullsPower Bulls Power Technical Indicators iBWMFI Market Facilitation Index Technical by Bill Williams Indicators iCCI Commodity Channel Index Technical Indicators iCCIOnArray Calculation of Commodity Technical Channel Index indicator Indicators on data, stored in a numeric array iClose Returns Close price value Timeseries for the bar of specified and symbol with timeframe Indicators and shift Access iCustom Custom indicator Technical Indicators iDeMarker DeMarker Technical Indicators iEnvelopes Envelopes Technical Indicators iEnvelopesOnArray Calculation of Envelopes Technical indicator on data, stored Indicators in a numeric array iForce Force Index Technical Indicators iFractals Fractals Technical Indicators iGator Gator Oscillator Technical Indicators iHigh Returns High price value Timeseries for the bar of specified and symbol with timeframe Indicators and shift Access iHighest Returns the shift of the Timeseries maximum value over a and specific number of bars Indicators Access iIchimoku Ichimoku Kinko Hyo Technical Indicators iLow Returns Low price value Timeseries for the bar of indicated and symbol with timeframe Indicators and shift Access iLowest Returns the shift of the Timeseries lowest value over a and specific number of bars Indicators Access iMA Moving Average Technical Indicators iMACD Moving Averages Technical Convergence-Divergence Indicators iMAOnArray Calculation of Moving Technical Average indicator on data, Indicators stored in a numeric array iMFI Money Flow Index Technical Indicators iMomentum Momentum Technical Indicators iMomentumOnArray Calculation of Momentum Technical indicator on data, stored Indicators in a numeric array IndicatorBuffers Allocates memory for Custom buffers used for custom Indicators indicator calculations IndicatorCounted Returns the amount of Custom bars not changed after the Indicators indicator had been launched last IndicatorDigits Sets precision format to Custom visualize indicator values Indicators IndicatorSetDouble Sets the value of an Custom indicator property of the Indicators double type IndicatorSetInteger Sets the value of an Custom indicator property of the Indicators int type IndicatorSetString Sets the value of an Custom indicator property of the Indicators string type IndicatorShortName Sets the "short" name of a Custom custom indicator to be Indicators shown in the DataWindow and in the chart subwindow IntegerToString Converting int into a string Conversion of preset length Functions iOBV On Balance Volume Technical Indicators iOpen Returns Open price value Timeseries for the bar of specified and symbol with timeframe Indicators and shift Access iOsMA Moving Average of Technical Oscillator (MACD Indicators histogram) iRSI Relative Strength Index Technical Indicators iRSIOnArray Calculation of Momentum Technical indicator on data, stored Indicators in a numeric array iRVI Relative Vigor Index Technical Indicators iSAR Parabolic Stop And Technical Reverse System Indicators IsConnected Checks connection Checkup between client terminal and server IsDemo Checks if the Expert Checkup Advisor runs on a demo account IsDllsAllowed Checks if the DLL function Checkup call is allowed for the Expert Advisor IsExpertEnabled Checks if Expert Advisors Checkup are enabled for running IsLibrariesAllowed Checks if the Expert Checkup Advisor can call library function IsOptimization Checks if Expert Advisor Checkup runs in the Strategy Tester optimization mode IsStopped Returns true, if an mql4 Checkup program has been commanded to stop its operation iStdDev Standard Deviation Technical Indicators iStdDevOnArray Calculation of Standard Technical Deviation indicator on Indicators data, stored in a numeric array IsTesting Checks if the Expert Checkup Advisor runs in the testing mode iStochastic Stochastic Oscillator Technical Indicators IsTradeAllowed Checks if the Expert Checkup Advisor is allowed to trade and trading context is not busy IsTradeContextBusy Returns the information Checkup about trade context IsVisualMode Checks if the Expert Checkup Advisor is tested in visual mode iTime Returns time value for the Timeseries bar of specified symbol and with timeframe and shift Indicators Access iVolume Returns Tick Volume Timeseries value for the bar of and specified symbol with Indicators timeframe and shift Access iWPR Williams' Percent Range Technical Indicators log Returns natural logarithm Math Functions log10 Returns the logarithm of a Math number by base 10 Functions MarketInfo Returns various data Market Info about securities listed in the "Market Watch" window MathAbs Returns absolute value Math (modulus) of the specified Functions numeric value MathArccos Returns the arc cosine of Math x in radians Functions MathArcsin Returns the arc sine of x Math in radians Functions MathArctan Returns the arc tangent of Math x in radians Functions MathCeil Returns integer numeric Math value closest from above Functions MathCos Returns the cosine of a Math number Functions MathExp Returns exponent of a Math number Functions MathFloor Returns integer numeric Math value closest from below Functions MathIsValidNumber Checks the correctness of Math a real number Functions MathLog Returns natural logarithm Math Functions MathLog10 Returns the logarithm of a Math number by base 10 Functions MathMax Returns the maximal value Math of the two numeric values Functions MathMin Returns the minimal value Math of the two numeric values Functions MathMod Returns the real remainder Math after the division of two Functions numbers MathPow Raises the base to the Math specified power Functions MathRand Returns a pseudorandom Math value within the range of 0 Functions to 32767 MathRound Rounds of a value to the Math nearest integer Functions MathSin Returns the sine of a Math number Functions MathSqrt Returns a square root Math Functions MathSrand Sets the starting point for Math generating a series of Functions pseudorandom integers MathTan Returns the tangent of a Math number Functions MessageBox Creates, displays a Common message box and Functions manages it Minute Returns the current Date and minute of the last known Time server time by the moment of the program start Month Returns the current month Date and as number, i.e., the Time number of month of the last known server time MQLInfoInteger Returns an integer value Checkup of a corresponding property of a running mql4 program MQLInfoString Returns a string value of a Checkup corresponding property of a running mql4 program MQLSetInteger Sets the value of the Checkup MQL_CODEPAGE property in an MQL4 program environment NormalizeDouble Rounding of a floating Conversion point number to a Functions specified accuracy ObjectCreate Creates an object of the Object specified type in a Functions specified chart ObjectDelete Removes the object Object having the specified name Functions ObjectDescription Returns the object Object description Functions ObjectFind Searches for an object Object having the specified name Functions ObjectGet Returns the value of the Object specified object property Functions ObjectGetDouble Returns the double value Object of the corresponding Functions object property ObjectGetFiboDescription Returns the level Object description of a Fibonacci Functions object ObjectGetInteger Returns the integer value Object of the corresponding Functions object property ObjectGetShiftByValue Calculates and returns bar Object index for the given price Functions ObjectGetString Returns the string value of Object the corresponding object Functions property ObjectGetTimeByValue Returns the time value for Object the specified object price Functions value ObjectGetValueByShift Calculates and returns the Object price value for the Functions specified bar ObjectGetValueByTime Returns the price value of Object an object for the specified Functions time ObjectMove Changes the coordinates Object of the specified object Functions anchor point ObjectName Returns the name of an Object object by its index in the Functions objects list ObjectsDeleteAll Removes all objects of the Object specified type from the Functions specified chart subwindow ObjectSet Changes the value of the Object specified object property Functions ObjectSetDouble Sets the value of the Object corresponding object Functions property ObjectSetFiboDescription Sets a new description to Object a level of a Fibonacci Functions object ObjectSetInteger Sets the value of the Object corresponding object Functions property ObjectSetString Sets the value of the Object corresponding object Functions property ObjectSetText Changes the object Object description Functions ObjectsTotal Returns the number of Object objects of the specified Functions type ObjectType Returns the object type Object Functions OrderClose Closes opened order Trade Functions OrderCloseBy Closes an opened order Trade by another opposite Functions opened order OrderClosePrice Returns close price of the Trade currently selected order Functions OrderCloseTime Returns close time of the Trade currently selected order Functions OrderComment Returns comment of the Trade currently selected order Functions OrderCommission Returns calculated Trade commission of the Functions currently selected order OrderDelete Deletes previously opened Trade pending order Functions OrderExpiration Returns expiration date of Trade the selected pending Functions order OrderLots Returns amount of lots of Trade the selected order Functions OrderMagicNumber Returns an identifying Trade (magic) number of the Functions currently selected order OrderModify Modification of Trade characteristics of the Functions previously opened or pending orders OrderOpenPrice Returns open price of the Trade currently selected order Functions OrderOpenTime Returns open time of the Trade currently selected order Functions OrderPrint Prints information about Trade the selected order in the Functions log OrderProfit Returns profit of the Trade currently selected order Functions OrderSelect The function selects an Trade order for further Functions processing OrderSend The main function used to Trade open an order or place a Functions pending order OrdersHistoryTotal Returns the number of Trade closed orders in the Functions account history loaded into the terminal OrderStopLoss Returns stop loss value of Trade the currently selected Functions order OrdersTotal Returns the number of Trade market and pending Functions orders OrderSwap Returns swap value of the Trade currently selected order Functions OrderSymbol Returns symbol name of Trade the currently selected Functions order OrderTakeProfit Returns take profit value Trade of the currently selected Functions order OrderTicket Returns ticket number of Trade the currently selected Functions order OrderType Returns order operation Trade type of the currently Functions selected order Period Returns the current chart Checkup timeframe Period Returns timeframe of the Chart current chart Operations PeriodSeconds Returns the number of Common seconds in the period Functions PlaySound Plays a sound file Common Functions Point Returns the point size of Checkup the current symbol in the quote currency pow Raises the base to the Math specified power Functions Print Displays a message in the Common log Functions PrintFormat Formats and prints the Common sets of symbols and Functions values in a log file in accordance with a preset format rand Returns a pseudorandom Math value within the range of 0 Functions to 32767 RefreshRates Refreshing of data in pre- Timeseries defined variables and and series arrays Indicators Access ResetLastError Sets the value of a Common predetermined variable Functions _LastError to zero ResourceCreate Creates an image Common resource based on a data Functions set ResourceFree Deletes dynamically Common created resource (freeing Functions the memory allocated for it) ResourceReadImage Reads data from the Common graphical resource Functions created by ResourceCreate() function or saved in EX4 file during compilation ResourceSave Saves a resource into the Common specified file Functions
round Rounds of a value to the Math
nearest integer Functions Seconds Returns the amount of Date and seconds elapsed from the Time beginning of the current minute of the last known server time by the moment of the program start SendFTP Sends a file at the address Common specified in the settings Functions window of the "FTP" tab SendMail Sends an email at the Common address specified in the Functions settings window of the "Email" tab SendNotification Sends push notifications Common to mobile terminals, Functions whose MetaQuotes ID are specified in the "Notifications" tab SeriesInfoInteger Returns information about Timeseries the state of historical data and Indicators Access SetIndexArrow Sets an arrow symbol for Custom indicators line of the Indicators DRAW_ARROW type SetIndexBuffer Binds the specified Custom indicator buffer with one- Indicators dimensional dynamic array of the double type SetIndexDrawBegin Sets the bar number from Custom which the drawing of the Indicators given indicator line must start SetIndexEmptyValue Sets drawing line empty Custom value Indicators SetIndexLabel Sets drawing line Custom description for showing in Indicators the DataWindow and in the tooltip SetIndexShift Sets offset for the Custom drawing line Indicators SetIndexStyle Sets the new type, style, Custom width and color for a given Indicators indicator line SetLevelStyle Sets a new style, width Custom and color of horizontal Indicators levels of indicator to be output in a separate window SetLevelValue Sets a value for a given Custom horizontal level of the Indicators indicator to be output in a separate window ShortArrayToString Copying array part into a Conversion string Functions ShortToString Converting symbol code Conversion (unicode) into one-symbol Functions string SignalBaseGetDouble Returns the value of Trade double type property for Signals selected signal SignalBaseGetInteger Returns the value of Trade integer type property for Signals selected signal SignalBaseGetString Returns the value of string Trade type property for selected Signals signal SignalBaseSelect Selects a signal from Trade signals, available in Signals terminal for further working with it SignalBaseTotal Returns the total amount Trade of signals, available in Signals terminal SignalInfoGetDouble Returns the value of Trade double type property of Signals signal copy settings SignalInfoGetInteger Returns the value of Trade integer type property of Signals signal copy settings SignalInfoGetString Returns the value of string Trade type property of signal Signals copy settings SignalInfoSetDouble Sets the value of double Trade type property of signal Signals copy settings SignalInfoSetInteger Sets the value of integer Trade type property of signal Signals copy settings SignalSubscribe Subscribes to the trading Trade signal Signals SignalUnsubscribe Cancels subscription Trade Signals sin Returns the sine of a Math number Functions Sleep Suspends execution of Common the current Expert Advisor Functions or script within a specified interval sqrt Returns a square root Math Functions srand Sets the starting point for Math generating a series of Functions pseudorandom integers StringAdd Adds a string to the end of String another string Functions StringBufferLen Returns the size of buffer String allocated for the string Functions StringCompare Compares two strings and String returns 1 if the first string Functions is greater than the second; 0 - if the strings are equal; -1 (minus 1) - if the first string is less than the second one StringConcatenate Forms a string of String parameters passed Functions StringFill Fills out a specified string String by selected symbols Functions StringFind Search for a substring in a String string Functions StringFormat Converting number into Conversion string according to preset Functions format StringGetChar Returns character (code) String from the specified Functions position in the string StringGetCharacter Returns the value of a String number located in the Functions specified string position StringInit Initializes string by String specified symbols and Functions provides the specified string length StringLen Returns the number of String symbols in a string Functions StringReplace Replaces all the found String substrings of a string by a Functions set sequence of symbols StringSetChar Returns the string copy String with changed character in Functions the specified position StringSetCharacter Returns true is a symbol is String successfully inserted to Functions the passed string. StringSplit Gets substrings by a String specified separator from Functions the specified string, returns the number of substrings obtained StringSubstr Extracts a substring from String a text string starting from Functions a specified position StringToCharArray Symbol-wise copying a Conversion string converted from Functions Unicode to ANSI, to a selected place of array of uchar type StringToColor Converting "R,G,B" string Conversion or string with color name Functions into color type value StringToDouble Converting a string Conversion containing a symbol Functions representation of number into number of double type StringToInteger Converting a string Conversion containing a symbol Functions representation of number into number of int type StringToLower Transforms all symbols of String a selected string to Functions lowercase by location StringToShortArray Symbol-wise copying a Conversion string to a selected part of Functions array of ushort type StringToTime Converting a string Conversion containing time or date in Functions "yyyy.mm.dd [hh:mi]" format into datetime type StringToUpper Transforms all symbols of String a selected string into Functions capitals by location StringTrimLeft Cuts line feed characters, String spaces and tabs in the left Functions part of the string StringTrimRight Cuts line feed characters, String spaces and tabs in the Functions right part of the string StrToDouble Converts string Conversion representation of number Functions to double type StrToInteger Converts string containing Conversion the value character Functions representation into a value of the integer type StrToTime Converts string in the Conversion format "yyyy.mm.dd Functions hh:mi" to datetime type StructToTime Converts a variable of Date and MqlDateTime structure Time type into a datetime value Symbol Returns the name of a Checkup symbol of the current chart Symbol Returns a text string with Chart the name of the current Operations financial instrument SymbolInfoDouble Returns the double value Market Info of the symbol for the corresponding property SymbolInfoInteger Returns a value of an Market Info integer type (long, datetime, int or bool) of a specified symbol for the corresponding property SymbolInfoSessionQuote Allows receiving time of Market Info beginning and end of the specified quoting sessions for a specified symbol and day of week. SymbolInfoSessionTrade Allows receiving time of Market Info beginning and end of the specified trading sessions for a specified symbol and day of week. SymbolInfoString Returns a value of the Market Info string type of a specified symbol for the corresponding property SymbolInfoTick Returns the current prices Market Info for the specified symbol in a variable of the MqlTick type SymbolName Returns the name of a Market Info specified symbol SymbolSelect Selects a symbol in the Market Info Market Watch window or removes a symbol from the window SymbolsTotal Returns the number of Market Info available (selected in Market Watch or all) symbols
tan Returns the tangent of a Math
number Functions TerminalClose Commands the terminal Common to complete operation Functions TerminalCompany Returns the name of Checkup company owning the client terminal TerminalInfoDouble Returns an double value Checkup of a corresponding property of a running mql4 program TerminalInfoInteger Returns an integer value Checkup of a corresponding property of a running mql4 program TerminalInfoString Returns a string value of a Checkup corresponding property of a running mql4 program TerminalName Returns client terminal Checkup name TerminalPath Returns the directory, Checkup from which the client terminal was launched TesterStatistics It returns the value of a Common specified statistic Functions calculated based on testing results TextGetSize Returns the string's width Object and height at the current Functions font settings TextOut Transfers the text to the Object custom array (buffer) Functions designed for creation of a graphical resource TextSetFont Sets the font for Object displaying the text using Functions drawing methods (Arial 20 used by default) TimeCurrent Returns the last known Date and server time (time of the Time last quote receipt) in the datetime format TimeDay Returns the day of month Date and of the specified date Time TimeDaylightSavings Returns the sign of Date and Daylight Saving Time Time switch TimeDayOfWeek Returns the zero-based Date and day of week of the Time specified date
TimeDayOfYear Returns the day of year of Date and
the specified date Time TimeGMT Returns GMT in datetime Date and format with the Daylight Time Saving Time by local time of the computer, where the client terminal is running TimeGMTOffset Returns the current Date and difference between GMT Time time and the local computer time in seconds, taking into account DST switch TimeHour Returns the hour of the Date and specified time Time TimeLocal Returns the local Date and computer time in datetime Time format TimeMinute Returns the minute of the Date and specified time Time TimeMonth Returns the month Date and number of the specified Time time TimeSeconds Returns the amount of Date and seconds elapsed from the Time beginning of the minute of the specified time TimeToStr Converts value of Conversion datetime type into a string Functions of "yyyy.mm.dd hh:mi" format TimeToString Converting a value Conversion containing time in Functions seconds elapsed since 01.01.1970 into a string of "yyyy.mm.dd hh:mi" format TimeToStruct Converts a datetime value Date and into a variable of Time MqlDateTime structure type TimeYear Returns year of the Date and specified date Time UninitializeReason Returns the code of the Checkup reason for deinitialization WebRequest Sends HTTP request to Common the specified server Functions WindowBarsPerChart Returns the amount of Chart bars visible on the chart Operations WindowExpertName Returns the name of the Chart executed Expert Advisor, Operations script, custom indicator, or library WindowFind Returns the window index Chart containing this specified Operations indicator WindowFirstVisibleBar Returns index of the first Chart visible bar in the current Operations chart window WindowHandle Returns the system Chart handle of the chart Operations window WindowIsVisible Returns the visibility flag Chart of the chart subwindow Operations WindowOnDropped Returns the window index Chart where Expert Advisor, Operations custom indicator or script was dropped WindowPriceMax Returns the maximal value Chart of the vertical scale of the Operations specified subwindow of the current chart WindowPriceMin Returns the minimal value Chart of the vertical scale of the Operations specified subwindow of the current chart WindowPriceOnDropped Returns the price of the Chart chart point where Expert Operations Advisor or script was dropped WindowRedraw Redraws the current chart Chart forcedly Operations WindowScreenShot Saves current chart Chart screen shot as a GIF, PNG Operations or BMP file depending on specified extension WindowsTotal Returns total number of Chart indicator windows on the Operations chart WindowTimeOnDropped Returns the time of the Chart chart point where Expert Operations Advisor or script was dropped WindowXOnDropped Returns the value at X axis Chart in pixels for the chart Operations window client area point at which the Expert Advisor or script was dropped
WindowYOnDropped Returns the value at Y axis Chart
in pixels for the chart Operations window client area point at which the Expert Advisor or script was dropped Year Returns the current year, Date and i.e., the year of the last Time known server time ZeroMemory Resets a variable passed Common to it by reference. The Functions variable can be of any type, except for classes and structures that have constructors.