Skip to content

List of MQL4 Constants

List of MQL4 Constants

All MQL4 constants in alphabetical order.

ConstantDescriptionUsage
__DATE__File compilation date without time (hours, minutes and seconds are equal to 0)Predefined Macro Substitutions
__DATETIME__File compilation date and timePredefined Macro Substitutions
__FILE__Name of the currently compiled filePredefined Macro Substitutions
__FUNCSIG__Signature of the function in whose body the macro is located. Logging of the full description of functions can be useful in the identification of overloaded functionsPredefined Macro Substitutions
__FUNCTION__Name of the function, in whose body the macro is locatedPredefined Macro Substitutions
__LINE__Line number in the source code, in which the macro is locatedPredefined Macro Substitutions
__MQLBUILD__, __MQL4BUILD__Compiler build numberPredefined Macro Substitutions
__PATH__An absolute path to the file that is currently being compiledPredefined Macro Substitutions
ACCOUNT_BALANCEAccount balance in the deposit currencyAccountInfoDouble
ACCOUNT_COMPANYName of a company that serves the accountAccountInfoString
ACCOUNT_CREDITAccount credit in the deposit currencyAccountInfoDouble
ACCOUNT_CURRENCYAccount currencyAccountInfoString
ACCOUNT_EQUITYAccount equity in the deposit currencyAccountInfoDouble
ACCOUNT_MARGIN_FREEFree margin of an account in the deposit currencyAccountInfoDouble
ACCOUNT_LEVERAGEAccount leverageAccountInfoInteger
ACCOUNT_LIMIT_ORDERSMaximum allowed number of active pending orders (0-unlimited)AccountInfoInteger
ACCOUNT_LOGINAccount numberAccountInfoInteger
ACCOUNT_MARGINAccount margin used in the deposit currencyAccountInfoDouble
ACCOUNT_MARGIN_LEVELAccount margin level in percentsAccountInfoDouble
ACCOUNT_MARGIN_SO_CALLMargin call level. Depending on the set ACCOUNT_MARGIN_SO_MODE is expressed in percents or in the deposit currencyAccountInfoDouble
ACCOUNT_MARGIN_SO_MODEMode for setting the minimal allowed marginAccountInfoInteger
ACCOUNT_MARGIN_SO_SOMargin stop out level. Depending on the set ACCOUNT_MARGIN_SO_MODE is expressed in percents or in the deposit currencyAccountInfoDouble
ACCOUNT_NAMEClient nameAccountInfoString
ACCOUNT_PROFITCurrent profit of an account in the deposit currencyAccountInfoDouble
ACCOUNT_SERVERTrade server nameAccountInfoString
ACCOUNT_STOPOUT_MODE_MONEYAccount stop out mode in moneyAccountInfoInteger
ACCOUNT_STOPOUT_MODE_PERCENTAccount stop out mode in percentsAccountInfoInteger
ACCOUNT_TRADE_ALLOWEDAllowed trade for the current accountAccountInfoInteger
ACCOUNT_TRADE_EXPERTAllowed trade for an Expert AdvisorAccountInfoInteger
ACCOUNT_TRADE_MODEAccount trade modeAccountInfoInteger
ACCOUNT_TRADE_MODE_CONTESTContest accountAccountInfoInteger
ACCOUNT_TRADE_MODE_DEMODemo accountAccountInfoInteger
ACCOUNT_TRADE_MODE_REALReal accountAccountInfoInteger
ALIGN_CENTERCentered (only for the Edit object)ObjectGetInteger, ObjectSetInteger, ChartScreenShot
ALIGN_LEFTLeft alignmentObjectGetInteger, ObjectSetInteger, ChartScreenShot
ALIGN_RIGHTRight alignmentObjectGetInteger, ObjectSetInteger, ChartScreenShot
ANCHOR_BOTTOMAnchor on the bottom sideObjectGetInteger, ObjectSetInteger
ANCHOR_CENTERAnchor point strictly in the center of the objectObjectGetInteger, ObjectSetInteger
ANCHOR_LEFTAnchor point to the left in the centerObjectGetInteger, ObjectSetInteger
ANCHOR_LEFT_LOWERAnchor point at the lower left cornerObjectGetInteger, ObjectSetInteger
ANCHOR_LEFT_UPPERAnchor point at the upper left cornerObjectGetInteger, ObjectSetInteger
ANCHOR_LOWERAnchor point below in the centerObjectGetInteger, ObjectSetInteger
ANCHOR_RIGHTAnchor point to the right in the centerObjectGetInteger, ObjectSetInteger
ANCHOR_RIGHT_LOWERAnchor point at the lower right cornerObjectGetInteger, ObjectSetInteger
ANCHOR_RIGHT_UPPERAnchor point at the upper right cornerObjectGetInteger, ObjectSetInteger
ANCHOR_TOPAnchor on the top sideObjectGetInteger, ObjectSetInteger
ANCHOR_UPPERAnchor point above in the centerObjectGetInteger, ObjectSetInteger
BORDER_FLATFlat formObjectGetInteger, ObjectSetInteger
BORDER_RAISEDProminent formObjectGetInteger, ObjectSetInteger
BORDER_SUNKENConcave formObjectGetInteger, ObjectSetInteger
CHAR_MAXMaximal value, which can be represented by char typeNumerical Type Constants
CHAR_MINMinimal value, which can be represented by char typeNumerical Type Constants
CHART_AUTOSCROLLMode of automatic moving to the right border of the chartChartSetInteger, ChartGetInteger
CHART_BARSDisplay as a sequence of barsChartSetInteger
CHART_BEGINChart beginning (the oldest prices)ChartNavigate
CHART_BRING_TO_TOPShow chart on top of other chartsChartSetInteger, ChartGetInteger
CHART_CANDLESDisplay as Japanese candlesticksChartSetInteger
CHART_COLOR_ASKAsk price level colorChartSetInteger, ChartGetInteger
CHART_COLOR_BACKGROUNDChart background colorChartSetInteger, ChartGetInteger
CHART_COLOR_BIDBid price level colorChartSetInteger, ChartGetInteger
CHART_COLOR_CANDLE_BEARBody color of a bear candlestickChartSetInteger, ChartGetInteger
CHART_COLOR_CANDLE_BULLBody color of a bull candlestickChartSetInteger, ChartGetInteger
CHART_COLOR_CHART_DOWNColor for the down bar, shadows and body borders of bear candlesticksChartSetInteger, ChartGetInteger
CHART_COLOR_CHART_LINELine chart color and color of “Doji” Japanese candlesticksChartSetInteger, ChartGetInteger
CHART_COLOR_CHART_UPColor for the up bar, shadows and body borders of bull candlesticksChartSetInteger, ChartGetInteger
CHART_COLOR_FOREGROUNDColor of axes, scales and OHLC lineChartSetInteger, ChartGetInteger
CHART_COLOR_GRIDGrid colorChartSetInteger, ChartGetInteger
CHART_COLOR_LASTLine color of the last executed deal price (Last)ChartSetInteger, ChartGetInteger
CHART_COLOR_STOP_LEVELColor of stop order levels (Stop Loss and Take Profit)ChartSetInteger, ChartGetInteger
CHART_COLOR_VOLUMEColor of volumes and order opening levelsChartSetInteger, ChartGetInteger
CHART_COMMENTText of a comment in a chartChartSetString, ChartGetString
CHART_CURRENT_POSCurrent positionChartNavigate
CHART_DRAG_TRADE_LEVELSPermission to drag trading levels on a chart with a mouse. The drag mode is enabled by default (true value)ChartSetInteger, ChartGetInteger
CHART_ENDChart end (the latest prices)ChartNavigate
CHART_EVENT_MOUSE_MOVESend notifications of mouse move and mouse click events (CHARTEVENT_MOUSE_MOVE) to all mql4 programs on a chartChartSetInteger, ChartGetInteger
CHART_EVENT_OBJECT_CREATESend a notification of an event of new object creation (CHARTEVENT_OBJECT_CREATE) to all mql4-programs on a chartChartSetInteger, ChartGetInteger
CHART_EVENT_OBJECT_DELETESend a notification of an event of object deletion (CHARTEVENT_OBJECT_DELETE) to all mql4-programs on a chartChartSetInteger, ChartGetInteger
CHART_FIRST_VISIBLE_BARNumber of the first visible bar in the chart. Indexing of bars is the same as for timeseries.ChartSetInteger, ChartGetInteger
CHART_FIXED_MAXFixed chart maximumChartSetDouble, ChartGetDouble
CHART_FIXED_MINFixed chart minimumChartSetDouble, ChartGetDouble
CHART_FIXED_POSITIONChart fixed position from the left border in percent value. Chart fixed position is marked by a small gray triangle on the horizontal time axis. It is displayed only if the automatic chart scrolling to the right on tick incoming is disabled (see CHART_AUTOSCROLL property). The bar on a fixed position remains in the same place when zooming in and out.ChartSetDouble, ChartGetDouble
CHART_FOREGROUNDPrice chart in the foregroundChartSetInteger, ChartGetInteger
CHART_HEIGHT_IN_PIXELSChart height in pixelsChartSetInteger, ChartGetInteger
CHART_IS_OFFLINEFlag, indicating that chart opened in offline modeChartSetInteger, ChartGetInteger
CHART_LINEDisplay as a line drawn by Close pricesChartSetInteger
CHART_MODEChart type (candlesticks, bars or line)ChartSetInteger, ChartGetInteger
CHART_MOUSE_SCROLLScrolling the chart horizontally using the left mouse button. Vertical scrolling is also available if the value of any following properties is set to true: CHART_SCALEFIX, CHART_SCALEFIX_11 or CHART_SCALE_PT_PER_BARChartSetInteger, ChartGetInteger
CHART_POINTS_PER_BARScale in points per barChartSetDouble, ChartGetDouble
CHART_PRICE_MAXChart maximumChartSetDouble, ChartGetDouble
CHART_PRICE_MINChart minimumChartSetDouble, ChartGetDouble
CHART_SCALEScaleChartSetInteger, ChartGetInteger
CHART_SCALE_PT_PER_BARScale to be specified in points per barChartSetInteger, ChartGetInteger
CHART_SCALEFIXFixed scale modeChartSetInteger, ChartGetInteger
CHART_SCALEFIX_11Scale 1:1 modeChartSetInteger, ChartGetInteger
CHART_SHIFTMode of price chart indent from the right borderChartSetInteger, ChartGetInteger
CHART_SHIFT_SIZEThe size of the zero bar indent from the right border in percentsChartSetDouble, ChartGetDouble
CHART_SHOW_ASK_LINEDisplay Ask values as a horizontal line in a chartChartSetInteger, ChartGetInteger
CHART_SHOW_BID_LINEDisplay Bid values as a horizontal line in a chartChartSetInteger, ChartGetInteger
CHART_SHOW_DATE_SCALEShowing the time scale on a chartChartSetInteger, ChartGetInteger
CHART_SHOW_GRIDDisplay grid in the chartChartSetInteger, ChartGetInteger
CHART_SHOW_LAST_LINEDisplay Last values as a horizontal line in a chartChartSetInteger, ChartGetInteger
CHART_SHOW_OBJECT_DESCRPop-up descriptions of graphical objectsChartSetInteger, ChartGetInteger
CHART_SHOW_OHLCShow OHLC values in the upper left cornerChartSetInteger, ChartGetInteger
CHART_SHOW_PERIOD_SEPDisplay vertical separators between adjacent periodsChartSetInteger, ChartGetInteger
CHART_SHOW_PRICE_SCALEShowing the price scale on a chartChartSetInteger, ChartGetInteger
CHART_SHOW_TRADE_LEVELSDisplaying trade levels in the chart (levels of open orders, Stop Loss, Take Profit and pending orders)ChartSetInteger, ChartGetInteger
CHART_SHOW_VOLUMESDisplay volume in the chartChartSetInteger, ChartGetInteger
CHART_VISIBLE_BARSThe number of bars on the chart that can be displayedChartSetInteger, ChartGetInteger
CHART_VOLUME_HIDEVolumes are not shownChartSetInteger
CHART_VOLUME_TICKTick volumesChartSetInteger
CHART_WIDTH_IN_BARSChart width in barsChartSetInteger, ChartGetInteger
CHART_WIDTH_IN_PIXELSChart width in pixelsChartSetInteger, ChartGetInteger
CHART_WINDOW_HANDLEChart window handle (HWND)ChartSetInteger, ChartGetInteger
CHART_WINDOW_IS_VISIBLEVisibility of subwindowsChartSetInteger, ChartGetInteger
CHART_WINDOW_YDISTANCEThe distance between the upper frame of the indicator subwindow and the upper frame of the main chart window, along the vertical Y axis, in pixels. In case of a mouse event, the cursor coordinates are passed in terms of the coordinates of the main chart window, while the coordinates of graphical objects in an indicator subwindow are set relative to the upper left corner of the subwindow.The value is required for converting the absolute coordinates of the main chart to the local coordinates of a subwindow for correct work with the graphical objects, whose coordinates are set relative to the upper left corner of the subwindow frame.ChartSetInteger, ChartGetInteger
CHART_WINDOWS_TOTALThe total number of chart windows, including indicator subwindowsChartSetInteger, ChartGetInteger
CHARTEVENT_CHART_CHANGEChange of the chart size or modification of chart properties through the Properties dialogOnChartEvent
CHARTEVENT_CLICKClicking on a chartOnChartEvent
CHARTEVENT_CUSTOMInitial number of an event from a range of custom eventsOnChartEvent
CHARTEVENT_CUSTOM_LASTThe final number of an event from a range of custom eventsOnChartEvent
CHARTEVENT_KEYDOWNKeystrokesOnChartEvent
CHARTEVENT_MOUSE_MOVEMouse move, mouse clicks (if CHART_EVENT_MOUSE_MOVE=true is set for the chart)OnChartEvent
CHARTEVENT_OBJECT_CHANGEGraphical object property changed via the properties dialogOnChartEvent
CHARTEVENT_OBJECT_CLICKClicking on a graphical objectOnChartEvent
CHARTEVENT_OBJECT_CREATEGraphical object created (if CHART_EVENT_OBJECT_CREATE=true is set for the chart)OnChartEvent
CHARTEVENT_OBJECT_DELETEGraphical object deleted (if CHART_EVENT_OBJECT_DELETE=true is set for the chart)OnChartEvent
CHARTEVENT_OBJECT_DRAGDrag and drop of a graphical objectOnChartEvent
CHARTEVENT_OBJECT_ENDEDITEnd of text editing in the graphical object EditOnChartEvent
CHARTS_MAXThe maximum possible number of simultaneously open charts in the terminalOther constants
CLR_NONE, clrNONEAbsence of color. Indicates empty state of colorsOther constants
clrAliceBlueAlice BlueWeb Colors
clrAntiqueWhiteAntique WhiteWeb Colors
clrAquaAquaWeb Colors
clrAquamarineAquamarineWeb Colors
clrBeigeBeigeWeb Colors
clrBisqueBisqueWeb Colors
clrBlackBlackWeb Colors
clrBlanchedAlmondBlanched AlmondWeb Colors
clrBlueBlueWeb Colors
clrBlueVioletBlue VioletWeb Colors
clrBrownBrownWeb Colors
clrBurlyWoodBurly WoodWeb Colors
clrCadetBlueCadet BlueWeb Colors
clrChartreuseChartreuseWeb Colors
clrChocolateChocolateWeb Colors
clrCoralCoralWeb Colors
clrCornflowerBlueCornflower BlueWeb Colors
clrCornsilkCornsilkWeb Colors
clrCrimsonCrimsonWeb Colors
clrDarkBlueDark BlueWeb Colors
clrDarkGoldenrodDark GoldenrodWeb Colors
clrDarkGrayDark GrayWeb Colors
clrDarkGreenDark GreenWeb Colors
clrDarkKhakiDark KhakiWeb Colors
clrDarkOliveGreenDark Olive GreenWeb Colors
clrDarkOrangeDark OrangeWeb Colors
clrDarkOrchidDark OrchidWeb Colors
clrDarkSalmonDark SalmonWeb Colors
clrDarkSeaGreenDark Sea GreenWeb Colors
clrDarkSlateBlueDark Slate BlueWeb Colors
clrDarkSlateGrayDark Slate GrayWeb Colors
clrDarkTurquoiseDark TurquoiseWeb Colors
clrDarkVioletDark VioletWeb Colors
clrDeepPinkDeep PinkWeb Colors
clrDeepSkyBlueDeep Sky BlueWeb Colors
clrDimGrayDim GrayWeb Colors
clrDodgerBlueDodger BlueWeb Colors
clrFireBrickFire BrickWeb Colors
clrForestGreenForest GreenWeb Colors
clrGainsboroGainsboroWeb Colors
clrGoldGoldWeb Colors
clrGoldenrodGoldenrodWeb Colors
clrGrayGrayWeb Colors
clrGreenGreenWeb Colors
clrGreenYellowGreen YellowWeb Colors
clrHoneydewHoneydewWeb Colors
clrHotPinkHot PinkWeb Colors
clrIndianRedIndian RedWeb Colors
clrIndigoIndigoWeb Colors
clrIvoryIvoryWeb Colors
clrKhakiKhakiWeb Colors
clrLavenderLavenderWeb Colors
clrLavenderBlushLavender BlushWeb Colors
clrLawnGreenLawn GreenWeb Colors
clrLemonChiffonLemon ChiffonWeb Colors
clrLightBlueLight BlueWeb Colors
clrLightCoralLight CoralWeb Colors
clrLightCyanLight CyanWeb Colors
clrLightGoldenrodLight GoldenrodWeb Colors
clrLightGrayLight GrayWeb Colors
clrLightGreenLight GreenWeb Colors
clrLightPinkLight PinkWeb Colors
clrLightSalmonLight SalmonWeb Colors
clrLightSeaGreenLight Sea GreenWeb Colors
clrLightSkyBlueLight Sky BlueWeb Colors
clrLightSlateGrayLight Slate GrayWeb Colors
clrLightSteelBlueLight Steel BlueWeb Colors
clrLightYellowLight YellowWeb Colors
clrLimeLimeWeb Colors
clrLimeGreenLime GreenWeb Colors
clrLinenLinenWeb Colors
clrMagentaMagentaWeb Colors
clrMaroonMaroonWeb Colors
clrMediumAquamarineMedium AquamarineWeb Colors
clrMediumBlueMedium BlueWeb Colors
clrMediumOrchidMedium OrchidWeb Colors
clrMediumPurpleMedium PurpleWeb Colors
clrMediumSeaGreenMedium Sea GreenWeb Colors
clrMediumSlateBlueMedium Slate BlueWeb Colors
clrMediumSpringGreenMedium Spring GreenWeb Colors
clrMediumTurquoiseMedium TurquoiseWeb Colors
clrMediumVioletRedMedium Violet RedWeb Colors
clrMidnightBlueMidnight BlueWeb Colors
clrMintCreamMint CreamWeb Colors
clrMistyRoseMisty RoseWeb Colors
clrMoccasinMoccasinWeb Colors
clrNavajoWhiteNavajo WhiteWeb Colors
clrNavyNavyWeb Colors
clrOldLaceOld LaceWeb Colors
clrOliveOliveWeb Colors
clrOliveDrabOlive DrabWeb Colors
clrOrangeOrangeWeb Colors
clrOrangeRedOrange RedWeb Colors
clrOrchidOrchidWeb Colors
clrPaleGoldenrodPale GoldenrodWeb Colors
clrPaleGreenPale GreenWeb Colors
clrPaleTurquoisePale TurquoiseWeb Colors
clrPaleVioletRedPale Violet RedWeb Colors
clrPapayaWhipPapaya WhipWeb Colors
clrPeachPuffPeach PuffWeb Colors
clrPeruPeruWeb Colors
clrPinkPinkWeb Colors
clrPlumPlumWeb Colors
clrPowderBluePowder BlueWeb Colors
clrPurplePurpleWeb Colors
clrRedRedWeb Colors
clrRosyBrownRosy BrownWeb Colors
clrRoyalBlueRoyal BlueWeb Colors
clrSaddleBrownSaddle BrownWeb Colors
clrSalmonSalmonWeb Colors
clrSandyBrownSandy BrownWeb Colors
clrSeaGreenSea GreenWeb Colors
clrSeashellSeashellWeb Colors
clrSiennaSiennaWeb Colors
clrSilverSilverWeb Colors
clrSkyBlueSky BlueWeb Colors
clrSlateBlueSlate BlueWeb Colors
clrSlateGraySlate GrayWeb Colors
clrSnowSnowWeb Colors
clrSpringGreenSpring GreenWeb Colors
clrSteelBlueSteel BlueWeb Colors
clrTanTanWeb Colors
clrTealTealWeb Colors
clrThistleThistleWeb Colors
clrTomatoTomatoWeb Colors
clrTurquoiseTurquoiseWeb Colors
clrVioletVioletWeb Colors
clrWheatWheatWeb Colors
clrWhiteWhiteWeb Colors
clrWhiteSmokeWhite SmokeWeb Colors
clrYellowYellowWeb Colors
clrYellowGreenYellow GreenWeb Colors
CORNER_LEFT_LOWERCenter of coordinates is in the lower left corner of the chartObjectGetInteger, ObjectSetInteger
CORNER_LEFT_UPPERCenter of coordinates is in the upper left corner of the chartObjectGetInteger, ObjectSetInteger
CORNER_RIGHT_LOWERCenter of coordinates is in the lower right corner of the chartObjectGetInteger, ObjectSetInteger
CORNER_RIGHT_UPPERCenter of coordinates is in the upper right corner of the chartObjectGetInteger, ObjectSetInteger
CP_ACPThe current Windows ANSI code page.CharArrayToString, StringToCharArray, FileOpen
CP_MACCPThe current system Macintosh code page.Note: This value is mostly used in earlier created program codes and is of no use now, since modern Macintosh computers use Unicode for encoding.CharArrayToString, StringToCharArray, FileOpen
CP_OEMCPThe current system OEM code page.CharArrayToString, StringToCharArray, FileOpen
CP_SYMBOLSymbol code pageCharArrayToString, StringToCharArray, FileOpen
CP_THREAD_ACPThe Windows ANSI code page for the current thread.CharArrayToString, StringToCharArray, FileOpen
CP_UTF7UTF-7 code page.CharArrayToString, StringToCharArray, FileOpen
CP_UTF8UTF-8 code page.CharArrayToString, StringToCharArray, FileOpen
CRYPT_AES128AES encryption with 128 bit key (16 bytes)CryptEncode, CryptDecode
CRYPT_AES256AES encryption with 256 bit key (32 bytes)CryptEncode, CryptDecode
CRYPT_ARCH_ZIPZIP archivesCryptEncode, CryptDecode
CRYPT_BASE64BASE64CryptEncode, CryptDecode
CRYPT_DESDES encryption with 56 bit key (7 bytes)CryptEncode, CryptDecode
CRYPT_HASH_MD5MD5 HASH calculationCryptEncode, CryptDecode
CRYPT_HASH_SHA1SHA1 HASH calculationCryptEncode, CryptDecode
CRYPT_HASH_SHA256SHA256 HASH calculationCryptEncode, CryptDecode
DBL_DIGNumber of significant decimal digits for double typeNumerical Type Constants
DBL_EPSILONMinimal value, which satisfies the condition:1.0+DBL_EPSILON != 1.0 (for double type)Numerical Type Constants
DBL_MANT_DIGBits count in a mantissa for double typeNumerical Type Constants
DBL_MAXMaximal value, which can be represented by double typeNumerical Type Constants
DBL_MAX_10_EXPMaximal decimal value of exponent degree for double typeNumerical Type Constants
DBL_MAX_EXPMaximal binary value of exponent degree for double typeNumerical Type Constants
DBL_MINMinimal positive value, which can be represented by double typeNumerical Type Constants
DBL_MIN_10_EXPMinimal decimal value of exponent degree for double typeNumerical Type Constants
DBL_MIN_EXPMinimal binary value of exponent degree for double typeNumerical Type Constants
DRAW_ARROWDrawing arrows (symbols)Drawing Styles
DRAW_HISTOGRAMDrawing histogramDrawing Styles
DRAW_LINEDrawing lineDrawing Styles
DRAW_NONENo drawingDrawing Styles
DRAW_SECTIONDrawing sectionsDrawing Styles
DRAW_ZIGZAGDrawing sections between even and odd indicator buffers, 2 buffers of valuesDrawing Styles
EMPTYIndicates empty state of the parameterOther constants
EMPTY_VALUEEmpty value in an indicator buffer. Default custom indicator empty valueOther constants
ERR_ACCOUNT_DISABLEDAccount disabledGetLastError
ERR_ARRAY_AS_PARAMETER_EXPECTEDArray as parameter expectedGetLastError
ERR_ARRAY_INDEX_OUT_OF_RANGEArray index is out of rangeGetLastError
ERR_ARRAY_INVALIDInvalid arrayGetLastError
ERR_BROKER_BUSYBroker is busyGetLastError
ERR_CANNOT_CALL_FUNCTIONCannot call functionGetLastError
ERR_CANNOT_LOAD_LIBRARYCannot load libraryGetLastError
ERR_CANNOT_OPEN_FILECannot open fileGetLastError
ERR_CHART_NOREPLYNo reply from chartGetLastError
ERR_CHART_NOT_FOUNDChart not foundGetLastError
ERR_CHART_PROP_INVALIDUnknown chart propertyGetLastError
ERR_CHARTINDICATOR_NOT_FOUNDChart indicator not foundGetLastError
ERR_CHARTWINDOW_NOT_FOUNDChart subwindow not foundGetLastError
ERR_COMMON_ERRORCommon errorGetLastError
ERR_CUSTOM_INDICATOR_ERRORCustom indicator errorGetLastError
ERR_DLL_CALLS_NOT_ALLOWEDDLL calls are not allowedGetLastError
ERR_DLLFUNC_CRITICALERRORDLL-function call critical errorGetLastError
ERR_DOUBLE_PARAMETER_EXPECTEDDouble parameter expectedGetLastError
ERR_END_OF_FILEEnd of fileGetLastError
ERR_EXTERNAL_CALLS_NOT_ALLOWEDExpert function calls are not allowedGetLastError
ERR_FILE_ARRAYRESIZE_ERRORArray resize errorGetLastError
ERR_FILE_BIN_STRINGSIZEString size must be specified for binary fileGetLastError
ERR_FILE_BUFFER_ALLOCATION_ERRORText file buffer allocation errorGetLastError
ERR_FILE_CANNOT_CLEAN_DIRECTORYCannot clean directoryGetLastError
ERR_FILE_CANNOT_DELETECannot delete fileGetLastError
ERR_FILE_CANNOT_DELETE_DIRECTORYCannot delete directoryGetLastError
ERR_FILE_CANNOT_OPENCannot open fileGetLastError
ERR_FILE_CANNOT_REWRITEFile cannot be rewrittenGetLastError
ERR_FILE_DIRECTORY_NOT_EXISTDirectory does not existGetLastError
ERR_FILE_INCOMPATIBLEIncompatible file (for string arrays-TXT, for others-BIN)GetLastError
ERR_FILE_INVALID_HANDLEInvalid file handle (file closed or was not opened)GetLastError
ERR_FILE_IS_DIRECTORYFile is directory not fileGetLastError
ERR_FILE_NOT_BINFile must be opened with FILE_BIN flagGetLastError
ERR_FILE_NOT_CSVFile must be opened with FILE_CSV flagGetLastError
ERR_FILE_NOT_DIRECTORYSpecified file is not directoryGetLastError
ERR_FILE_NOT_EXISTFile does not existGetLastError
ERR_FILE_NOT_TOREADFile must be opened with FILE_READ flagGetLastError
ERR_FILE_NOT_TOWRITEFile must be opened with FILE_WRITE flagGetLastError
ERR_FILE_NOT_TXTFile must be opened with FILE_TXT flagGetLastError
ERR_FILE_NOT_TXTORCSVFile must be opened with FILE_TXT or FILE_CSV flagGetLastError
ERR_FILE_READ_ERRORFile read errorGetLastError
ERR_FILE_STRINGRESIZE_ERRORString resize errorGetLastError
ERR_FILE_STRUCT_WITH_OBJECTSStructure contains strings or dynamic arraysGetLastError
ERR_FILE_TOO_LONG_FILENAMEToo long file nameGetLastError
ERR_FILE_TOO_MANY_OPENEDToo many opened filesGetLastError
ERR_FILE_WRITE_ERRORFile write errorGetLastError
ERR_FILE_WRONG_DIRECTORYNAMEWrong directory nameGetLastError
ERR_FILE_WRONG_FILENAMEWrong file nameGetLastError
ERR_FILE_WRONG_HANDLEWrong file handle (handle index is out of handle table)GetLastError
ERR_FORMAT_TOO_MANY_FORMATTERSToo many formatters in the format functionGetLastError
ERR_FORMAT_TOO_MANY_PARAMETERSParameters count exceeds formatters countGetLastError
ERR_FUNC_NOT_ALLOWED_IN_TESTINGFunction is not allowed in testing modeGetLastError
ERR_FUNCTION_NOT_CONFIRMEDFunction is not allowed for callGetLastError
ERR_GLOBAL_VARIABLE_NOT_FOUNDGlobal variable not foundGetLastError
ERR_GLOBAL_VARIABLES_PROCESSINGGlobal variables processing errorGetLastError
ERR_HISTORY_WILL_UPDATEDRequested history data is in updating stateGetLastError
ERR_INCOMPATIBLE_ARRAYSArrays are incompatibleGetLastError
ERR_INCOMPATIBLE_FILEACCESSIncompatible access to a fileGetLastError
ERR_INCORRECT_SERIESARRAY_USINGIncorrect series array usingGetLastError
ERR_INDICATOR_CANNOT_INITCustom indicator cannot initializeGetLastError
ERR_INDICATOR_CANNOT_LOADCannot load custom indicatorGetLastError
ERR_INTEGER_PARAMETER_EXPECTEDInteger parameter expectedGetLastError
ERR_INTERNAL_ERRORInternal errorGetLastError
ERR_INVALID_ACCOUNTInvalid accountGetLastError
ERR_INVALID_FUNCTION_PARAMSCNTInvalid function parameters countGetLastError
ERR_INVALID_FUNCTION_PARAMVALUEInvalid function parameter valueGetLastError
ERR_INVALID_POINTERInvalid pointerGetLastError
ERR_INVALID_PRICEInvalid priceGetLastError
ERR_INVALID_PRICE_PARAMInvalid priceGetLastError
ERR_INVALID_STOPSInvalid stopsGetLastError
ERR_INVALID_TICKETInvalid ticketGetLastError
ERR_INVALID_TRADE_PARAMETERSInvalid trade parametersGetLastError
ERR_INVALID_TRADE_VOLUMEInvalid trade volumeGetLastError
ERR_LONG_POSITIONS_ONLY_ALLOWEDBuy orders only allowedGetLastError
ERR_LONGS_NOT_ALLOWEDLongs are not allowed. Check the Expert Advisor propertiesGetLastError
ERR_MALFUNCTIONAL_TRADEMalfunctional trade operationGetLastError
ERR_MARKET_CLOSEDMarket is closedGetLastError
ERR_NO_CONNECTIONNo connection with trade serverGetLastError
ERR_NO_ERRORNo error returnedGetLastError
ERR_NO_HISTORY_DATANo history dataGetLastError
ERR_NO_MEMORY_FOR_ARRAYSTRINGNo memory for array stringGetLastError
ERR_NO_MEMORY_FOR_CALL_STACKNo memory for function call stackGetLastError
ERR_NO_MEMORY_FOR_HISTORYNo memory for history dataGetLastError
ERR_NO_MEMORY_FOR_PARAM_STRINGNo memory for parameter stringGetLastError
ERR_NO_MEMORY_FOR_RETURNED_STRNot enough memory for temp string returned from functionGetLastError
ERR_NO_MEMORY_FOR_TEMP_STRINGNo memory for temp stringGetLastError
ERR_NO_MQLERRORNo error returnedGetLastError
ERR_NO_OBJECT_NAMENo object nameGetLastError
ERR_NO_ORDER_SELECTEDNo order selectedGetLastError
ERR_NO_RESULTNo error returned, but the result is unknownGetLastError
ERR_NO_SPECIFIED_SUBWINDOWNo specified subwindowGetLastError
ERR_NOT_ENOUGH_MONEYNot enough moneyGetLastError
ERR_NOT_ENOUGH_RIGHTSNot enough rightsGetLastError
ERR_NOT_ENOUGH_STACK_FOR_PARAMNot enough stack for parameterGetLastError
ERR_NOT_INITIALIZED_ARRAYNot initialized arrayGetLastError
ERR_NOT_INITIALIZED_ARRAYSTRINGNot initialized string in arrayGetLastError
ERR_NOT_INITIALIZED_STRINGNot initialized stringGetLastError
ERR_NOTIFICATION_ERRORNotification errorGetLastError
ERR_NOTIFICATION_PARAMETERNotification parameter errorGetLastError
ERR_NOTIFICATION_SETTINGSNotifications disabledGetLastError
ERR_NOTIFICATION_TOO_FREQUENTNotification send too frequentGetLastError
ERR_OBJECT_ALREADY_EXISTSObject already existsGetLastError
ERR_OBJECT_COORDINATES_ERRORObject coordinates errorGetLastError
ERR_OBJECT_DOES_NOT_EXISTObject does not existGetLastError
ERR_OFF_QUOTESOff quotesGetLastError
ERR_OLD_VERSIONOld version of the client terminalGetLastError
ERR_ORDER_LOCKEDOrder is lockedGetLastError
ERR_OUT_OF_MEMORYOut of memoryGetLastError
ERR_PRICE_CHANGEDPrice changedGetLastError
ERR_RECURSIVE_STACK_OVERFLOWRecursive stack overflowGetLastError
ERR_REMAINDER_FROM_ZERO_DIVIDERemainder from zero divideGetLastError
ERR_REQUOTERequoteGetLastError
ERR_RESOURCE_DUPLICATEDDuplicate resourceGetLastError
ERR_RESOURCE_NOT_FOUNDResource not foundGetLastError
ERR_RESOURCE_NOT_SUPPORTEDResource not supportedGetLastError
ERR_SEND_MAIL_ERRORSend mail errorGetLastError
ERR_SERVER_BUSYTrade server is busyGetLastError
ERR_SHORTS_NOT_ALLOWEDShorts are not allowed. Check the Expert Advisor propertiesGetLastError
ERR_SOME_ARRAY_ERRORSome array errorGetLastError
ERR_SOME_FILE_ERRORSome file errorGetLastError
ERR_SOME_OBJECT_ERRORGraphical object errorGetLastError
ERR_STRING_FUNCTION_INTERNALString function internal errorGetLastError
ERR_STRING_PARAMETER_EXPECTEDString parameter expectedGetLastError
ERR_SYMBOL_SELECTSymbol select errorGetLastError
ERR_SYSTEM_BUSYSystem is busy (never generated error)GetLastError
ERR_TOO_FREQUENT_REQUESTSToo frequent requestsGetLastError
ERR_TOO_LONG_STRINGToo long stringGetLastError
ERR_TOO_MANY_OPENED_FILESToo many opened filesGetLastError
ERR_TOO_MANY_REQUESTSToo many requestsGetLastError
ERR_TRADE_CONTEXT_BUSYTrade context is busyGetLastError
ERR_TRADE_DISABLEDTrade is disabledGetLastError
ERR_TRADE_ERRORInternal trade errorGetLastError
ERR_TRADE_EXPERT_DISABLED_BY_SERVERAutomated trading by Expert Advisors/Scripts disabled by trade serverGetLastError
ERR_TRADE_EXPIRATION_DENIEDExpirations are denied by brokerGetLastError
ERR_TRADE_HEDGE_PROHIBITEDAn attempt to open an order opposite to the existing one when hedging is disabledGetLastError
ERR_TRADE_MODIFY_DENIEDModification denied because order is too close to marketGetLastError
ERR_TRADE_NOT_ALLOWEDTrade is not allowed. Enable checkbox “Allow live trading” in the Expert Advisor propertiesGetLastError
ERR_TRADE_PROHIBITED_BY_FIFOAn attempt to close an order contravening the FIFO ruleGetLastError
ERR_TRADE_TIMEOUTTrade timeoutGetLastError
ERR_TRADE_TOO_MANY_ORDERSThe amount of open and pending orders has reached the limit set by the brokerGetLastError
ERR_UNKNOWN_COMMANDUnknown commandGetLastError
ERR_UNKNOWN_OBJECT_PROPERTYUnknown object propertyGetLastError
ERR_UNKNOWN_OBJECT_TYPEUnknown object typeGetLastError
ERR_UNKNOWN_SYMBOLUnknown symbolGetLastError
ERR_USER_ERROR_FIRSTUser defined errors start with this codeGetLastError
ERR_WEBREQUEST_CONNECT_FAILEDFailed to connect to specified URLGetLastError
ERR_WEBREQUEST_INVALID_ADDRESSInvalid URLGetLastError
ERR_WEBREQUEST_REQUEST_FAILEDHTTP request failedGetLastError
ERR_WEBREQUEST_TIMEOUTTimeout exceededGetLastError
ERR_WRONG_FILE_NAMEWrong file nameGetLastError
ERR_WRONG_FUNCTION_POINTERWrong function pointerGetLastError
ERR_WRONG_JUMPWrong jump (never generated error)GetLastError
ERR_ZERO_DIVIDEZero divideGetLastError
FILE_ACCESS_DATEDate of the last access to the fileFileGetInteger
FILE_ANSIStrings of ANSI type (one byte symbols). Flag is used in FileOpen()FileOpen
FILE_BINBinary read/write mode (without string to string conversion). Flag is used in FileOpen()FileOpen
FILE_COMMONThe file path in the common folder of all client terminals \Terminal\Common\Files. Flag is used in FileOpen(), FileCopy(), FileMove() and in FileIsExist() functions.FileOpen, FileCopy, FileMove, FileIsExist
FILE_CREATE_DATEDate of creationFileGetInteger
FILE_CSVCSV file (all its elements are converted to strings of the appropriate type, unicode or ansi, and separated by separator). Flag is used in FileOpen()FileOpen
FILE_ENDGet the end of file signFileGetInteger
FILE_EXISTSCheck the existenceFileGetInteger
FILE_IS_ANSIThe file is opened as ANSI (see FILE_ANSI)FileGetInteger
FILE_IS_BINARYThe file is opened as a binary file (see FILE_BIN)FileGetInteger
FILE_IS_COMMONThe file is opened in a shared folder of all terminals (see FILE_COMMON)FileGetInteger
FILE_IS_CSVThe file is opened as CSV (see FILE_CSV)FileGetInteger
FILE_IS_READABLEThe opened file is readable (see FILE_READ)FileGetInteger
FILE_IS_TEXTThe file is opened as a text file (see FILE_TXT)FileGetInteger
FILE_IS_WRITABLEThe opened file is writable (see FILE_WRITE)FileGetInteger
FILE_LINE_ENDGet the end of line signFileGetInteger
FILE_MODIFY_DATEDate of the last modificationFileGetInteger
FILE_POSITIONPosition of a pointer in the fileFileGetInteger
FILE_READFile is opened for reading. Flag is used in FileOpen(). When opening a file specification of FILE_WRITE and/or FILE_READ is required.FileOpen
FILE_REWRITEPossibility for the file rewrite using functions FileCopy() and FileMove(). The file should exist or should be opened for writing, otherwise the file will not be opened.FileCopy, FileMove
FILE_SHARE_READShared access for reading from several programs. Flag is used in FileOpen(), but it does not replace the necessity to indicate FILE_WRITE and/or the FILE_READ flag when opening a file.FileOpen
FILE_SHARE_WRITEShared access for writing from several programs. Flag is used in FileOpen(), but it does not replace the necessity to indicate FILE_WRITE and/or the FILE_READ flag when opening a file.FileOpen
FILE_SIZEFile size in bytesFileGetInteger
FILE_TXTSimple text file (the same as csv file, but without taking into account the separators). Flag is used in FileOpen()FileOpen
FILE_UNICODEStrings of UNICODE type (two byte symbols). Flag is used in FileOpen()FileOpen
FILE_WRITEFile is opened for writing. Flag is used in FileOpen(). When opening a file specification of FILE_WRITE and/or FILE_READ is required.FileOpen
FLT_DIGNumber of significant decimal digits for float typeNumerical Type Constants
FLT_EPSILONMinimal value, which satisfies the condition:1.0+DBL_EPSILON != 1.0 (for float type)Numerical Type Constants
FLT_MANT_DIGBits count in a mantissa for float typeNumerical Type Constants
FLT_MAXMaximal value, which can be represented by float typeNumerical Type Constants
FLT_MAX_10_EXPMaximal decimal value of exponent degree for float typeNumerical Type Constants
FLT_MAX_EXPMaximal binary value of exponent degree for float typeNumerical Type Constants
FLT_MINMinimal positive value, which can be represented by float typeNumerical Type Constants
FLT_MIN_10_EXPMinimal decimal value of exponent degree for float typeNumerical Type Constants
FLT_MIN_EXPMinimal binary value of exponent degree for float typeNumerical Type Constants
FRIDAYFridaySymbolInfoSessionQuote, SymbolInfoSessionTrade
GANN_DOWN_TRENDLine corresponding to the downward trendGann Objects
GANN_UP_TRENDLine corresponding to the uptrend lineGann Objects
IDABORT“Abort” button has been pressedMessageBox
IDCANCEL“Cancel” button has been pressedMessageBox
IDCONTINUE“Continue” button has been pressedMessageBox
IDIGNORE“Ignore” button has been pressedMessageBox
IDNO“No” button has been pressedMessageBox
IDOK“OK” button has been pressedMessageBox
IDRETRY“Retry” button has been pressedMessageBox
IDTRYAGAIN“Try Again” button has been pressedMessageBox
IDYES“Yes” button has been pressedMessageBox
INDICATOR_DIGITSAccuracy of drawing of indicator valuesCustom Indicators Properties
INDICATOR_HEIGHTFixed height of the indicator’s window (the preprocessor command #property indicator_height)Custom Indicators Properties
INDICATOR_LEVELCOLORColor of the level lineCustom Indicators Properties
INDICATOR_LEVELSNumber of levels in the indicator windowCustom Indicators Properties
INDICATOR_LEVELSTYLEStyle of the level lineCustom Indicators Properties
INDICATOR_LEVELTEXTLevel descriptionCustom Indicators Properties
INDICATOR_LEVELVALUELevel valueCustom Indicators Properties
INDICATOR_LEVELWIDTHThickness of the level lineCustom Indicators Properties
INDICATOR_MAXIMUMMaximum of the indicator windowCustom Indicators Properties
INDICATOR_MINIMUMMinimum of the indicator windowCustom Indicators Properties
INDICATOR_SHORTNAMEShort indicator nameCustom Indicators Properties
INT_MAXMaximal value, which can be represented by int typeNumerical Type Constants
INT_MINMinimal value, which can be represented by int typeNumerical Type Constants
INVALID_HANDLEIncorrect handleOther constants
IS_DEBUG_MODEFlag that a mql4-program operates in debug modeOther constants
IS_PROFILE_MODEFlag that a mql4-program operates in profiling modeOther constants
LONG_MAXMaximal value, which can be represented by long typeNumerical Type Constants
LONG_MINMinimal value, which can be represented by long typeNumerical Type Constants
M_1_PI1/piMathematical Constants
M_2_PI2/piMathematical Constants
M_2_SQRTPI2/sqrt(pi)Mathematical Constants
M_EeMathematical Constants
M_LN10ln(10)Mathematical Constants
M_LN2ln(2)Mathematical Constants
M_LOG10Elog10(e)Mathematical Constants
M_LOG2Elog2(e)Mathematical Constants
M_PIpiMathematical Constants
M_PI_2pi/2Mathematical Constants
M_PI_4pi/4Mathematical Constants
M_SQRT1_21/sqrt(2)Mathematical Constants
M_SQRT2sqrt(2)Mathematical Constants
MB_ABORTRETRYIGNOREMessage window contains three buttons: Abort, Retry and IgnoreMessageBox
MB_CANCELTRYCONTINUEMessage window contains three buttons: Cancel, Try Again, ContinueMessageBox
MB_DEFBUTTON1The first button MB_DEFBUTTON1 - is default, if the other buttons MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 are not specifiedMessageBox
MB_DEFBUTTON2The second button is defaultMessageBox
MB_DEFBUTTON3The third button is defaultMessageBox
MB_DEFBUTTON4The fourth button is defaultMessageBox
MB_ICONEXCLAMATION,MB_ICONWARNINGThe exclamation/warning sign iconMessageBox
MB_ICONINFORMATION,MB_ICONASTERISKThe encircled i signMessageBox
MB_ICONQUESTIONThe question sign iconMessageBox
MB_ICONSTOP,MB_ICONERROR,MB_ICONHANDThe STOP sign iconMessageBox
MB_OKMessage window contains only one button: OK. DefaultMessageBox
MB_OKCANCELMessage window contains two buttons: OK and CancelMessageBox
MB_RETRYCANCELMessage window contains two buttons: Retry and CancelMessageBox
MB_YESNOMessage window contains two buttons: Yes and NoMessageBox
MB_YESNOCANCELMessage window contains three buttons: Yes, No and CancelMessageBox
MODE_ASKLast incoming ask price. For the current symbol, it is stored in the predefined variable AskMarketInfo
MODE_BIDLast incoming bid price. For the current symbol, it is stored in the predefined variable BidMarketInfo
MODE_CHIKOUSPANChikou SpanIndicator Lines
MODE_CLOSEClose priceSeries Array Identifiers
MODE_DIGITSCount of digits after decimal point in the symbol prices. For the current symbol, it is stored in the predefined variable DigitsMarketInfo
MODE_EMAExponential averagingSmoothing Methods
MODE_EXPIRATIONMarket expiration date (usually used for futures)MarketInfo
MODE_FREEZELEVELOrder freeze level in points. If the execution price lies within the range defined by the freeze level, the order cannot be modified, cancelled or closedMarketInfo
MODE_GATORJAWJaw lineIndicator Lines
MODE_GATORLIPSLips lineIndicator Lines
MODE_GATORTEETHTeeth lineIndicator Lines
MODE_HIGHHigh day priceSeries Array Identifiers
MODE_HISTORYAn order is selected from closed and canceled ordersOrderSelect
MODE_KIJUNSENKijun-senIndicator Lines
MODE_LOTSIZELot size in the base currencyMarketInfo
MODE_LOTSTEPStep for changing lotsMarketInfo
MODE_LOWLow day priceSeries Array Identifiers
MODE_LOWERLower lineIndicator Lines
MODE_LWMALinear-weighted averagingSmoothing Methods
MODE_MAINBase indicator lineIndicator Lines
MODE_MARGINCALCMODEMargin calculation mode. 0 - Forex; 1 - CFD; 2 - Futures; 3 - CFD for indicesMarketInfo
MODE_MARGINHEDGEDHedged margin calculated for 1 lotMarketInfo
MODE_MARGININITInitial margin requirements for 1 lotMarketInfo
MODE_MARGINMAINTENANCEMargin to maintain open orders calculated for 1 lotMarketInfo
MODE_MARGINREQUIREDFree margin required to open 1 lot for buyingMarketInfo
MODE_MAXLOTMaximum permitted amount of a lotMarketInfo
MODE_MINLOTMinimum permitted amount of a lotMarketInfo
MODE_MINUSDI-DI indicator lineIndicator Lines
MODE_OPENOpen priceSeries Array Identifiers
MODE_PLUSDI+DI indicator lineIndicator Lines
MODE_POINTPoint size in the quote currency. For the current symbol, it is stored in the predefined variable PointMarketInfo
MODE_PROFITCALCMODEProfit calculation mode. 0 - Forex; 1 - CFD; 2 - FuturesMarketInfo
MODE_SENKOUSPANASenkou Span AIndicator Lines
MODE_SENKOUSPANBSenkou Span BIndicator Lines
MODE_SIGNALSignal lineIndicator Lines
MODE_SMASimple averagingSmoothing Methods
MODE_SMMASmoothed averagingSmoothing Methods
MODE_SPREADSpread value in pointsMarketInfo
MODE_STARTINGMarket starting date (usually used for futures)MarketInfo
MODE_STOPLEVELStop level in pointsA zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal. In the second case, GetLastError() can return error 130, because MODE_STOPLEVEL is actually “floating” here.MarketInfo
MODE_SWAPLONGSwap of the buy orderMarketInfo
MODE_SWAPSHORTSwap of the sell orderMarketInfo
MODE_SWAPTYPESwap calculation method. 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currencyMarketInfo
MODE_TENKANSENTenkan-senIndicator Lines
MODE_TICKSIZETick size in pointsMarketInfo
MODE_TICKVALUETick value in the deposit currencyMarketInfo
MODE_TIMEThe last incoming tick time (last known server time)Series Array Identifiers
MODE_TRADEALLOWEDTrade is allowed for the symbolMarketInfo
MODE_TRADESAn order is selected from open and pending ordersOrderSelect
MODE_UPPERUpper lineIndicator Lines
MODE_VOLUMEVolume, used in iLowest() and iHighest() functionsSeries Array Identifiers
MONDAYMondaySymbolInfoSessionQuote, SymbolInfoSessionTrade
MQL_CODEPAGECodepage used by an MQL4 program to output and convert strings (Print, PrintFormat, Alert, MessageBox, SendFTP, SendMail, SendNotification, etc.)Running MQL4 Program Properties
MQL_DEBUGThe flag, that indicates the debug modeMQLInfoInteger
MQL_DLLS_ALLOWEDThe permission to use DLL for the given executed programMQLInfoInteger
MQL_LICENSE_TYPEType of license of the EX4 module. The license refers to the EX4 module, from which a request is made using MQLInfoInteger(MQL_LICENSE_TYPE).MQLInfoInteger
MQL_OPTIMIZATIONThe flag, that indicates the optimization processMQLInfoInteger
MQL_PROFILERThe flag, that indicates the program operating in the code profiling modeMQLInfoInteger
MQL_PROGRAM_NAMEName of the MQL4-program executedMQLInfoString
MQL_PROGRAM_PATHPath for the given executed programMQLInfoString
MQL_PROGRAM_TYPEType of the MQL4 programMQLInfoInteger
MQL_SIGNALS_ALLOWEDThe permission to modify the Signals for the given executed programMQLInfoInteger
MQL_TESTERThe flag, that indicates the tester processMQLInfoInteger
MQL_TRADE_ALLOWEDThe permission to trade for the given executed programMQLInfoInteger
MQL_VISUAL_MODEThe flag, that indicates the visual tester processMQLInfoInteger
NULLZero for any types. Also indicates empty state of the stringOther constants
OBJ_ALL_PERIODSThe object is drawn in all timeframesVisibility of Objects
OBJ_ARROWArrowObject Types
OBJ_ARROW_BUYBuy SignObject Types
OBJ_ARROW_CHECKCheck SignObject Types
OBJ_ARROW_DOWNArrow DownObject Types
OBJ_ARROW_LEFT_PRICELeft Price LabelObject Types
OBJ_ARROW_RIGHT_PRICERight Price LabelObject Types
OBJ_ARROW_SELLSell SignObject Types
OBJ_ARROW_STOPStop SignObject Types
OBJ_ARROW_THUMB_DOWNThumbs DownObject Types
OBJ_ARROW_THUMB_UPThumbs UpObject Types
OBJ_ARROW_UPArrow UpObject Types
OBJ_BITMAPBitmapObject Types
OBJ_BITMAP_LABELBitmap LabelObject Types
OBJ_BUTTONButtonObject Types
OBJ_CHANNELEquidistant ChannelObject Types
OBJ_CYCLESCycle LinesObject Types
OBJ_EDITEditObject Types
OBJ_ELLIPSEEllipseObject Types
OBJ_EVENTThe “Event” object corresponding to an event in the economic calendarObject Types
OBJ_EXPANSIONFibonacci ExpansionObject Types
OBJ_FIBOFibonacci RetracementObject Types
OBJ_FIBOARCFibonacci ArcsObject Types
OBJ_FIBOCHANNELFibonacci ChannelObject Types
OBJ_FIBOFANFibonacci FanObject Types
OBJ_FIBOTIMESFibonacci Time ZonesObject Types
OBJ_GANNFANGann FanObject Types
OBJ_GANNGRIDGann GridObject Types
OBJ_GANNLINEGann LineObject Types
OBJ_HLINEHorizontal LineObject Types
OBJ_LABELLabelObject Types
OBJ_NO_PERIODS, EMPTYThe object is not drawn in all timeframesVisibility of Objects
OBJ_PERIOD_D1The object is drawn in day chartsVisibility of Objects
OBJ_PERIOD_H1The object is drawn in 1-hour chartVisibility of Objects
OBJ_PERIOD_H4The object is drawn in 4-hour chartVisibility of Objects
OBJ_PERIOD_M1The object is drawn in 1-minute chartVisibility of Objects
OBJ_PERIOD_M15The object is drawn in 15-minute chartVisibility of Objects
OBJ_PERIOD_M30The object is drawn in 30-minute chartVisibility of Objects
OBJ_PERIOD_M5The object is drawn in 5-minute chartVisibility of Objects
OBJ_PERIOD_MN1The object is drawn in month chartsVisibility of Objects
OBJ_PERIOD_W1The object is drawn in week chartsVisibility of Objects
OBJ_PITCHFORKAndrews’ PitchforkObject Types
OBJ_RECTANGLERectangleObject Types
OBJ_RECTANGLE_LABELThe “Rectangle label” object for creating and designing the custom graphical interface.Object Types
OBJ_REGRESSIONLinear Regression ChannelObject Types
OBJ_STDDEVCHANNELStandard Deviation ChannelObject Types
OBJ_TEXTTextObject Types
OBJ_TRENDTrend LineObject Types
OBJ_TRENDBYANGLETrend Line By AngleObject Types
OBJ_TRIANGLETriangleObject Types
OBJ_VLINEVertical LineObject Types
OBJPROP_ALIGNHorizontal text alignment in the “Edit” object (OBJ_EDIT)ObjectGetInteger, ObjectSetInteger
OBJPROP_ANCHORLocation of the anchor point of a graphical objectObjectGetInteger, ObjectSetInteger
OBJPROP_ANGLEDouble value to set/get angle object property in degreesObjectGet, ObjectSet
OBJPROP_ARROWCODEInteger value or arrow enumeration to set/get arrow code object propertyObjectGet, ObjectSet
OBJPROP_BACKBoolean value to set/get background drawing flag for objectObjectGet, ObjectSet
OBJPROP_BGCOLORThe background color for OBJ_EDIT, OBJ_BUTTON, OBJ_RECTANGLE_LABELObjectGetInteger, ObjectSetInteger
OBJPROP_BMPFILEThe name of BMP-file for Bitmap Label. See also ResourcesObjectGetString, ObjectSetString
OBJPROP_BORDER_COLORBorder color for the OBJ_EDIT and OBJ_BUTTON objectsObjectGetInteger, ObjectSetInteger
OBJPROP_BORDER_TYPEBorder type for the “Rectangle label” objectObjectGetInteger, ObjectSetInteger
OBJPROP_COLORColor value to set/get object colorObjectGet, ObjectSet
OBJPROP_CORNERInteger value to set/get anchor corner property for label objects. Must be from 0-3.ObjectGet, ObjectSet
OBJPROP_CREATETIMETime of object creationObjectGetInteger, ObjectSetInteger
OBJPROP_DEVIATIONDouble value to set/get deviation property for Standard deviation objectsObjectGet, ObjectSet
OBJPROP_DRAWLINESDisplaying lines for marking the Elliott WaveObjectGetInteger, ObjectSetInteger
OBJPROP_ELLIPSEBoolean value to set/get ellipse flag for fibo arcsObjectGet, ObjectSet
OBJPROP_FIBOLEVELSInteger value to set/get Fibonacci object level count. Can be from 0 to 32ObjectGet, ObjectSet
OBJPROP_FIRSTLEVEL+nInteger value to set/get the value of Fibonacci object level with index n. Index n can be from 0 (number of levels -1), but not larger than 31ObjectGet, ObjectSet
OBJPROP_FONTFontObjectGetString, ObjectSetString
OBJPROP_FONTSIZEInteger value to set/get font size for text objectsObjectGet, ObjectSet
OBJPROP_HIDDENProhibit showing of the name of a graphical object in the list of objects from the terminal menu “Charts” - “Objects” - “List of objects”. The true value allows to hide an object from the list. By default, true is set to the objects that display calendar events, trading history and to the objects created from MQL4 programs. To see such graphical objects and access their properties, click on the “All” button in the “List of objects” window.ObjectGetInteger, ObjectSetInteger
OBJPROP_LEVELCOLORColor value to set/get object level line colorObjectGet, ObjectSet
OBJPROP_LEVELSNumber of levelsObjectGetInteger, ObjectSetInteger
OBJPROP_LEVELSTYLEValue is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object level line styleObjectGet, ObjectSet
OBJPROP_LEVELTEXTLevel descriptionObjectGetString, ObjectSetString
OBJPROP_LEVELVALUELevel valueObjectGetDouble, ObjectSetDouble
OBJPROP_LEVELWIDTHInteger value to set/get object level line width. Can be from 1 to 5ObjectGet, ObjectSet
OBJPROP_NAMEObject nameObjectGetString, ObjectSetString
OBJPROP_PRICEPrice coordinateObjectGetDouble, ObjectSetDouble
OBJPROP_PRICE1Double value to set/get first coordinate price partObjectGet, ObjectSet
OBJPROP_PRICE2Double value to set/get second coordinate price partObjectGet, ObjectSet
OBJPROP_PRICE3Double value to set/get third coordinate price partObjectGet, ObjectSet
OBJPROP_RAYBoolean value to set/get ray flag of object.ObjectGet, ObjectSet
OBJPROP_RAY_RIGHTRay goes to the rightObjectGetInteger, ObjectSetInteger
OBJPROP_READONLYAbility to edit text in the Edit objectObjectGetInteger, ObjectSetInteger
OBJPROP_SCALEDouble value to set/get scale object propertyObjectGet, ObjectSet
OBJPROP_SELECTABLEObject availabilityObjectGetInteger, ObjectSetInteger
OBJPROP_SELECTEDObject is selectedObjectGetInteger, ObjectSetInteger
OBJPROP_STATEButton state (pressed / depressed)ObjectGetInteger, ObjectSetInteger
OBJPROP_STYLEValue is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line styleObjectGet, ObjectSet
OBJPROP_SYMBOLSymbol for the Chart objectObjectGetString, ObjectSetString
OBJPROP_TEXTDescription of the object (the text contained in the object)ObjectGetString, ObjectSetString
OBJPROP_TIMETime coordinateObjectGetInteger, ObjectSetInteger
OBJPROP_TIME1Datetime value to set/get first coordinate time partObjectGet, ObjectSet
OBJPROP_TIME2Datetime value to set/get second coordinate time partObjectGet, ObjectSet
OBJPROP_TIME3Datetime value to set/get third coordinate time partObjectGet, ObjectSet
OBJPROP_TIMEFRAMESValue can be one or combination (bitwise addition) of object visibility constants to set/get timeframe object propertyObjectGet, ObjectSet
OBJPROP_TOOLTIPThe text of a tooltip. If the property is not set, then the tooltip generated automatically by the terminal is shown. A tooltip can be disabled by setting the “\n” (line feed) value to itObjectGetString, ObjectSetString
OBJPROP_TYPEObject typeObjectGetInteger, ObjectSetInteger
OBJPROP_WIDTHInteger value to set/get object line width. Can be from 1 to 5ObjectGet, ObjectSet
OBJPROP_XDISTANCEInteger value to set/get anchor X distance object property in pixels (see note)ObjectGet, ObjectSet
OBJPROP_XOFFSETThe X coordinate of the upper left corner of the rectangular visible area in the graphical objects “Bitmap Label” and “Bitmap” (OBJ_BITMAP_LABEL and OBJ_BITMAP). The value is set in pixels relative to the upper left corner of the original image.ObjectGetInteger, ObjectSetInteger
OBJPROP_XSIZEThe object’s width along the X axis in pixels. Specified for OBJ_LABEL (read only), OBJ_BUTTON, OBJ_BITMAP, OBJ_BITMAP_LABEL, OBJ_EDIT, OBJ_RECTANGLE_LABEL objects.ObjectGetInteger, ObjectSetInteger
OBJPROP_YDISTANCEInteger value is to set/get anchor Y distance object property in pixels (see note)ObjectGet, ObjectSet
OBJPROP_YOFFSETThe Y coordinate of the upper left corner of the rectangular visible area in the graphical objects “Bitmap Label” and “Bitmap” (OBJ_BITMAP_LABEL and OBJ_BITMAP). The value is set in pixels relative to the upper left corner of the original image.ObjectGetInteger, ObjectSetInteger
OBJPROP_YSIZEThe object’s height along the Y axis in pixels. Specified for OBJ_LABEL (read only), OBJ_BUTTON, OBJ_BITMAP, OBJ_BITMAP_LABEL, OBJ_EDIT, OBJ_RECTANGLE_LABEL objects.ObjectGetInteger, ObjectSetInteger
OBJPROP_ZORDERPriority of a graphical object for receiving events of clicking on a chart (CHARTEVENT_CLICK). The default zero value is set when creating an object; the priority can be increased if necessary. When applying objects one over another, only one of them with the highest priority will receive the CHARTEVENT_CLICK event.ObjectGetInteger, ObjectSetInteger
OP_BUYBuy operationOrderSend
OP_BUYLIMITBuy limit pending orderOrderSend
OP_BUYSTOPBuy stop pending orderOrderSend
OP_SELLSell operationOrderSend
OP_SELLLIMITSell limit pending orderOrderSend
OP_SELLSTOPSell stop pending orderOrderSend
PERIOD_CURRENTCurrent timeframeChart Timeframes
PERIOD_D11 dayChart Timeframes
PERIOD_H11 hourChart Timeframes
PERIOD_H1212 hoursChart Timeframes
PERIOD_H22 hoursChart Timeframes
PERIOD_H33 hoursChart Timeframes
PERIOD_H44 hoursChart Timeframes
PERIOD_H66 hoursChart Timeframes
PERIOD_H88 hoursChart Timeframes
PERIOD_M11 minuteChart Timeframes
PERIOD_M1010 minutesChart Timeframes
PERIOD_M1212 minutesChart Timeframes
PERIOD_M1515 minutesChart Timeframes
PERIOD_M22 minutesChart Timeframes
PERIOD_M2020 minutesChart Timeframes
PERIOD_M33 minutesChart Timeframes
PERIOD_M3030 minutesChart Timeframes
PERIOD_M44 minutesChart Timeframes
PERIOD_M55 minutesChart Timeframes
PERIOD_M66 minutesChart Timeframes
PERIOD_MN11 monthChart Timeframes
PERIOD_W11 weekChart Timeframes
POINTER_AUTOMATICPointer of any objects created automatically (not using new())CheckPointer
POINTER_DYNAMICPointer of the object created by the new() operatorCheckPointer
POINTER_INVALIDIncorrect pointerCheckPointer
PRICE_CLOSEClose pricePrice Constants
PRICE_HIGHThe maximum price for the periodPrice Constants
PRICE_LOWThe minimum price for the periodPrice Constants
PRICE_MEDIANMedian price, (high + low)/2Price Constants
PRICE_OPENOpen pricePrice Constants
PRICE_TYPICALTypical price, (high + low + close)/3Price Constants
PRICE_WEIGHTEDAverage price, (high + low + close + close)/4Price Constants
REASON_ACCOUNTAnother account has been activated or reconnection to the trade server has occurred due to changes in the account settingsUninitializeReason
REASON_CHARTCHANGESymbol or chart period has been changedUninitializeReason
REASON_CHARTCLOSEChart has been closedUninitializeReason
REASON_CLOSETerminal has been closedUninitializeReason
REASON_INITFAILEDThis value means that OnInit() handler has returned a nonzero valueUninitializeReason
REASON_PARAMETERSInput parameters have been changed by a userUninitializeReason
REASON_PROGRAMExpert Advisor terminated its operation by calling the ExpertRemove() functionUninitializeReason
REASON_RECOMPILEProgram has been recompiledUninitializeReason
REASON_REMOVEProgram has been deleted from the chartUninitializeReason
REASON_TEMPLATEA new template has been appliedUninitializeReason
SATURDAYSaturdaySymbolInfoSessionQuote, SymbolInfoSessionTrade
SEEK_CURCurrent position of a file pointerFileSeek
SEEK_ENDFile endFileSeek
SEEK_SETFile beginningFileSeek
SELECT_BY_POSAn order is selected based on its position in the list of ordersOrderSelect
SELECT_BY_TICKETAn order is selected by its ticketOrderSelect
SERIES_BARS_COUNTBars count for the symbol-period for the current momentSeriesInfoInteger
SERIES_FIRSTDATEThe very first date for the symbol-period for the current momentSeriesInfoInteger
SERIES_LASTBAR_DATEOpen time of the last bar of the symbol-periodSeriesInfoInteger
SERIES_SERVER_FIRSTDATEThe very first date in the history of the symbol on the server regardless of the timeframeSeriesInfoInteger
SHORT_MAXMaximal value, which can be represented by short typeNumerical Type Constants
SHORT_MINMinimal value, which can be represented by short typeNumerical Type Constants
SIGNAL_BASE_AUTHOR_LOGINAuthor loginSignalBaseGetString
SIGNAL_BASE_BALANCEAccount balanceSignalBaseGetDouble
SIGNAL_BASE_BROKERBroker name (company)SignalBaseGetString
SIGNAL_BASE_BROKER_SERVERBroker serverSignalBaseGetString
SIGNAL_BASE_CURRENCYSignal base currencySignalBaseGetString
SIGNAL_BASE_DATE_PUBLISHEDPublication date (date when it become available for subscription)SignalBaseGetInteger
SIGNAL_BASE_DATE_STARTEDMonitoring starting dateSignalBaseGetInteger
SIGNAL_BASE_EQUITYAccount equitySignalBaseGetDouble
SIGNAL_BASE_GAINAccount gainSignalBaseGetDouble
SIGNAL_BASE_IDSignal IDSignalBaseGetInteger
SIGNAL_BASE_LEVERAGEAccount leverageSignalBaseGetInteger
SIGNAL_BASE_MAX_DRAWDOWNAccount maximum drawdownSignalBaseGetDouble
SIGNAL_BASE_NAMESignal nameSignalBaseGetString
SIGNAL_BASE_PIPSProfit in pipsSignalBaseGetInteger
SIGNAL_BASE_PRICESignal subscription priceSignalBaseGetDouble
SIGNAL_BASE_RATINGPosition in ratingSignalBaseGetInteger
SIGNAL_BASE_ROIReturn on Investment (%)SignalBaseGetDouble
SIGNAL_BASE_SUBSCRIBERSNumber of subscribersSignalBaseGetInteger
SIGNAL_BASE_TRADE_MODEAccount type (0-real, 1-demo, 2-contest)SignalBaseGetInteger
SIGNAL_BASE_TRADESNumber of tradesSignalBaseGetInteger
SIGNAL_INFO_CONFIRMATIONS_DISABLEDThe flag enables synchronization without confirmation dialogSignalInfoGetInteger, SignalInfoSetInteger
SIGNAL_INFO_COPY_SLTPCopy Stop Loss and Take Profit flagSignalInfoGetInteger, SignalInfoSetInteger
SIGNAL_INFO_DEPOSIT_PERCENTDeposit percent (%)SignalInfoGetInteger, SignalInfoSetInteger
SIGNAL_INFO_EQUITY_LIMITEquity limitSignalInfoGetDouble, SignalInfoSetDouble
SIGNAL_INFO_IDSignal id, r/oSignalInfoGetInteger, SignalInfoSetInteger
SIGNAL_INFO_NAMESignal name, r/oSignalInfoGetString
SIGNAL_INFO_SLIPPAGESlippage (used when placing market orders in synchronization of positions and copying of trades)SignalInfoGetDouble, SignalInfoSetDouble
SIGNAL_INFO_SUBSCRIPTION_ENABLED“Copy trades by subscription” permission flagSignalInfoGetInteger, SignalInfoSetInteger
SIGNAL_INFO_TERMS_AGREE“Agree to terms of use of Signals service” flag, r/oSignalInfoGetInteger, SignalInfoSetInteger
SIGNAL_INFO_VOLUME_PERCENTMaximum percent of deposit used (%), r/oSignalInfoGetDouble, SignalInfoSetDouble
STAT_BALANCE_DDMaximum balance drawdown in monetary terms. In the process of trading, a balance may have numerous drawdowns; here the largest value is takenTesterStatistics
STAT_BALANCE_DD_RELATIVEBalance drawdown in monetary terms that was recorded at the moment of the maximum balance drawdown as a percentage (STAT_BALANCE_DDREL_PERCENT).TesterStatistics
STAT_BALANCE_DDREL_PERCENTMaximum balance drawdown as a percentage. In the process of trading, a balance may have numerous drawdowns, for each of which the relative drawdown value in percents is calculated. The greatest value is returnedTesterStatistics
STAT_BALANCEDD_PERCENTBalance drawdown as a percentage that was recorded at the moment of the maximum balance drawdown in monetary terms (STAT_BALANCE_DD).TesterStatistics
STAT_BALANCEMINMinimum balance valueTesterStatistics
STAT_CONLOSSMAXMaximum loss in a series of losing trades. The value is less than or equal to zeroTesterStatistics
STAT_CONLOSSMAX_TRADESThe number of trades that have formed STAT_CONLOSSMAX (maximum loss in a series of losing trades)TesterStatistics
STAT_CONPROFITMAXMaximum profit in a series of profitable trades. The value is greater than or equal to zeroTesterStatistics
STAT_CONPROFITMAX_TRADESThe number of trades that have formed STAT_CONPROFITMAX (maximum profit in a series of profitable trades)TesterStatistics
STAT_CUSTOM_ONTESTERThe value of the calculated custom optimization criterion returned by the OnTester() functionTesterStatistics
STAT_DEALSThe number of dealsTesterStatistics
STAT_EQUITY_DDMaximum equity drawdown in monetary terms. In the process of trading, numerous drawdowns may appear on the equity; here the largest value is takenTesterStatistics
STAT_EQUITY_DD_RELATIVEEquity drawdown in monetary terms that was recorded at the moment of the maximum equity drawdown in percent (STAT_EQUITY_DDREL_PERCENT).TesterStatistics
STAT_EQUITY_DDREL_PERCENTMaximum equity drawdown as a percentage. In the process of trading, an equity may have numerous drawdowns, for each of which the relative drawdown value in percents is calculated. The greatest value is returnedTesterStatistics
STAT_EQUITYDD_PERCENTDrawdown in percent that was recorded at the moment of the maximum equity drawdown in monetary terms (STAT_EQUITY_DD).TesterStatistics
STAT_EQUITYMINMinimum equity valueTesterStatistics
STAT_EXPECTED_PAYOFFExpected payoffTesterStatistics
STAT_GROSS_LOSSTotal loss, the sum of all negative trades. The value is less than or equal to zeroTesterStatistics
STAT_GROSS_PROFITTotal profit, the sum of all profitable (positive) trades. The value is greater than or equal to zeroTesterStatistics
STAT_INITIAL_DEPOSITThe value of the initial depositTesterStatistics
STAT_LONG_TRADESLong tradesTesterStatistics
STAT_LOSS_TRADESLosing tradesTesterStatistics
STAT_LOSSTRADES_AVGCONAverage length of a losing series of tradesTesterStatistics
STAT_MAX_CONLOSS_TRADESThe number of trades in the longest series of losing trades STAT_MAX_CONLOSSESTesterStatistics
STAT_MAX_CONLOSSESThe total loss of the longest series of losing tradesTesterStatistics
STAT_MAX_CONPROFIT_TRADESThe number of trades in the longest series of profitable trades STAT_MAX_CONWINSTesterStatistics
STAT_MAX_CONWINSThe total profit of the longest series of profitable tradesTesterStatistics
STAT_MAX_LOSSTRADEMaximum loss – the lowest value of all losing trades. The value is less than or equal to zeroTesterStatistics
STAT_MAX_PROFITTRADEMaximum profit – the largest value of all profitable trades. The value is greater than or equal to zeroTesterStatistics
STAT_MIN_MARGINLEVELMinimum value of the margin levelTesterStatistics
STAT_PROFITNet profit after testing, the sum of STAT_GROSS_PROFIT and STAT_GROSS_LOSS (STAT_GROSS_LOSS is always less than or equal to zero)TesterStatistics
STAT_PROFIT_FACTORProfit factor, equal to the ratio of STAT_GROSS_PROFIT/STAT_GROSS_LOSS. If STAT_GROSS_LOSS=0, the profit factor is equal to DBL_MAXTesterStatistics
STAT_PROFIT_LONGTRADESProfitable long tradesTesterStatistics
STAT_PROFIT_SHORTTRADESProfitable short tradesTesterStatistics
STAT_PROFIT_TRADESProfitable tradesTesterStatistics
STAT_PROFITTRADES_AVGCONAverage length of a profitable series of tradesTesterStatistics
STAT_RECOVERY_FACTORRecovery factor, equal to the ratio of STAT_PROFIT/STAT_BALANCE_DDTesterStatistics
STAT_SHARPE_RATIOSharpe ratioTesterStatistics
STAT_SHORT_TRADESShort tradesTesterStatistics
STAT_TRADESThe number of tradesTesterStatistics
STAT_WITHDRAWALMoney withdrawn from an accountTesterStatistics
STO_CLOSECLOSECalculation is based on Close/Close pricesiStochastic
STO_LOWHIGHCalculation is based on Low/High pricesiStochastic
STYLE_DASHThe pen is dashedDrawing Styles
STYLE_DASHDOTThe pen has alternating dashes and dotsDrawing Styles
STYLE_DASHDOTDOTThe pen has alternating dashes and double dotsDrawing Styles
STYLE_DOTThe pen is dottedDrawing Styles
STYLE_SOLIDThe pen is solidDrawing Styles
SUNDAYSundaySymbolInfoSessionQuote, SymbolInfoSessionTrade
SYMBOL_ARROWDOWNArrow down symbolArrow Codes
SYMBOL_ARROWUPArrow up symbolArrow Codes
SYMBOL_ASKAsk - best buy offerSymbolInfoDouble
SYMBOL_ASKHIGHNot supportedSymbolInfoDouble
SYMBOL_ASKLOWNot supportedSymbolInfoDouble
SYMBOL_BIDBid - best sell offerSymbolInfoDouble
SYMBOL_BIDHIGHNot supportedSymbolInfoDouble
SYMBOL_BIDLOWNot supportedSymbolInfoDouble
SYMBOL_CHECKSIGNCheck sign symbolArrow Codes
SYMBOL_CURRENCY_BASEBasic currency of a symbolSymbolInfoString
SYMBOL_CURRENCY_MARGINMargin currencySymbolInfoString
SYMBOL_CURRENCY_PROFITProfit currencySymbolInfoString
SYMBOL_DESCRIPTIONSymbol descriptionSymbolInfoString
SYMBOL_DIGITSDigits after a decimal pointSymbolInfoInteger
SYMBOL_EXPIRATION_MODENot supportedSymbolInfoInteger
SYMBOL_EXPIRATION_TIMEDate of the symbol trade end (usually used for futures)SymbolInfoInteger
SYMBOL_FILLING_MODENot supportedSymbolInfoInteger
SYMBOL_LASTNot supportedSymbolInfoDouble
SYMBOL_LASTHIGHNot supportedSymbolInfoDouble
SYMBOL_LASTLOWNot supportedSymbolInfoDouble
SYMBOL_LEFTPRICELeft sided price labelArrow Codes
SYMBOL_MARGIN_INITIALInitial margin means the amount in the margin currency required for opening an order with the volume of one lot. It is used for checking a client’s assets when he or she enters the market.SymbolInfoDouble
SYMBOL_MARGIN_LIMITNot supportedSymbolInfoDouble
SYMBOL_MARGIN_LONGNot supportedSymbolInfoDouble
SYMBOL_MARGIN_MAINTENANCEThe maintenance margin. If it is set, it sets the margin amount in the margin currency of the symbol, charged from one lot. It is used for checking a client’s assets when his/her account state changes. If the maintenance margin is equal to 0, the initial margin is used.SymbolInfoDouble
SYMBOL_MARGIN_SHORTNot supportedSymbolInfoDouble
SYMBOL_MARGIN_STOPNot supportedSymbolInfoDouble
SYMBOL_MARGIN_STOPLIMITNot supportedSymbolInfoDouble
SYMBOL_ORDER_MODENot supportedSymbolInfoInteger
SYMBOL_PATHPath in the symbol treeSymbolInfoString
SYMBOL_POINTSymbol point valueSymbolInfoDouble
SYMBOL_RIGHTPRICERight sided price labelArrow Codes
SYMBOL_SELECTSymbol is selected in Market WatchSymbolInfoInteger
SYMBOL_SESSION_AWNot supportedSymbolInfoDouble
SYMBOL_SESSION_BUY_ORDERSNot supportedSymbolInfoInteger
SYMBOL_SESSION_BUY_ORDERS_VOLUMENot supportedSymbolInfoDouble
SYMBOL_SESSION_CLOSENot supportedSymbolInfoDouble
SYMBOL_SESSION_DEALSNot supportedSymbolInfoInteger
SYMBOL_SESSION_INTERESTNot supportedSymbolInfoDouble
SYMBOL_SESSION_OPENNot supportedSymbolInfoDouble
SYMBOL_SESSION_PRICE_LIMIT_MAXNot supportedSymbolInfoDouble
SYMBOL_SESSION_PRICE_LIMIT_MINNot supportedSymbolInfoDouble
SYMBOL_SESSION_PRICE_SETTLEMENTNot supportedSymbolInfoDouble
SYMBOL_SESSION_SELL_ORDERSNot supportedSymbolInfoInteger
SYMBOL_SESSION_SELL_ORDERS_VOLUMENot supportedSymbolInfoDouble
SYMBOL_SESSION_TURNOVERNot supportedSymbolInfoDouble
SYMBOL_SESSION_VOLUMENot supportedSymbolInfoDouble
SYMBOL_SPREADSpread value in pointsSymbolInfoInteger
SYMBOL_SPREAD_FLOATIndication of a floating spreadSymbolInfoInteger
SYMBOL_START_TIMEDate of the symbol trade beginning (usually used for futures)SymbolInfoInteger
SYMBOL_STOPSIGNStop sign symbolArrow Codes
SYMBOL_SWAP_LONGBuy order swap valueSymbolInfoDouble
SYMBOL_SWAP_MODESwap calculation modelSymbolInfoInteger
SYMBOL_SWAP_ROLLOVER3DAYSDay of week to charge 3 days swap rolloverSymbolInfoInteger
SYMBOL_SWAP_SHORTSell order swap valueSymbolInfoDouble
SYMBOL_THUMBSDOWNThumb down symbolArrow Codes
SYMBOL_THUMBSUPThumb up symbolArrow Codes
SYMBOL_TIMETime of the last quoteSymbolInfoInteger
SYMBOL_TRADE_CALC_MODEContract price calculation modeSymbolInfoInteger
SYMBOL_TRADE_CONTRACT_SIZETrade contract sizeSymbolInfoDouble
SYMBOL_TRADE_EXECUTION_EXCHANGEExchange executionSymbolInfoInteger
SYMBOL_TRADE_EXECUTION_INSTANTInstant executionSymbolInfoInteger
SYMBOL_TRADE_EXECUTION_MARKETMarket executionSymbolInfoInteger
SYMBOL_TRADE_EXECUTION_REQUESTExecution by requestSymbolInfoInteger
SYMBOL_TRADE_EXEMODEDeal execution modeSymbolInfoInteger
SYMBOL_TRADE_FREEZE_LEVELDistance to freeze trade operations in pointsSymbolInfoInteger
SYMBOL_TRADE_MODEOrder execution typeSymbolInfoInteger
SYMBOL_TRADE_MODE_CLOSEONLYAllowed only position close operationsSymbolInfoInteger
SYMBOL_TRADE_MODE_DISABLEDTrade is disabled for the symbolSymbolInfoInteger
SYMBOL_TRADE_MODE_FULLNo trade restrictionsSymbolInfoInteger
SYMBOL_TRADE_MODE_LONGONLYAllowed only long positionsSymbolInfoInteger
SYMBOL_TRADE_MODE_SHORTONLYAllowed only short positionsSymbolInfoInteger
SYMBOL_TRADE_STOPS_LEVELMinimal indention in points from the current close price to place Stop ordersSymbolInfoInteger
SYMBOL_TRADE_TICK_SIZEMinimal price changeSymbolInfoDouble
SYMBOL_TRADE_TICK_VALUEValue of SYMBOL_TRADE_TICK_VALUE_PROFITSymbolInfoDouble
SYMBOL_TRADE_TICK_VALUE_LOSSNot supportedSymbolInfoDouble
SYMBOL_TRADE_TICK_VALUE_PROFITNot supportedSymbolInfoDouble
SYMBOL_VOLUMENot supportedSymbolInfoInteger
SYMBOL_VOLUME_LIMITNot supportedSymbolInfoDouble
SYMBOL_VOLUME_MAXMaximal volume for a dealSymbolInfoDouble
SYMBOL_VOLUME_MINMinimal volume for a dealSymbolInfoDouble
SYMBOL_VOLUME_STEPMinimal volume change step for deal executionSymbolInfoDouble
SYMBOL_VOLUMEHIGHNot supportedSymbolInfoInteger
SYMBOL_VOLUMELOWNot supportedSymbolInfoInteger
TERMINAL_BUILDThe client terminal build numberTerminalInfoInteger
TERMINAL_CODEPAGENumber of the code page of the language installed in the client terminalTerminalInfoInteger
TERMINAL_COMMONDATA_PATHCommon path for all of the terminals installed on a computerTerminalInfoString
TERMINAL_COMMUNITY_ACCOUNTThe flag indicates the presence of MQL5.community authorization data in the terminalTerminalInfoInteger
TERMINAL_COMMUNITY_BALANCEBalance in MQL5.communityTerminalInfoDouble
TERMINAL_COMMUNITY_CONNECTIONConnection to MQL5.communityTerminalInfoInteger
TERMINAL_COMPANYCompany nameTerminalInfoString
TERMINAL_CONNECTEDConnection to a trade serverTerminalInfoInteger
TERMINAL_CPU_CORESThe number of CPU cores in the systemTerminalInfoInteger
TERMINAL_DATA_PATHFolder in which terminal data are storedTerminalInfoString
TERMINAL_DISK_SPACEFree disk space for the MQL4\Files folder of the terminal (agent), MBTerminalInfoInteger
TERMINAL_DLLS_ALLOWEDPermission to use DLLTerminalInfoInteger
TERMINAL_EMAIL_ENABLEDPermission to send e-mails using SMTP-server and login, specified in the terminal settingsTerminalInfoInteger
TERMINAL_FTP_ENABLEDPermission to send reports using FTP-server and login, specified in the terminal settingsTerminalInfoInteger
TERMINAL_LANGUAGELanguage of the terminalTerminalInfoString
TERMINAL_MAXBARSThe maximal bars count on the chartTerminalInfoInteger
TERMINAL_MEMORY_AVAILABLEFree memory of the terminal (agent) process, MBTerminalInfoInteger
TERMINAL_MEMORY_PHYSICALPhysical memory in the system, MBTerminalInfoInteger
TERMINAL_MEMORY_TOTALMemory available to the process of the terminal (agent), MBTerminalInfoInteger
TERMINAL_MEMORY_USEDMemory used by the terminal (agent), MBTerminalInfoInteger
TERMINAL_MQIDThe flag indicates the presence of MetaQuotes ID data to send Push notificationsTerminalInfoInteger
TERMINAL_NAMETerminal nameTerminalInfoString
TERMINAL_NOTIFICATIONS_ENABLEDPermission to send notifications to smartphoneTerminalInfoInteger
TERMINAL_PATHFolder from which the terminal is startedTerminalInfoString
TERMINAL_PING_LASTThe last known value of a ping to a trade server in microseconds. One second comprises of one million microsecondsTerminalInfoInteger
TERMINAL_SCREEN_DPIThe resolution of information display on the screen is measured as number of Dots in a line per Inch (DPI).TerminalInfoInteger
TERMINAL_TRADE_ALLOWEDPermission to tradeTerminalInfoInteger
THURSDAYThursdaySymbolInfoSessionQuote, SymbolInfoSessionTrade
TUESDAYTuesdaySymbolInfoSessionQuote, SymbolInfoSessionTrade
UCHAR_MAXMaximal value, which can be represented by uchar typeNumerical Type Constants
UINT_MAXMaximal value, which can be represented by uint typeNumerical Type Constants
ULONG_MAXMaximal value, which can be represented by ulong typeNumerical Type Constants
USHORT_MAXMaximal value, which can be represented by ushort typeNumerical Type Constants
VOLUME_TICKTick volumePrice Constants
WEDNESDAYWednesdaySymbolInfoSessionQuote, SymbolInfoSessionTrade
WHOLE_ARRAYUsed with array functions. Indicates that all array elements will be processed. Means the number of items remaining until the end of the array, i.e., the entire array will be processedOther constants
WRONG_VALUEThe constant can be implicitly cast to any enumeration typeOther constants
Last updated on