MQL4 Reference List of MQL4 Constants

MQL4 Help as One File:

List of MQL4 Constants

All MQL4 constants in alphabetical order.

Constant

Description

Usage

__DATE__

File compilation date without time (hours, minutes and seconds are equal to 0)

Predefined Macro Substitutions

__DATETIME__

File compilation date and time

Predefined Macro Substitutions

__FILE__

Name of the currently compiled file

Predefined 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 functions

Predefined Macro Substitutions

__FUNCTION__

Name of the function, in whose body the macro is located

Predefined Macro Substitutions

__LINE__

Line number in the source code, in which the macro is located

Predefined Macro Substitutions

__MQLBUILD__, __MQL4BUILD__

Compiler build number

Predefined Macro Substitutions

__PATH__

An absolute path to the file that is currently being compiled

Predefined Macro Substitutions

ACCOUNT_BALANCE

Account balance in the deposit currency

AccountInfoDouble

ACCOUNT_COMPANY

Name of a company that serves the account

AccountInfoString

ACCOUNT_CREDIT

Account credit in the deposit currency

AccountInfoDouble

ACCOUNT_CURRENCY

Account currency

AccountInfoString

ACCOUNT_EQUITY

Account equity in the deposit currency

AccountInfoDouble

ACCOUNT_MARGIN_FREE

Free margin of an account in the deposit currency

AccountInfoDouble

ACCOUNT_LEVERAGE

Account leverage

AccountInfoInteger

ACCOUNT_LIMIT_ORDERS

Maximum allowed number of active pending orders (0-unlimited)

AccountInfoInteger

ACCOUNT_LOGIN

Account number

AccountInfoInteger

ACCOUNT_MARGIN

Account margin used in the deposit currency

AccountInfoDouble

ACCOUNT_MARGIN_LEVEL

Account margin level in percents

AccountInfoDouble

ACCOUNT_MARGIN_SO_CALL

Margin call level. Depending on the set ACCOUNT_MARGIN_SO_MODE is expressed in percents or in the deposit currency

AccountInfoDouble

ACCOUNT_MARGIN_SO_MODE

Mode for setting the minimal allowed margin

AccountInfoInteger

ACCOUNT_MARGIN_SO_SO

Margin stop out level. Depending on the set ACCOUNT_MARGIN_SO_MODE is expressed in percents or in the deposit currency

AccountInfoDouble

ACCOUNT_NAME

Client name

AccountInfoString

ACCOUNT_PROFIT

Current profit of an account in the deposit currency

AccountInfoDouble

ACCOUNT_SERVER

Trade server name

AccountInfoString

ACCOUNT_STOPOUT_MODE_MONEY

Account stop out mode in money

AccountInfoInteger

ACCOUNT_STOPOUT_MODE_PERCENT

Account stop out mode in percents

AccountInfoInteger

ACCOUNT_TRADE_ALLOWED

Allowed trade for the current account

AccountInfoInteger

ACCOUNT_TRADE_EXPERT

Allowed trade for an Expert Advisor

AccountInfoInteger

ACCOUNT_TRADE_MODE

Account trade mode

AccountInfoInteger

ACCOUNT_TRADE_MODE_CONTEST

Contest account

AccountInfoInteger

ACCOUNT_TRADE_MODE_DEMO

Demo account

AccountInfoInteger

ACCOUNT_TRADE_MODE_REAL

Real account

AccountInfoInteger

ALIGN_CENTER

Centered (only for the Edit object)

ObjectGetInteger, ObjectSetInteger, ChartScreenShot

ALIGN_LEFT

Left alignment

ObjectGetInteger, ObjectSetInteger, ChartScreenShot

ALIGN_RIGHT

Right alignment

ObjectGetInteger, ObjectSetInteger, ChartScreenShot

ANCHOR_BOTTOM

Anchor on the bottom side

ObjectGetInteger, ObjectSetInteger

ANCHOR_CENTER

Anchor point strictly in the center of the object

ObjectGetInteger, ObjectSetInteger

ANCHOR_LEFT

Anchor point to the left in the center

ObjectGetInteger, ObjectSetInteger

ANCHOR_LEFT_LOWER

Anchor point at the lower left corner

ObjectGetInteger, ObjectSetInteger

ANCHOR_LEFT_UPPER

Anchor point at the upper left corner

ObjectGetInteger, ObjectSetInteger

ANCHOR_LOWER

Anchor point below in the center

ObjectGetInteger, ObjectSetInteger

ANCHOR_RIGHT

Anchor point to the right in the center

ObjectGetInteger, ObjectSetInteger

ANCHOR_RIGHT_LOWER

Anchor point at the lower right corner

ObjectGetInteger, ObjectSetInteger

ANCHOR_RIGHT_UPPER

Anchor point at the upper right corner

ObjectGetInteger, ObjectSetInteger

ANCHOR_TOP

Anchor on the top side

ObjectGetInteger, ObjectSetInteger

ANCHOR_UPPER

Anchor point above in the center

ObjectGetInteger, ObjectSetInteger

BORDER_FLAT

Flat form

ObjectGetInteger, ObjectSetInteger

BORDER_RAISED

Prominent form

ObjectGetInteger, ObjectSetInteger

BORDER_SUNKEN

Concave form

ObjectGetInteger, ObjectSetInteger

CHAR_MAX

Maximal value, which can be represented by char type

Numerical Type Constants

CHAR_MIN

Minimal value, which can be represented by char type

Numerical Type Constants

CHART_AUTOSCROLL

Mode of automatic moving to the right border of the chart

ChartSetInteger, ChartGetInteger

CHART_BARS

Display as a sequence of bars

ChartSetInteger

CHART_BEGIN

Chart beginning (the oldest prices)

ChartNavigate

CHART_BRING_TO_TOP

Show chart on top of other charts

ChartSetInteger, ChartGetInteger

CHART_CANDLES

Display as Japanese candlesticks

ChartSetInteger

CHART_COLOR_ASK

Ask price level color

ChartSetInteger, ChartGetInteger

CHART_COLOR_BACKGROUND

Chart background color

ChartSetInteger, ChartGetInteger

CHART_COLOR_BID

Bid price level color

ChartSetInteger, ChartGetInteger

CHART_COLOR_CANDLE_BEAR

Body color of a bear candlestick

ChartSetInteger, ChartGetInteger

CHART_COLOR_CANDLE_BULL

Body color of a bull candlestick

ChartSetInteger, ChartGetInteger

CHART_COLOR_CHART_DOWN

Color for the down bar, shadows and body borders of bear candlesticks

ChartSetInteger, ChartGetInteger

CHART_COLOR_CHART_LINE

Line chart color and color of "Doji" Japanese candlesticks

ChartSetInteger, ChartGetInteger

CHART_COLOR_CHART_UP

Color for the up bar, shadows and body borders of bull candlesticks

ChartSetInteger, ChartGetInteger

CHART_COLOR_FOREGROUND

Color of axes, scales and OHLC line

ChartSetInteger, ChartGetInteger

CHART_COLOR_GRID

Grid color

ChartSetInteger, ChartGetInteger

CHART_COLOR_LAST

Line color of the last executed deal price (Last)

ChartSetInteger, ChartGetInteger

CHART_COLOR_STOP_LEVEL

Color of stop order levels (Stop Loss and Take Profit)

ChartSetInteger, ChartGetInteger

CHART_COLOR_VOLUME

Color of volumes and order opening levels

ChartSetInteger, ChartGetInteger

CHART_COMMENT

Text of a comment in a chart

ChartSetString, ChartGetString

CHART_CURRENT_POS

Current position

ChartNavigate

CHART_DRAG_TRADE_LEVELS

Permission to drag trading levels on a chart with a mouse. The drag mode is enabled by default (true value)

ChartSetInteger, ChartGetInteger

CHART_END

Chart end (the latest prices)

ChartNavigate

CHART_EVENT_MOUSE_MOVE

Send notifications of mouse move and mouse click events (CHARTEVENT_MOUSE_MOVE) to all mql4 programs on a chart

ChartSetInteger, ChartGetInteger

CHART_EVENT_OBJECT_CREATE

Send a notification of an event of new object creation (CHARTEVENT_OBJECT_CREATE) to all mql4-programs on a chart

ChartSetInteger, ChartGetInteger

CHART_EVENT_OBJECT_DELETE

Send a notification of an event of object deletion (CHARTEVENT_OBJECT_DELETE) to all mql4-programs on a chart

ChartSetInteger, ChartGetInteger

CHART_FIRST_VISIBLE_BAR

Number of the first visible bar in the chart. Indexing of bars is the same as for timeseries.

ChartSetInteger, ChartGetInteger

CHART_FIXED_MAX

Fixed  chart maximum

ChartSetDouble, ChartGetDouble

CHART_FIXED_MIN

Fixed  chart minimum

ChartSetDouble, ChartGetDouble

CHART_FIXED_POSITION

Chart 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_FOREGROUND

Price chart in the foreground

ChartSetInteger, ChartGetInteger

CHART_HEIGHT_IN_PIXELS

Chart height in pixels

ChartSetInteger, ChartGetInteger

CHART_IS_OFFLINE

Flag, indicating that chart opened in offline mode

ChartSetInteger, ChartGetInteger

CHART_LINE

Display as a line drawn by Close prices

ChartSetInteger

CHART_MODE

Chart type (candlesticks, bars or line)

ChartSetInteger, ChartGetInteger

CHART_MOUSE_SCROLL

Scrolling 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_BAR

ChartSetInteger, ChartGetInteger

CHART_POINTS_PER_BAR

Scale in points per bar

ChartSetDouble, ChartGetDouble

CHART_PRICE_MAX

Chart maximum

ChartSetDouble, ChartGetDouble

CHART_PRICE_MIN

Chart minimum

ChartSetDouble, ChartGetDouble

CHART_SCALE

Scale

ChartSetInteger, ChartGetInteger

CHART_SCALE_PT_PER_BAR

Scale to be specified in points per bar

ChartSetInteger, ChartGetInteger

CHART_SCALEFIX

Fixed scale mode

ChartSetInteger, ChartGetInteger

CHART_SCALEFIX_11

Scale 1:1 mode

ChartSetInteger, ChartGetInteger

CHART_SHIFT

Mode of price chart indent from the right border

ChartSetInteger, ChartGetInteger

CHART_SHIFT_SIZE

The size of the zero bar indent from the right border in percents

ChartSetDouble, ChartGetDouble

CHART_SHOW_ASK_LINE

Display Ask values as a horizontal line in a chart

ChartSetInteger, ChartGetInteger

CHART_SHOW_BID_LINE

Display Bid values as a horizontal line in a chart

ChartSetInteger, ChartGetInteger

CHART_SHOW_DATE_SCALE

Showing the time scale on a chart

ChartSetInteger, ChartGetInteger

CHART_SHOW_GRID

Display grid in the chart

ChartSetInteger, ChartGetInteger

CHART_SHOW_LAST_LINE

Display Last values as a horizontal line in a chart

ChartSetInteger, ChartGetInteger

CHART_SHOW_OBJECT_DESCR

Pop-up descriptions of graphical objects

ChartSetInteger, ChartGetInteger

CHART_SHOW_OHLC

Show OHLC values in the upper left corner

ChartSetInteger, ChartGetInteger

CHART_SHOW_PERIOD_SEP

Display vertical separators between adjacent periods

ChartSetInteger, ChartGetInteger

CHART_SHOW_PRICE_SCALE

Showing the price scale on a chart

ChartSetInteger, ChartGetInteger

CHART_SHOW_TRADE_LEVELS

Displaying trade levels in the chart (levels of open orders, Stop Loss, Take Profit and pending orders)

ChartSetInteger, ChartGetInteger

CHART_SHOW_VOLUMES

Display volume in the chart

ChartSetInteger, ChartGetInteger

CHART_VISIBLE_BARS

The number of bars on the chart that can be displayed

ChartSetInteger, ChartGetInteger

CHART_VOLUME_HIDE

Volumes are not shown

ChartSetInteger

CHART_VOLUME_TICK

Tick volumes

ChartSetInteger

CHART_WIDTH_IN_BARS

Chart width in bars

ChartSetInteger, ChartGetInteger

CHART_WIDTH_IN_PIXELS

Chart width in pixels

ChartSetInteger, ChartGetInteger

CHART_WINDOW_HANDLE

Chart window handle (HWND)

ChartSetInteger, ChartGetInteger

CHART_WINDOW_IS_VISIBLE

Visibility of subwindows

ChartSetInteger, ChartGetInteger

CHART_WINDOW_YDISTANCE

The 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_TOTAL

The total number of chart windows, including indicator subwindows

ChartSetInteger, ChartGetInteger

CHARTEVENT_CHART_CHANGE

Change of the chart size or modification of chart properties through the Properties dialog

OnChartEvent

CHARTEVENT_CLICK

Clicking on a chart

OnChartEvent

CHARTEVENT_CUSTOM

Initial number of an event from a range of custom events

OnChartEvent

CHARTEVENT_CUSTOM_LAST

The final number of an event from a range of custom events

OnChartEvent

CHARTEVENT_KEYDOWN

Keystrokes

OnChartEvent

CHARTEVENT_MOUSE_MOVE

Mouse move, mouse clicks (if CHART_EVENT_MOUSE_MOVE=true is set for the chart)

OnChartEvent

CHARTEVENT_OBJECT_CHANGE

Graphical object property changed via the properties dialog

OnChartEvent

CHARTEVENT_OBJECT_CLICK

Clicking on a graphical object

OnChartEvent

CHARTEVENT_OBJECT_CREATE

Graphical object created (if CHART_EVENT_OBJECT_CREATE=true is set for the chart)

OnChartEvent

CHARTEVENT_OBJECT_DELETE

Graphical object deleted (if CHART_EVENT_OBJECT_DELETE=true is set for the chart)

OnChartEvent

CHARTEVENT_OBJECT_DRAG

Drag and drop of a graphical object

OnChartEvent

CHARTEVENT_OBJECT_ENDEDIT

End of text editing in the graphical object Edit

OnChartEvent

CHARTS_MAX

The maximum possible number of simultaneously open charts in the terminal

Other constants

CLR_NONE, clrNONE

Absence of color. Indicates empty state of colors

Other constants

clrAliceBlue

Alice Blue

Web Colors

clrAntiqueWhite

Antique White

Web Colors

clrAqua

Aqua

Web Colors

clrAquamarine

Aquamarine

Web Colors

clrBeige

Beige

Web Colors

clrBisque

Bisque

Web Colors

clrBlack

Black

Web Colors

clrBlanchedAlmond

Blanched Almond

Web Colors

clrBlue

Blue

Web Colors

clrBlueViolet

Blue Violet

Web Colors

clrBrown

Brown

Web Colors

clrBurlyWood

Burly Wood

Web Colors

clrCadetBlue

Cadet Blue

Web Colors

clrChartreuse

Chartreuse

Web Colors

clrChocolate

Chocolate

Web Colors

clrCoral

Coral

Web Colors

clrCornflowerBlue

Cornflower Blue

Web Colors

clrCornsilk

Cornsilk

Web Colors

clrCrimson

Crimson

Web Colors

clrDarkBlue

Dark Blue

Web Colors

clrDarkGoldenrod

Dark Goldenrod

Web Colors

clrDarkGray

Dark Gray

Web Colors

clrDarkGreen

Dark Green

Web Colors

clrDarkKhaki

Dark Khaki

Web Colors

clrDarkOliveGreen

Dark Olive Green

Web Colors

clrDarkOrange

Dark Orange

Web Colors

clrDarkOrchid

Dark Orchid

Web Colors

clrDarkSalmon

Dark Salmon

Web Colors

clrDarkSeaGreen

Dark Sea Green

Web Colors

clrDarkSlateBlue

Dark Slate Blue

Web Colors

clrDarkSlateGray

Dark Slate Gray

Web Colors

clrDarkTurquoise

Dark Turquoise

Web Colors

clrDarkViolet

Dark Violet

Web Colors

clrDeepPink

Deep Pink

Web Colors

clrDeepSkyBlue

Deep Sky Blue

Web Colors

clrDimGray

Dim Gray

Web Colors

clrDodgerBlue

Dodger Blue

Web Colors

clrFireBrick

Fire Brick

Web Colors

clrForestGreen

Forest Green

Web Colors

clrGainsboro

Gainsboro

Web Colors

clrGold

Gold

Web Colors

clrGoldenrod

Goldenrod

Web Colors

clrGray

Gray

Web Colors

clrGreen

Green

Web Colors

clrGreenYellow

Green Yellow

Web Colors

clrHoneydew

Honeydew

Web Colors

clrHotPink

Hot Pink

Web Colors

clrIndianRed

Indian Red

Web Colors

clrIndigo

Indigo

Web Colors

clrIvory

Ivory

Web Colors

clrKhaki

Khaki

Web Colors

clrLavender

Lavender

Web Colors

clrLavenderBlush

Lavender Blush

Web Colors

clrLawnGreen

Lawn Green

Web Colors

clrLemonChiffon

Lemon Chiffon

Web Colors

clrLightBlue

Light Blue

Web Colors

clrLightCoral

Light Coral

Web Colors

clrLightCyan

Light Cyan

Web Colors

clrLightGoldenrod

Light Goldenrod

Web Colors

clrLightGray

Light Gray

Web Colors

clrLightGreen

Light Green

Web Colors

clrLightPink

Light Pink

Web Colors

clrLightSalmon

Light Salmon

Web Colors

clrLightSeaGreen

Light Sea Green

Web Colors

clrLightSkyBlue

Light Sky Blue

Web Colors

clrLightSlateGray

Light Slate Gray

Web Colors

clrLightSteelBlue

Light Steel Blue

Web Colors

clrLightYellow

Light Yellow

Web Colors

clrLime

Lime

Web Colors

clrLimeGreen

Lime Green

Web Colors

clrLinen

Linen

Web Colors

clrMagenta

Magenta

Web Colors

clrMaroon

Maroon

Web Colors

clrMediumAquamarine

Medium Aquamarine

Web Colors

clrMediumBlue

Medium Blue

Web Colors

clrMediumOrchid

Medium Orchid

Web Colors

clrMediumPurple

Medium Purple

Web Colors

clrMediumSeaGreen

Medium Sea Green

Web Colors

clrMediumSlateBlue

Medium Slate Blue

Web Colors

clrMediumSpringGreen

Medium Spring Green

Web Colors

clrMediumTurquoise

Medium Turquoise

Web Colors

clrMediumVioletRed

Medium Violet Red

Web Colors

clrMidnightBlue

Midnight Blue

Web Colors

clrMintCream

Mint Cream

Web Colors

clrMistyRose

Misty Rose

Web Colors

clrMoccasin

Moccasin

Web Colors

clrNavajoWhite

Navajo White

Web Colors

clrNavy

Navy

Web Colors

clrOldLace

Old Lace

Web Colors

clrOlive

Olive

Web Colors

clrOliveDrab

Olive Drab

Web Colors

clrOrange

Orange

Web Colors

clrOrangeRed

Orange Red

Web Colors

clrOrchid

Orchid

Web Colors

clrPaleGoldenrod

Pale Goldenrod

Web Colors

clrPaleGreen

Pale Green

Web Colors

clrPaleTurquoise

Pale Turquoise

Web Colors

clrPaleVioletRed

Pale Violet Red

Web Colors

clrPapayaWhip

Papaya Whip

Web Colors

clrPeachPuff

Peach Puff

Web Colors

clrPeru

Peru

Web Colors

clrPink

Pink

Web Colors

clrPlum

Plum

Web Colors

clrPowderBlue

Powder Blue

Web Colors

clrPurple

Purple

Web Colors

clrRed

Red

Web Colors

clrRosyBrown

Rosy Brown

Web Colors

clrRoyalBlue

Royal Blue

Web Colors

clrSaddleBrown

Saddle Brown

Web Colors

clrSalmon

Salmon

Web Colors

clrSandyBrown

Sandy Brown

Web Colors

clrSeaGreen

Sea Green

Web Colors

clrSeashell

Seashell

Web Colors

clrSienna

Sienna

Web Colors

clrSilver

Silver

Web Colors

clrSkyBlue

Sky Blue

Web Colors

clrSlateBlue

Slate Blue

Web Colors

clrSlateGray

Slate Gray

Web Colors

clrSnow

Snow

Web Colors

clrSpringGreen

Spring Green

Web Colors

clrSteelBlue

Steel Blue

Web Colors

clrTan

Tan

Web Colors

clrTeal

Teal

Web Colors

clrThistle

Thistle

Web Colors

clrTomato

Tomato

Web Colors

clrTurquoise

Turquoise

Web Colors

clrViolet

Violet

Web Colors

clrWheat

Wheat

Web Colors

clrWhite

White

Web Colors

clrWhiteSmoke

White Smoke

Web Colors

clrYellow

Yellow

Web Colors

clrYellowGreen

Yellow Green

Web Colors

CORNER_LEFT_LOWER

Center of coordinates is in the lower left corner of the chart

ObjectGetInteger, ObjectSetInteger

CORNER_LEFT_UPPER

Center of coordinates is in the upper left corner of the chart

ObjectGetInteger, ObjectSetInteger

CORNER_RIGHT_LOWER

Center of coordinates is in the lower right corner of the chart

ObjectGetInteger, ObjectSetInteger

CORNER_RIGHT_UPPER

Center of coordinates is in the upper right corner of the chart

ObjectGetInteger, ObjectSetInteger

CP_ACP

The current Windows ANSI code page.

CharArrayToString, StringToCharArray, FileOpen

CP_MACCP

The 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_OEMCP

The current system OEM code page.

CharArrayToString, StringToCharArray, FileOpen

CP_SYMBOL

Symbol code page

CharArrayToString, StringToCharArray, FileOpen

CP_THREAD_ACP

The Windows ANSI code page for the current thread.

CharArrayToString, StringToCharArray, FileOpen

CP_UTF7

UTF-7 code page.

CharArrayToString, StringToCharArray, FileOpen

CP_UTF8

UTF-8 code page.

CharArrayToString, StringToCharArray, FileOpen

CRYPT_AES128

AES encryption with 128 bit key (16 bytes)

CryptEncode, CryptDecode

CRYPT_AES256

AES encryption with 256 bit key (32 bytes)

CryptEncode, CryptDecode

CRYPT_ARCH_ZIP

ZIP archives

CryptEncode, CryptDecode

CRYPT_BASE64

BASE64

CryptEncode, CryptDecode

CRYPT_DES

DES encryption with 56 bit key (7 bytes)

CryptEncode, CryptDecode

CRYPT_HASH_MD5

MD5 HASH calculation

CryptEncode, CryptDecode

CRYPT_HASH_SHA1

SHA1 HASH calculation

CryptEncode, CryptDecode

CRYPT_HASH_SHA256

SHA256 HASH calculation

CryptEncode, CryptDecode

DBL_DIG

Number of significant decimal digits for double type

Numerical Type Constants

DBL_EPSILON

Minimal value, which satisfies the condition:

1.0+DBL_EPSILON != 1.0 (for double type)

Numerical Type Constants

DBL_MANT_DIG

Bits count in a mantissa for double type

Numerical Type Constants

DBL_MAX

Maximal value, which can be represented by double type

Numerical Type Constants

DBL_MAX_10_EXP

Maximal decimal value of exponent degree for double type

Numerical Type Constants

DBL_MAX_EXP

Maximal binary value of exponent degree for double type

Numerical Type Constants

DBL_MIN

Minimal positive value, which can be represented by double type

Numerical Type Constants

DBL_MIN_10_EXP

Minimal decimal value of exponent degree for double type

Numerical Type Constants

DBL_MIN_EXP

Minimal binary value of exponent degree for double type

Numerical Type Constants

DRAW_ARROW

Drawing arrows (symbols)

Drawing Styles

DRAW_HISTOGRAM

Drawing histogram

Drawing Styles

DRAW_LINE

Drawing line

Drawing Styles

DRAW_NONE

No drawing

Drawing Styles

DRAW_SECTION

Drawing sections

Drawing Styles

DRAW_ZIGZAG

Drawing sections between even and odd indicator buffers, 2 buffers of values

Drawing Styles

EMPTY

Indicates empty state of the parameter

Other constants

EMPTY_VALUE

Empty value in an indicator buffer. Default custom indicator empty value

Other constants

ERR_ACCOUNT_DISABLED

Account disabled

GetLastError

ERR_ARRAY_AS_PARAMETER_EXPECTED

Array as parameter expected

GetLastError

ERR_ARRAY_INDEX_OUT_OF_RANGE

Array index is out of range

GetLastError

ERR_ARRAY_INVALID

Invalid array

GetLastError

ERR_BROKER_BUSY

Broker is busy

GetLastError

ERR_CANNOT_CALL_FUNCTION

Cannot call function

GetLastError

ERR_CANNOT_LOAD_LIBRARY

Cannot load library

GetLastError

ERR_CANNOT_OPEN_FILE

Cannot open file

GetLastError

ERR_CHART_NOREPLY

No reply from chart

GetLastError

ERR_CHART_NOT_FOUND

Chart not found

GetLastError

ERR_CHART_PROP_INVALID

Unknown chart property

GetLastError

ERR_CHARTINDICATOR_NOT_FOUND

Chart indicator not found

GetLastError

ERR_CHARTWINDOW_NOT_FOUND

Chart subwindow not found

GetLastError

ERR_COMMON_ERROR

Common error

GetLastError

ERR_CUSTOM_INDICATOR_ERROR

Custom indicator error

GetLastError

ERR_DLL_CALLS_NOT_ALLOWED

DLL calls are not allowed

GetLastError

ERR_DLLFUNC_CRITICALERROR

DLL-function call critical error

GetLastError

ERR_DOUBLE_PARAMETER_EXPECTED

Double parameter expected

GetLastError

ERR_END_OF_FILE

End of file

GetLastError

ERR_EXTERNAL_CALLS_NOT_ALLOWED

Expert function calls are not allowed

GetLastError

ERR_FILE_ARRAYRESIZE_ERROR

Array resize error

GetLastError

ERR_FILE_BIN_STRINGSIZE

String size must be specified for binary file

GetLastError

ERR_FILE_BUFFER_ALLOCATION_ERROR

Text file buffer allocation error

GetLastError

ERR_FILE_CANNOT_CLEAN_DIRECTORY

Cannot clean directory

GetLastError

ERR_FILE_CANNOT_DELETE

Cannot delete file

GetLastError

ERR_FILE_CANNOT_DELETE_DIRECTORY

Cannot delete directory

GetLastError

ERR_FILE_CANNOT_OPEN

Cannot open file

GetLastError

ERR_FILE_CANNOT_REWRITE

File cannot be rewritten

GetLastError

ERR_FILE_DIRECTORY_NOT_EXIST

Directory does not exist

GetLastError

ERR_FILE_INCOMPATIBLE

Incompatible file (for string arrays-TXT, for others-BIN)

GetLastError

ERR_FILE_INVALID_HANDLE

Invalid file handle (file closed or was not opened)

GetLastError

ERR_FILE_IS_DIRECTORY

File is directory not file

GetLastError

ERR_FILE_NOT_BIN

File must be opened with FILE_BIN flag

GetLastError

ERR_FILE_NOT_CSV

File must be opened with FILE_CSV flag

GetLastError

ERR_FILE_NOT_DIRECTORY

Specified file is not directory

GetLastError

ERR_FILE_NOT_EXIST

File does not exist

GetLastError

ERR_FILE_NOT_TOREAD

File must be opened with FILE_READ flag

GetLastError

ERR_FILE_NOT_TOWRITE

File must be opened with FILE_WRITE flag

GetLastError

ERR_FILE_NOT_TXT

File must be opened with FILE_TXT flag

GetLastError

ERR_FILE_NOT_TXTORCSV

File must be opened with FILE_TXT or FILE_CSV flag

GetLastError

ERR_FILE_READ_ERROR

File read error

GetLastError

ERR_FILE_STRINGRESIZE_ERROR

String resize error

GetLastError

ERR_FILE_STRUCT_WITH_OBJECTS

Structure contains strings or dynamic arrays

GetLastError

ERR_FILE_TOO_LONG_FILENAME

Too long file name

GetLastError

ERR_FILE_TOO_MANY_OPENED

Too many opened files

GetLastError

ERR_FILE_WRITE_ERROR

File write error

GetLastError

ERR_FILE_WRONG_DIRECTORYNAME

Wrong directory name

GetLastError

ERR_FILE_WRONG_FILENAME

Wrong file name

GetLastError

ERR_FILE_WRONG_HANDLE

Wrong file handle (handle index is out of handle table)

GetLastError

ERR_FORMAT_TOO_MANY_FORMATTERS

Too many formatters in the format function

GetLastError

ERR_FORMAT_TOO_MANY_PARAMETERS

Parameters count exceeds formatters count

GetLastError

ERR_FUNC_NOT_ALLOWED_IN_TESTING

Function is not allowed in testing mode

GetLastError

ERR_FUNCTION_NOT_CONFIRMED

Function is not allowed for call

GetLastError

ERR_GLOBAL_VARIABLE_NOT_FOUND

Global variable not found

GetLastError

ERR_GLOBAL_VARIABLES_PROCESSING

Global variables processing error

GetLastError

ERR_HISTORY_WILL_UPDATED

Requested history data is in updating state

GetLastError

ERR_INCOMPATIBLE_ARRAYS

Arrays are incompatible

GetLastError

ERR_INCOMPATIBLE_FILEACCESS

Incompatible access to a file

GetLastError

ERR_INCORRECT_SERIESARRAY_USING

Incorrect series array using

GetLastError

ERR_INDICATOR_CANNOT_INIT

Custom indicator cannot initialize

GetLastError

ERR_INDICATOR_CANNOT_LOAD

Cannot load custom indicator

GetLastError

ERR_INTEGER_PARAMETER_EXPECTED

Integer parameter expected

GetLastError

ERR_INTERNAL_ERROR

Internal error

GetLastError

ERR_INVALID_ACCOUNT

Invalid account

GetLastError

ERR_INVALID_FUNCTION_PARAMSCNT

Invalid function parameters count

GetLastError

ERR_INVALID_FUNCTION_PARAMVALUE

Invalid function parameter value

GetLastError

ERR_INVALID_POINTER

Invalid pointer

GetLastError

ERR_INVALID_PRICE

Invalid price

GetLastError

ERR_INVALID_PRICE_PARAM

Invalid price

GetLastError

ERR_INVALID_STOPS

Invalid stops

GetLastError

ERR_INVALID_TICKET

Invalid ticket

GetLastError

ERR_INVALID_TRADE_PARAMETERS

Invalid trade parameters

GetLastError

ERR_INVALID_TRADE_VOLUME

Invalid trade volume

GetLastError

ERR_LONG_POSITIONS_ONLY_ALLOWED

Buy orders only allowed

GetLastError

ERR_LONGS_NOT_ALLOWED

Longs are not allowed. Check the Expert Advisor properties

GetLastError

ERR_MALFUNCTIONAL_TRADE

Malfunctional trade operation

GetLastError

ERR_MARKET_CLOSED

Market is closed

GetLastError

ERR_NO_CONNECTION

No connection with trade server

GetLastError

ERR_NO_ERROR

No error returned

GetLastError

ERR_NO_HISTORY_DATA

No history data

GetLastError

ERR_NO_MEMORY_FOR_ARRAYSTRING

No memory for array string

GetLastError

ERR_NO_MEMORY_FOR_CALL_STACK

No memory for function call stack

GetLastError

ERR_NO_MEMORY_FOR_HISTORY

No memory for history data

GetLastError

ERR_NO_MEMORY_FOR_PARAM_STRING

No memory for parameter string

GetLastError

ERR_NO_MEMORY_FOR_RETURNED_STR

Not enough memory for temp string returned from function

GetLastError

ERR_NO_MEMORY_FOR_TEMP_STRING

No memory for temp string

GetLastError

ERR_NO_MQLERROR

No error returned

GetLastError

ERR_NO_OBJECT_NAME

No object name

GetLastError

ERR_NO_ORDER_SELECTED

No order selected

GetLastError

ERR_NO_RESULT

No error returned, but the result is unknown

GetLastError

ERR_NO_SPECIFIED_SUBWINDOW

No specified subwindow

GetLastError

ERR_NOT_ENOUGH_MONEY

Not enough money

GetLastError

ERR_NOT_ENOUGH_RIGHTS

Not enough rights

GetLastError

ERR_NOT_ENOUGH_STACK_FOR_PARAM

Not enough stack for parameter

GetLastError

ERR_NOT_INITIALIZED_ARRAY

Not initialized array

GetLastError

ERR_NOT_INITIALIZED_ARRAYSTRING

Not initialized string in array

GetLastError

ERR_NOT_INITIALIZED_STRING

Not initialized string

GetLastError

ERR_NOTIFICATION_ERROR

Notification error

GetLastError

ERR_NOTIFICATION_PARAMETER

Notification parameter error

GetLastError

ERR_NOTIFICATION_SETTINGS

Notifications disabled

GetLastError

ERR_NOTIFICATION_TOO_FREQUENT

Notification send too frequent

GetLastError

ERR_OBJECT_ALREADY_EXISTS

Object already exists

GetLastError

ERR_OBJECT_COORDINATES_ERROR

Object coordinates error

GetLastError

ERR_OBJECT_DOES_NOT_EXIST

Object does not exist

GetLastError

ERR_OFF_QUOTES

Off quotes

GetLastError

ERR_OLD_VERSION

Old version of the client terminal

GetLastError

ERR_ORDER_LOCKED

Order is locked

GetLastError

ERR_OUT_OF_MEMORY

Out of memory

GetLastError

ERR_PRICE_CHANGED

Price changed

GetLastError

ERR_RECURSIVE_STACK_OVERFLOW

Recursive stack overflow

GetLastError

ERR_REMAINDER_FROM_ZERO_DIVIDE

Remainder from zero divide

GetLastError

ERR_REQUOTE

Requote

GetLastError

ERR_RESOURCE_DUPLICATED

Duplicate resource

GetLastError

ERR_RESOURCE_NOT_FOUND

Resource not found

GetLastError

ERR_RESOURCE_NOT_SUPPORTED

Resource not supported

GetLastError

ERR_SEND_MAIL_ERROR

Send mail error

GetLastError

ERR_SERVER_BUSY

Trade server is busy

GetLastError

ERR_SHORTS_NOT_ALLOWED

Shorts are not allowed. Check the Expert Advisor properties

GetLastError

ERR_SOME_ARRAY_ERROR

Some array error

GetLastError

ERR_SOME_FILE_ERROR

Some file error

GetLastError

ERR_SOME_OBJECT_ERROR

Graphical object error

GetLastError

ERR_STRING_FUNCTION_INTERNAL

String function internal error

GetLastError

ERR_STRING_PARAMETER_EXPECTED

String parameter expected

GetLastError

ERR_SYMBOL_SELECT

Symbol select error

GetLastError

ERR_SYSTEM_BUSY

System is busy (never generated error)

GetLastError

ERR_TOO_FREQUENT_REQUESTS

Too frequent requests

GetLastError

ERR_TOO_LONG_STRING

Too long string

GetLastError

ERR_TOO_MANY_OPENED_FILES

Too many opened files

GetLastError

ERR_TOO_MANY_REQUESTS

Too many requests

GetLastError

ERR_TRADE_CONTEXT_BUSY

Trade context is busy

GetLastError

ERR_TRADE_DISABLED

Trade is disabled

GetLastError

ERR_TRADE_ERROR

Internal trade error

GetLastError

ERR_TRADE_EXPERT_DISABLED_BY_SERVER

Automated trading by Expert Advisors/Scripts disabled by trade server

GetLastError

ERR_TRADE_EXPIRATION_DENIED

Expirations are denied by broker

GetLastError

ERR_TRADE_HEDGE_PROHIBITED

An attempt to open an order opposite to the existing one when hedging is disabled

GetLastError

ERR_TRADE_MODIFY_DENIED

Modification denied because order is too close to market

GetLastError

ERR_TRADE_NOT_ALLOWED

Trade is not allowed. Enable checkbox "Allow live trading" in the Expert Advisor properties

GetLastError

ERR_TRADE_PROHIBITED_BY_FIFO

An attempt to close an order contravening the FIFO rule

GetLastError

ERR_TRADE_TIMEOUT

Trade timeout

GetLastError

ERR_TRADE_TOO_MANY_ORDERS

The amount of open and pending orders has reached the limit set by the broker

GetLastError

ERR_UNKNOWN_COMMAND

Unknown command

GetLastError

ERR_UNKNOWN_OBJECT_PROPERTY

Unknown object property

GetLastError

ERR_UNKNOWN_OBJECT_TYPE

Unknown object type

GetLastError

ERR_UNKNOWN_SYMBOL

Unknown symbol

GetLastError

ERR_USER_ERROR_FIRST

User defined errors start with this code

GetLastError

ERR_WEBREQUEST_CONNECT_FAILED

Failed to connect to specified URL

GetLastError

ERR_WEBREQUEST_INVALID_ADDRESS

Invalid URL

GetLastError

ERR_WEBREQUEST_REQUEST_FAILED

HTTP request failed

GetLastError

ERR_WEBREQUEST_TIMEOUT

Timeout exceeded

GetLastError

ERR_WRONG_FILE_NAME

Wrong file name

GetLastError

ERR_WRONG_FUNCTION_POINTER

Wrong function pointer

GetLastError

ERR_WRONG_JUMP

Wrong jump (never generated error)

GetLastError

ERR_ZERO_DIVIDE

Zero divide

GetLastError

FILE_ACCESS_DATE

Date of the last access to the file

FileGetInteger

FILE_ANSI

Strings of ANSI type (one byte symbols). Flag is used in FileOpen()

FileOpen

FILE_BIN

Binary read/write mode (without string to string conversion). Flag is used in FileOpen()

FileOpen

FILE_COMMON

The 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_DATE

Date of creation

FileGetInteger

FILE_CSV

CSV 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_END

Get the end of file sign

FileGetInteger

FILE_EXISTS

Check the existence

FileGetInteger

FILE_IS_ANSI

The file is opened as ANSI (see FILE_ANSI)

FileGetInteger

FILE_IS_BINARY

The file is opened as a binary file (see FILE_BIN)

FileGetInteger

FILE_IS_COMMON

The file is opened in a shared folder of all terminals (see FILE_COMMON)

FileGetInteger

FILE_IS_CSV

The file is opened as CSV (see FILE_CSV)

FileGetInteger

FILE_IS_READABLE

The opened file is readable (see FILE_READ)

FileGetInteger

FILE_IS_TEXT

The file is opened as a text file (see FILE_TXT)

FileGetInteger

FILE_IS_WRITABLE

The opened file is writable (see FILE_WRITE)

FileGetInteger

FILE_LINE_END

Get the end of line sign

FileGetInteger

FILE_MODIFY_DATE

Date of the last modification

FileGetInteger

FILE_POSITION

Position of a pointer in the file

FileGetInteger

FILE_READ

File 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_REWRITE

Possibility 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_READ

Shared 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_WRITE

Shared 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_SIZE

File size in bytes

FileGetInteger

FILE_TXT

Simple text file (the same as csv file, but without taking into account the separators). Flag is used in FileOpen()

FileOpen

FILE_UNICODE

Strings of UNICODE type (two byte symbols). Flag is used in FileOpen()

FileOpen

FILE_WRITE

File 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_DIG

Number of significant decimal digits for float type

Numerical Type Constants

FLT_EPSILON

Minimal value, which satisfies the condition:

1.0+DBL_EPSILON != 1.0 (for float type)

Numerical Type Constants

FLT_MANT_DIG

Bits count in a mantissa for float type

Numerical Type Constants

FLT_MAX

Maximal value, which can be represented by float type

Numerical Type Constants

FLT_MAX_10_EXP

Maximal decimal value of exponent degree for float type

Numerical Type Constants

FLT_MAX_EXP

Maximal binary value of exponent degree for float type

Numerical Type Constants

FLT_MIN

Minimal positive value, which can be represented by float type

Numerical Type Constants

FLT_MIN_10_EXP

Minimal decimal value of exponent degree for float type

Numerical Type Constants

FLT_MIN_EXP

Minimal binary value of exponent degree for float type

Numerical Type Constants

FRIDAY

Friday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

GANN_DOWN_TREND

Line corresponding to the downward trend

Gann Objects

GANN_UP_TREND

Line corresponding to the uptrend line

Gann Objects

IDABORT

"Abort" button has been pressed

MessageBox

IDCANCEL

"Cancel" button has been pressed

MessageBox

IDCONTINUE

"Continue" button has been pressed

MessageBox

IDIGNORE

"Ignore" button has been pressed

MessageBox

IDNO

"No" button has been pressed

MessageBox

IDOK

"OK" button has been pressed

MessageBox

IDRETRY

"Retry" button has been pressed

MessageBox

IDTRYAGAIN

"Try Again" button has been pressed

MessageBox

IDYES

"Yes" button has been pressed

MessageBox

INDICATOR_DIGITS

Accuracy of drawing of indicator values

Custom Indicators Properties

INDICATOR_HEIGHT

Fixed height of the indicator's window (the preprocessor command #property indicator_height)

Custom Indicators Properties

INDICATOR_LEVELCOLOR

Color of the level line

Custom Indicators Properties

INDICATOR_LEVELS

Number of levels in the indicator window

Custom Indicators Properties

INDICATOR_LEVELSTYLE

Style of the level line

Custom Indicators Properties

INDICATOR_LEVELTEXT

Level description

Custom Indicators Properties

INDICATOR_LEVELVALUE

Level value

Custom Indicators Properties

INDICATOR_LEVELWIDTH

Thickness of the level line

Custom Indicators Properties

INDICATOR_MAXIMUM

Maximum of the indicator window

Custom Indicators Properties

INDICATOR_MINIMUM

Minimum of the indicator window

Custom Indicators Properties

INDICATOR_SHORTNAME

Short indicator name

Custom Indicators Properties

INT_MAX

Maximal value, which can be represented by int type

Numerical Type Constants

INT_MIN

Minimal value, which can be represented by int type

Numerical Type Constants

INVALID_HANDLE

Incorrect handle

Other constants

IS_DEBUG_MODE

Flag that a mql4-program operates in debug mode

Other constants

IS_PROFILE_MODE

Flag that a mql4-program operates in profiling mode

Other constants

LONG_MAX

Maximal value, which can be represented by long type

Numerical Type Constants

LONG_MIN

Minimal value, which can be represented by long type

Numerical Type Constants

M_1_PI

1/pi

Mathematical Constants

M_2_PI

2/pi

Mathematical Constants

M_2_SQRTPI

2/sqrt(pi)

Mathematical Constants

M_E

e

Mathematical Constants

M_LN10

ln(10)

Mathematical Constants

M_LN2

ln(2)

Mathematical Constants

M_LOG10E

log10(e)

Mathematical Constants

M_LOG2E

log2(e)

Mathematical Constants

M_PI

pi

Mathematical Constants

M_PI_2

pi/2

Mathematical Constants

M_PI_4

pi/4

Mathematical Constants

M_SQRT1_2

1/sqrt(2)

Mathematical Constants

M_SQRT2

sqrt(2)

Mathematical Constants

MB_ABORTRETRYIGNORE

Message window contains three buttons: Abort, Retry and Ignore

MessageBox

MB_CANCELTRYCONTINUE

Message window contains three buttons: Cancel, Try Again, Continue

MessageBox

MB_DEFBUTTON1

The first button MB_DEFBUTTON1 - is default, if the other buttons MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 are not specified

MessageBox

MB_DEFBUTTON2

The second button is default

MessageBox

MB_DEFBUTTON3

The third button is default

MessageBox

MB_DEFBUTTON4

The fourth button is default

MessageBox

MB_ICONEXCLAMATION,

MB_ICONWARNING

The exclamation/warning sign icon

MessageBox

MB_ICONINFORMATION,

MB_ICONASTERISK

The encircled i sign

MessageBox

MB_ICONQUESTION

The question sign icon

MessageBox

MB_ICONSTOP,

MB_ICONERROR,

MB_ICONHAND

The STOP sign icon

MessageBox

MB_OK

Message window contains only one button: OK. Default

MessageBox

MB_OKCANCEL

Message window contains two buttons: OK and Cancel

MessageBox

MB_RETRYCANCEL

Message window contains two buttons: Retry and Cancel

MessageBox

MB_YESNO

Message window contains two buttons: Yes and No

MessageBox

MB_YESNOCANCEL

Message window contains three buttons: Yes, No and Cancel

MessageBox

MODE_ASK

Last incoming ask price. For the current symbol, it is stored in the predefined variable Ask

MarketInfo

MODE_BID

Last incoming bid price. For the current symbol, it is stored in the predefined variable Bid

MarketInfo

MODE_CHIKOUSPAN

Chikou Span

Indicator Lines

MODE_CLOSE

Close price

Series Array Identifiers

MODE_DIGITS

Count of digits after decimal point in the symbol prices. For the current symbol, it is stored in the predefined variable Digits

MarketInfo

MODE_EMA

Exponential averaging

Smoothing Methods

MODE_EXPIRATION

Market expiration date (usually used for futures)

MarketInfo

MODE_FREEZELEVEL

Order freeze level in points. If the execution price lies within the range defined by the freeze level, the order cannot be modified, cancelled or closed

MarketInfo

MODE_GATORJAW

Jaw line

Indicator Lines

MODE_GATORLIPS

Lips line

Indicator Lines

MODE_GATORTEETH

Teeth line

Indicator Lines

MODE_HIGH

High day price

Series Array Identifiers

MODE_HISTORY

An order is selected from closed and canceled orders

OrderSelect

MODE_KIJUNSEN

Kijun-sen

Indicator Lines

MODE_LOTSIZE

Lot size in the base currency

MarketInfo

MODE_LOTSTEP

Step for changing lots

MarketInfo

MODE_LOW

Low day price

Series Array Identifiers

MODE_LOWER

Lower line

Indicator Lines

MODE_LWMA

Linear-weighted averaging

Smoothing Methods

MODE_MAIN

Base indicator line

Indicator Lines

MODE_MARGINCALCMODE

Margin calculation mode. 0 - Forex; 1 - CFD; 2 - Futures; 3 - CFD for indices

MarketInfo

MODE_MARGINHEDGED

Hedged margin calculated for 1 lot

MarketInfo

MODE_MARGININIT

Initial margin requirements for 1 lot

MarketInfo

MODE_MARGINMAINTENANCE

Margin to maintain open orders calculated for 1 lot

MarketInfo

MODE_MARGINREQUIRED

Free margin required to open 1 lot for buying

MarketInfo

MODE_MAXLOT

Maximum permitted amount of a lot

MarketInfo

MODE_MINLOT

Minimum permitted amount of a lot

MarketInfo

MODE_MINUSDI

-DI indicator line

Indicator Lines

MODE_OPEN

Open price

Series Array Identifiers

MODE_PLUSDI

+DI indicator line

Indicator Lines

MODE_POINT

Point size in the quote currency. For the current symbol, it is stored in the predefined variable Point

MarketInfo

MODE_PROFITCALCMODE

Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures

MarketInfo

MODE_SENKOUSPANA

Senkou Span A

Indicator Lines

MODE_SENKOUSPANB

Senkou Span B

Indicator Lines

MODE_SIGNAL

Signal line

Indicator Lines

MODE_SMA

Simple averaging

Smoothing Methods

MODE_SMMA

Smoothed averaging

Smoothing Methods

MODE_SPREAD

Spread value in points

MarketInfo

MODE_STARTING

Market starting date (usually used for futures)

MarketInfo

MODE_STOPLEVEL

Stop level in points

 

A 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_SWAPLONG

Swap of the buy order

MarketInfo

MODE_SWAPSHORT

Swap of the sell order

MarketInfo

MODE_SWAPTYPE

Swap calculation method. 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currency

MarketInfo

MODE_TENKANSEN

Tenkan-sen

Indicator Lines

MODE_TICKSIZE

Tick size in points

MarketInfo

MODE_TICKVALUE

Tick value in the deposit currency

MarketInfo

MODE_TIME

The last incoming tick time (last known server time)

Series Array Identifiers

MODE_TRADEALLOWED

Trade is allowed for the symbol

MarketInfo

MODE_TRADES

An order is selected from open and pending orders

OrderSelect

MODE_UPPER

Upper line

Indicator Lines

MODE_VOLUME

Volume, used in iLowest() and iHighest() functions

Series Array Identifiers

MONDAY

Monday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

MQL_CODEPAGE

Codepage used by an MQL4 program to output and convert strings (Print, PrintFormat, Alert, MessageBox, SendFTP, SendMail, SendNotification, etc.)

Running MQL4 Program Properties

MQL_DEBUG

The flag, that indicates the debug mode

MQLInfoInteger

MQL_DLLS_ALLOWED

The permission to use DLL for the given executed program

MQLInfoInteger

MQL_LICENSE_TYPE

Type 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_OPTIMIZATION

The flag, that indicates the optimization process

MQLInfoInteger

MQL_PROFILER

The flag, that indicates the program operating in the code profiling mode

MQLInfoInteger

MQL_PROGRAM_NAME

Name of the MQL4-program executed

MQLInfoString

MQL_PROGRAM_PATH

Path for the given executed program

MQLInfoString

MQL_PROGRAM_TYPE

Type of the MQL4 program

MQLInfoInteger

MQL_SIGNALS_ALLOWED

The permission to modify the Signals for the given executed program

MQLInfoInteger

MQL_TESTER

The flag, that indicates the tester process

MQLInfoInteger

MQL_TRADE_ALLOWED

The permission to trade for the given executed program

MQLInfoInteger

MQL_VISUAL_MODE

The flag, that indicates the visual tester process

MQLInfoInteger

NULL

Zero for any types. Also indicates empty state of the string

Other constants

OBJ_ALL_PERIODS

The object is drawn in all timeframes

Visibility of Objects

OBJ_ARROW

Arrow

Object Types

OBJ_ARROW_BUY

Buy Sign

Object Types

OBJ_ARROW_CHECK

Check Sign

Object Types

OBJ_ARROW_DOWN

Arrow Down

Object Types

OBJ_ARROW_LEFT_PRICE

Left Price Label

Object Types

OBJ_ARROW_RIGHT_PRICE

Right Price Label

Object Types

OBJ_ARROW_SELL

Sell Sign

Object Types

OBJ_ARROW_STOP

Stop Sign

Object Types

OBJ_ARROW_THUMB_DOWN

Thumbs Down

Object Types

OBJ_ARROW_THUMB_UP

Thumbs Up

Object Types

OBJ_ARROW_UP

Arrow Up

Object Types

OBJ_BITMAP

Bitmap

Object Types

OBJ_BITMAP_LABEL

Bitmap Label

Object Types

OBJ_BUTTON

Button

Object Types

OBJ_CHANNEL

Equidistant Channel

Object Types

OBJ_CYCLES

Cycle Lines

Object Types

OBJ_EDIT

Edit

Object Types

OBJ_ELLIPSE

Ellipse

Object Types

OBJ_EVENT

The "Event" object corresponding to an event in the economic calendar

Object Types

OBJ_EXPANSION

Fibonacci Expansion

Object Types

OBJ_FIBO

Fibonacci Retracement

Object Types

OBJ_FIBOARC

Fibonacci Arcs

Object Types

OBJ_FIBOCHANNEL

Fibonacci Channel

Object Types

OBJ_FIBOFAN

Fibonacci Fan

Object Types

OBJ_FIBOTIMES

Fibonacci Time Zones

Object Types

OBJ_GANNFAN

Gann Fan

Object Types

OBJ_GANNGRID

Gann Grid

Object Types

OBJ_GANNLINE

Gann Line

Object Types

OBJ_HLINE

Horizontal Line

Object Types

OBJ_LABEL

Label

Object Types

OBJ_NO_PERIODS, EMPTY

The object is not drawn in all timeframes

Visibility of Objects

OBJ_PERIOD_D1

The object is drawn in day charts

Visibility of Objects

OBJ_PERIOD_H1

The object is drawn in 1-hour chart

Visibility of Objects

OBJ_PERIOD_H4

The object is drawn in 4-hour chart

Visibility of Objects

OBJ_PERIOD_M1

The object is drawn in 1-minute chart

Visibility of Objects

OBJ_PERIOD_M15

The object is drawn in 15-minute chart

Visibility of Objects

OBJ_PERIOD_M30

The object is drawn in 30-minute chart

Visibility of Objects

OBJ_PERIOD_M5

The object is drawn in 5-minute chart

Visibility of Objects

OBJ_PERIOD_MN1

The object is drawn in month charts

Visibility of Objects

OBJ_PERIOD_W1

The object is drawn in week charts

Visibility of Objects

OBJ_PITCHFORK

Andrews’ Pitchfork

Object Types

OBJ_RECTANGLE

Rectangle

Object Types

OBJ_RECTANGLE_LABEL

The "Rectangle label" object for creating and designing the custom graphical interface.

Object Types

OBJ_REGRESSION

Linear Regression Channel

Object Types

OBJ_STDDEVCHANNEL

Standard Deviation Channel

Object Types

OBJ_TEXT

Text

Object Types

OBJ_TREND

Trend Line

Object Types

OBJ_TRENDBYANGLE

Trend Line By Angle

Object Types

OBJ_TRIANGLE

Triangle

Object Types

OBJ_VLINE

Vertical Line

Object Types

OBJPROP_ALIGN

Horizontal text alignment in the "Edit" object (OBJ_EDIT)

ObjectGetInteger, ObjectSetInteger

OBJPROP_ANCHOR

Location of the anchor point of a graphical object

ObjectGetInteger, ObjectSetInteger

OBJPROP_ANGLE

Double value to set/get angle object property in degrees

ObjectGet, ObjectSet

OBJPROP_ARROWCODE

Integer value or arrow enumeration to set/get arrow code object property

ObjectGet, ObjectSet

OBJPROP_BACK

Boolean value to set/get background drawing flag for object

ObjectGet, ObjectSet

OBJPROP_BGCOLOR

The background color for  OBJ_EDIT, OBJ_BUTTON, OBJ_RECTANGLE_LABEL

ObjectGetInteger, ObjectSetInteger

OBJPROP_BMPFILE

The name of BMP-file for Bitmap Label. See also Resources

ObjectGetString, ObjectSetString

OBJPROP_BORDER_COLOR

Border color for the OBJ_EDIT and OBJ_BUTTON objects

ObjectGetInteger, ObjectSetInteger

OBJPROP_BORDER_TYPE

Border type for the "Rectangle label" object

ObjectGetInteger, ObjectSetInteger

OBJPROP_COLOR

Color value to set/get object color

ObjectGet, ObjectSet

OBJPROP_CORNER

Integer value to set/get anchor corner property for label objects. Must be from 0-3.

ObjectGet, ObjectSet

OBJPROP_CREATETIME

Time of object creation

ObjectGetInteger, ObjectSetInteger

OBJPROP_DEVIATION

Double value to set/get deviation property for Standard deviation objects

ObjectGet, ObjectSet

OBJPROP_DRAWLINES

Displaying lines for marking the Elliott Wave

ObjectGetInteger, ObjectSetInteger

OBJPROP_ELLIPSE

Boolean value to set/get ellipse flag for fibo arcs

ObjectGet, ObjectSet

OBJPROP_FIBOLEVELS

Integer value to set/get Fibonacci object level count. Can be from 0 to 32

ObjectGet, ObjectSet

OBJPROP_FIRSTLEVEL+n

Integer 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 31

ObjectGet, ObjectSet

OBJPROP_FONT

Font

ObjectGetString, ObjectSetString

OBJPROP_FONTSIZE

Integer value to set/get font size for text objects

ObjectGet, ObjectSet

OBJPROP_HIDDEN

Prohibit 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_LEVELCOLOR

Color value to set/get object level line color

ObjectGet, ObjectSet

OBJPROP_LEVELS

Number of levels

ObjectGetInteger, ObjectSetInteger

OBJPROP_LEVELSTYLE

Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object level line style

ObjectGet, ObjectSet

OBJPROP_LEVELTEXT

Level description

ObjectGetString, ObjectSetString

OBJPROP_LEVELVALUE

Level value

ObjectGetDouble, ObjectSetDouble

OBJPROP_LEVELWIDTH

Integer value to set/get object level line width. Can be from 1 to 5

ObjectGet, ObjectSet

OBJPROP_NAME

Object name

ObjectGetString, ObjectSetString

OBJPROP_PRICE

Price coordinate

ObjectGetDouble, ObjectSetDouble

OBJPROP_PRICE1

Double value to set/get first coordinate price part

ObjectGet, ObjectSet

OBJPROP_PRICE2

Double value to set/get second coordinate price part

ObjectGet, ObjectSet

OBJPROP_PRICE3

Double value to set/get third coordinate price part

ObjectGet, ObjectSet

OBJPROP_RAY

Boolean value to set/get ray flag of object.

ObjectGet, ObjectSet

OBJPROP_RAY_RIGHT

Ray goes to the right

ObjectGetInteger, ObjectSetInteger

OBJPROP_READONLY

Ability to edit text in the Edit object

ObjectGetInteger, ObjectSetInteger

OBJPROP_SCALE

Double value to set/get scale object property

ObjectGet, ObjectSet

OBJPROP_SELECTABLE

Object availability

ObjectGetInteger, ObjectSetInteger

OBJPROP_SELECTED

Object is selected

ObjectGetInteger, ObjectSetInteger

OBJPROP_STATE

Button state (pressed / depressed)

ObjectGetInteger, ObjectSetInteger

OBJPROP_STYLE

Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style

ObjectGet, ObjectSet

OBJPROP_SYMBOL

Symbol for the Chart object

ObjectGetString, ObjectSetString

OBJPROP_TEXT

Description of the object (the text contained in the object)

ObjectGetString, ObjectSetString

OBJPROP_TIME

Time coordinate

ObjectGetInteger, ObjectSetInteger

OBJPROP_TIME1

Datetime value to set/get first coordinate time part

ObjectGet, ObjectSet

OBJPROP_TIME2

Datetime value to set/get second coordinate time part

ObjectGet, ObjectSet

OBJPROP_TIME3

Datetime value to set/get third coordinate time part

ObjectGet, ObjectSet

OBJPROP_TIMEFRAMES

Value can be one or combination (bitwise addition) of object visibility constants to set/get timeframe object property

ObjectGet, ObjectSet

OBJPROP_TOOLTIP

The 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 it

ObjectGetString, ObjectSetString

OBJPROP_TYPE

Object type

ObjectGetInteger, ObjectSetInteger

OBJPROP_WIDTH

Integer value to set/get object line width. Can be from 1 to 5

ObjectGet, ObjectSet

OBJPROP_XDISTANCE

Integer value to set/get anchor X distance object property in pixels (see note)

ObjectGet, ObjectSet

OBJPROP_XOFFSET

The 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_XSIZE

The 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_YDISTANCE

Integer value is to set/get anchor Y distance object property in pixels (see note)

ObjectGet, ObjectSet

OBJPROP_YOFFSET

The 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_YSIZE

The 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_ZORDER

Priority 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_BUY

Buy operation

OrderSend

OP_BUYLIMIT

Buy limit pending order

OrderSend

OP_BUYSTOP

Buy stop pending order

OrderSend

OP_SELL

Sell operation

OrderSend

OP_SELLLIMIT

Sell limit pending order

OrderSend

OP_SELLSTOP

Sell stop pending order

OrderSend

PERIOD_CURRENT

Current timeframe

Chart Timeframes

PERIOD_D1

1 day

Chart Timeframes

PERIOD_H1

1 hour

Chart Timeframes

PERIOD_H12

12 hours

Chart Timeframes

PERIOD_H2

2 hours

Chart Timeframes

PERIOD_H3

3 hours

Chart Timeframes

PERIOD_H4

4 hours

Chart Timeframes

PERIOD_H6

6 hours

Chart Timeframes

PERIOD_H8

8 hours

Chart Timeframes

PERIOD_M1

1 minute

Chart Timeframes

PERIOD_M10

10 minutes

Chart Timeframes

PERIOD_M12

12 minutes

Chart Timeframes

PERIOD_M15

15 minutes

Chart Timeframes

PERIOD_M2

2 minutes

Chart Timeframes

PERIOD_M20

20 minutes

Chart Timeframes

PERIOD_M3

3 minutes

Chart Timeframes

PERIOD_M30

30 minutes

Chart Timeframes

PERIOD_M4

4 minutes

Chart Timeframes

PERIOD_M5

5 minutes

Chart Timeframes

PERIOD_M6

6 minutes

Chart Timeframes

PERIOD_MN1

1 month

Chart Timeframes

PERIOD_W1

1 week

Chart Timeframes

POINTER_AUTOMATIC

Pointer of any objects created automatically (not using new())

CheckPointer

POINTER_DYNAMIC

Pointer of the object created by the new() operator

CheckPointer

POINTER_INVALID

Incorrect pointer

CheckPointer

PRICE_CLOSE

Close price

Price Constants

PRICE_HIGH

The maximum price for the period

Price Constants

PRICE_LOW

The minimum price for the period

Price Constants

PRICE_MEDIAN

Median price, (high + low)/2

Price Constants

PRICE_OPEN

Open price

Price Constants

PRICE_TYPICAL

Typical price, (high + low + close)/3

Price Constants

PRICE_WEIGHTED

Average price, (high + low + close + close)/4

Price Constants

REASON_ACCOUNT

Another account has been activated or reconnection to the trade server has occurred due to changes in the account settings

UninitializeReason

REASON_CHARTCHANGE

Symbol or chart period has been changed

UninitializeReason

REASON_CHARTCLOSE

Chart has been closed

UninitializeReason

REASON_CLOSE

Terminal has been closed

UninitializeReason

REASON_INITFAILED

This value means that OnInit() handler has returned a nonzero value

UninitializeReason

REASON_PARAMETERS

Input parameters have been changed by a user

UninitializeReason

REASON_PROGRAM

Expert Advisor terminated its operation by calling the ExpertRemove() function

UninitializeReason

REASON_RECOMPILE

Program has been recompiled

UninitializeReason

REASON_REMOVE

Program has been deleted from the chart

UninitializeReason

REASON_TEMPLATE

A new template has been applied

UninitializeReason

SATURDAY

Saturday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

SEEK_CUR

Current position of a file pointer

FileSeek

SEEK_END

File end

FileSeek

SEEK_SET

File beginning

FileSeek

SELECT_BY_POS

An order is selected based on its position in the list of orders

OrderSelect

SELECT_BY_TICKET

An order is selected by its ticket

OrderSelect

SERIES_BARS_COUNT

Bars count for the symbol-period for the current moment

SeriesInfoInteger

SERIES_FIRSTDATE

The very first date for the symbol-period for the current moment

SeriesInfoInteger

SERIES_LASTBAR_DATE

Open time of the last bar of the symbol-period

SeriesInfoInteger

SERIES_SERVER_FIRSTDATE

The very first date in the history of the symbol on the server regardless of the timeframe

SeriesInfoInteger

SHORT_MAX

Maximal value, which can be represented by short type

Numerical Type Constants

SHORT_MIN

Minimal value, which can be represented by short type

Numerical Type Constants

SIGNAL_BASE_AUTHOR_LOGIN

Author login

SignalBaseGetString

SIGNAL_BASE_BALANCE

Account balance

SignalBaseGetDouble

SIGNAL_BASE_BROKER

Broker name (company)

SignalBaseGetString

SIGNAL_BASE_BROKER_SERVER

Broker server

SignalBaseGetString

SIGNAL_BASE_CURRENCY

Signal base currency

SignalBaseGetString

SIGNAL_BASE_DATE_PUBLISHED

Publication date (date when it become available for subscription)

SignalBaseGetInteger

SIGNAL_BASE_DATE_STARTED

Monitoring starting date

SignalBaseGetInteger

SIGNAL_BASE_EQUITY

Account equity

SignalBaseGetDouble

SIGNAL_BASE_GAIN

Account gain

SignalBaseGetDouble

SIGNAL_BASE_ID

Signal ID

SignalBaseGetInteger

SIGNAL_BASE_LEVERAGE

Account leverage

SignalBaseGetInteger

SIGNAL_BASE_MAX_DRAWDOWN

Account maximum drawdown

SignalBaseGetDouble

SIGNAL_BASE_NAME

Signal name

SignalBaseGetString

SIGNAL_BASE_PIPS

Profit in pips

SignalBaseGetInteger

SIGNAL_BASE_PRICE

Signal subscription price

SignalBaseGetDouble

SIGNAL_BASE_RATING

Position in rating

SignalBaseGetInteger

SIGNAL_BASE_ROI

Return on Investment (%)

SignalBaseGetDouble

SIGNAL_BASE_SUBSCRIBERS

Number of subscribers

SignalBaseGetInteger

SIGNAL_BASE_TRADE_MODE

Account type (0-real, 1-demo, 2-contest)

SignalBaseGetInteger

SIGNAL_BASE_TRADES

Number of trades

SignalBaseGetInteger

SIGNAL_INFO_CONFIRMATIONS_DISABLED

The flag enables synchronization without confirmation dialog

SignalInfoGetInteger, SignalInfoSetInteger

SIGNAL_INFO_COPY_SLTP

Copy Stop Loss and Take Profit flag

SignalInfoGetInteger, SignalInfoSetInteger

SIGNAL_INFO_DEPOSIT_PERCENT

Deposit percent (%)

SignalInfoGetInteger, SignalInfoSetInteger

SIGNAL_INFO_EQUITY_LIMIT

Equity limit

SignalInfoGetDouble, SignalInfoSetDouble

SIGNAL_INFO_ID

Signal id, r/o

SignalInfoGetInteger, SignalInfoSetInteger

SIGNAL_INFO_NAME

Signal name, r/o

SignalInfoGetString

SIGNAL_INFO_SLIPPAGE

Slippage (used when placing market orders in synchronization of positions and copying of trades)

SignalInfoGetDouble, SignalInfoSetDouble

SIGNAL_INFO_SUBSCRIPTION_ENABLED

"Copy trades by subscription" permission flag

SignalInfoGetInteger, SignalInfoSetInteger

SIGNAL_INFO_TERMS_AGREE

"Agree to terms of use of Signals service" flag, r/o

SignalInfoGetInteger, SignalInfoSetInteger

SIGNAL_INFO_VOLUME_PERCENT

Maximum percent of deposit used (%), r/o

SignalInfoGetDouble, SignalInfoSetDouble

STAT_BALANCE_DD

Maximum balance drawdown in monetary terms. In the process of trading, a balance may have numerous drawdowns; here the largest value is taken

TesterStatistics

STAT_BALANCE_DD_RELATIVE

Balance 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_PERCENT

Maximum 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 returned

TesterStatistics

STAT_BALANCEDD_PERCENT

Balance drawdown as a percentage that was recorded at the moment of the maximum balance drawdown in monetary terms (STAT_BALANCE_DD).

TesterStatistics

STAT_BALANCEMIN

Minimum balance value

TesterStatistics

STAT_CONLOSSMAX

Maximum loss in a series of losing trades. The value is less than or equal to zero

TesterStatistics

STAT_CONLOSSMAX_TRADES

The number of trades that have formed STAT_CONLOSSMAX (maximum loss in a series of losing trades)

TesterStatistics

STAT_CONPROFITMAX

Maximum profit in a series of profitable trades. The value is greater than or equal to zero

TesterStatistics

STAT_CONPROFITMAX_TRADES

The number of trades that have formed STAT_CONPROFITMAX (maximum profit in a series of profitable trades)

TesterStatistics

STAT_CUSTOM_ONTESTER

The value of the calculated custom optimization criterion returned by the OnTester() function

TesterStatistics

STAT_DEALS

The number of deals

TesterStatistics

STAT_EQUITY_DD

Maximum equity drawdown in monetary terms. In the process of trading, numerous drawdowns may appear on the equity; here the largest value is taken

TesterStatistics

STAT_EQUITY_DD_RELATIVE

Equity 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_PERCENT

Maximum 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 returned

TesterStatistics

STAT_EQUITYDD_PERCENT

Drawdown in percent that was recorded at the moment of the maximum equity drawdown in monetary terms (STAT_EQUITY_DD).

TesterStatistics

STAT_EQUITYMIN

Minimum equity value

TesterStatistics

STAT_EXPECTED_PAYOFF

Expected payoff

TesterStatistics

STAT_GROSS_LOSS

Total loss, the sum of all negative trades. The value is less than or equal to zero

TesterStatistics

STAT_GROSS_PROFIT

Total profit, the sum of all profitable (positive) trades. The value is greater than or equal to zero

TesterStatistics

STAT_INITIAL_DEPOSIT

The value of the initial deposit

TesterStatistics

STAT_LONG_TRADES

Long trades

TesterStatistics

STAT_LOSS_TRADES

Losing trades

TesterStatistics

STAT_LOSSTRADES_AVGCON

Average length of a losing series of trades

TesterStatistics

STAT_MAX_CONLOSS_TRADES

The number of trades in the longest series of losing trades STAT_MAX_CONLOSSES

TesterStatistics

STAT_MAX_CONLOSSES

The total loss of the longest series of losing trades

TesterStatistics

STAT_MAX_CONPROFIT_TRADES

The number of trades in the longest series of profitable trades STAT_MAX_CONWINS

TesterStatistics

STAT_MAX_CONWINS

The total profit of the longest series of profitable trades

TesterStatistics

STAT_MAX_LOSSTRADE

Maximum loss — the lowest value of all losing trades. The value is less than or equal to zero

TesterStatistics

STAT_MAX_PROFITTRADE

Maximum profit — the largest value of all profitable trades. The value is greater than or equal to zero

TesterStatistics

STAT_MIN_MARGINLEVEL

Minimum value of the margin level

TesterStatistics

STAT_PROFIT

Net 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_FACTOR

Profit factor, equal to  the ratio of STAT_GROSS_PROFIT/STAT_GROSS_LOSS. If STAT_GROSS_LOSS=0, the profit factor is equal to DBL_MAX

TesterStatistics

STAT_PROFIT_LONGTRADES

Profitable long trades

TesterStatistics

STAT_PROFIT_SHORTTRADES

Profitable short trades

TesterStatistics

STAT_PROFIT_TRADES

Profitable trades

TesterStatistics

STAT_PROFITTRADES_AVGCON

Average length of a profitable series of trades

TesterStatistics

STAT_RECOVERY_FACTOR

Recovery factor, equal to the ratio of STAT_PROFIT/STAT_BALANCE_DD

TesterStatistics

STAT_SHARPE_RATIO

Sharpe ratio

TesterStatistics

STAT_SHORT_TRADES

Short trades

TesterStatistics

STAT_TRADES

The number of trades

TesterStatistics

STAT_WITHDRAWAL

Money withdrawn from an account

TesterStatistics

STO_CLOSECLOSE

Calculation is based on Close/Close prices

iStochastic

STO_LOWHIGH

Calculation is based on Low/High prices

iStochastic

STYLE_DASH

The pen is dashed

Drawing Styles

STYLE_DASHDOT

The pen has alternating dashes and dots

Drawing Styles

STYLE_DASHDOTDOT

The pen has alternating dashes and double dots

Drawing Styles

STYLE_DOT

The pen is dotted

Drawing Styles

STYLE_SOLID

The pen is solid

Drawing Styles

SUNDAY

Sunday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

SYMBOL_ARROWDOWN

Arrow down symbol

Arrow Codes

SYMBOL_ARROWUP

Arrow up symbol

Arrow Codes

SYMBOL_ASK

Ask - best buy offer

SymbolInfoDouble

SYMBOL_ASKHIGH

Not supported

SymbolInfoDouble

SYMBOL_ASKLOW

Not supported

SymbolInfoDouble

SYMBOL_BID

Bid - best sell offer

SymbolInfoDouble

SYMBOL_BIDHIGH

Not supported

SymbolInfoDouble

SYMBOL_BIDLOW

Not supported

SymbolInfoDouble

SYMBOL_CHECKSIGN

Check sign symbol

Arrow Codes

SYMBOL_CURRENCY_BASE

Basic currency of a symbol

SymbolInfoString

SYMBOL_CURRENCY_MARGIN

Margin currency

SymbolInfoString

SYMBOL_CURRENCY_PROFIT

Profit currency

SymbolInfoString

SYMBOL_DESCRIPTION

Symbol description

SymbolInfoString

SYMBOL_DIGITS

Digits after a decimal point

SymbolInfoInteger

SYMBOL_EXPIRATION_MODE

Not supported

SymbolInfoInteger

SYMBOL_EXPIRATION_TIME

Date of the symbol trade end (usually used for futures)

SymbolInfoInteger

SYMBOL_FILLING_MODE

Not supported

SymbolInfoInteger

SYMBOL_LAST

Not supported

SymbolInfoDouble

SYMBOL_LASTHIGH

Not supported

SymbolInfoDouble

SYMBOL_LASTLOW

Not supported

SymbolInfoDouble

SYMBOL_LEFTPRICE

Left sided price label

Arrow Codes

SYMBOL_MARGIN_INITIAL

Initial 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_LIMIT

Not supported

SymbolInfoDouble

SYMBOL_MARGIN_LONG

Not supported

SymbolInfoDouble

SYMBOL_MARGIN_MAINTENANCE

The 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_SHORT

Not supported

SymbolInfoDouble

SYMBOL_MARGIN_STOP

Not supported

SymbolInfoDouble

SYMBOL_MARGIN_STOPLIMIT

Not supported

SymbolInfoDouble

SYMBOL_ORDER_MODE

Not supported

SymbolInfoInteger

SYMBOL_PATH

Path in the symbol tree

SymbolInfoString

SYMBOL_POINT

Symbol point value

SymbolInfoDouble

SYMBOL_RIGHTPRICE

Right sided price label

Arrow Codes

SYMBOL_SELECT

Symbol is selected in Market Watch

SymbolInfoInteger

SYMBOL_SESSION_AW

Not supported

SymbolInfoDouble

SYMBOL_SESSION_BUY_ORDERS

Not supported

SymbolInfoInteger

SYMBOL_SESSION_BUY_ORDERS_VOLUME

Not supported

SymbolInfoDouble

SYMBOL_SESSION_CLOSE

Not supported

SymbolInfoDouble

SYMBOL_SESSION_DEALS

Not supported

SymbolInfoInteger

SYMBOL_SESSION_INTEREST

Not supported

SymbolInfoDouble

SYMBOL_SESSION_OPEN

Not supported

SymbolInfoDouble

SYMBOL_SESSION_PRICE_LIMIT_MAX

Not supported

SymbolInfoDouble

SYMBOL_SESSION_PRICE_LIMIT_MIN

Not supported

SymbolInfoDouble

SYMBOL_SESSION_PRICE_SETTLEMENT

Not supported

SymbolInfoDouble

SYMBOL_SESSION_SELL_ORDERS

Not supported

SymbolInfoInteger

SYMBOL_SESSION_SELL_ORDERS_VOLUME

Not supported

SymbolInfoDouble

SYMBOL_SESSION_TURNOVER

Not supported

SymbolInfoDouble

SYMBOL_SESSION_VOLUME

Not supported

SymbolInfoDouble

SYMBOL_SPREAD

Spread value in points

SymbolInfoInteger

SYMBOL_SPREAD_FLOAT

Indication of a floating spread

SymbolInfoInteger

SYMBOL_START_TIME

Date of the symbol trade beginning (usually used for futures)

SymbolInfoInteger

SYMBOL_STOPSIGN

Stop sign symbol

Arrow Codes

SYMBOL_SWAP_LONG

Buy order swap value

SymbolInfoDouble

SYMBOL_SWAP_MODE

Swap calculation model

SymbolInfoInteger

SYMBOL_SWAP_ROLLOVER3DAYS

Day of week to charge 3 days swap rollover

SymbolInfoInteger

SYMBOL_SWAP_SHORT

Sell order swap value

SymbolInfoDouble

SYMBOL_THUMBSDOWN

Thumb down symbol

Arrow Codes

SYMBOL_THUMBSUP

Thumb up symbol

Arrow Codes

SYMBOL_TIME

Time of the last quote

SymbolInfoInteger

SYMBOL_TRADE_CALC_MODE

Contract price calculation mode

SymbolInfoInteger

SYMBOL_TRADE_CONTRACT_SIZE

Trade contract size

SymbolInfoDouble

SYMBOL_TRADE_EXECUTION_EXCHANGE

Exchange execution

SymbolInfoInteger

SYMBOL_TRADE_EXECUTION_INSTANT

Instant execution

SymbolInfoInteger

SYMBOL_TRADE_EXECUTION_MARKET

Market execution

SymbolInfoInteger

SYMBOL_TRADE_EXECUTION_REQUEST

Execution by request

SymbolInfoInteger

SYMBOL_TRADE_EXEMODE

Deal execution mode

SymbolInfoInteger

SYMBOL_TRADE_FREEZE_LEVEL

Distance to freeze trade operations in points

SymbolInfoInteger

SYMBOL_TRADE_MODE

Order execution type

SymbolInfoInteger

SYMBOL_TRADE_MODE_CLOSEONLY

Allowed only position close operations

SymbolInfoInteger

SYMBOL_TRADE_MODE_DISABLED

Trade is disabled for the symbol

SymbolInfoInteger

SYMBOL_TRADE_MODE_FULL

No trade restrictions

SymbolInfoInteger

SYMBOL_TRADE_MODE_LONGONLY

Allowed only long positions

SymbolInfoInteger

SYMBOL_TRADE_MODE_SHORTONLY

Allowed only short positions

SymbolInfoInteger

SYMBOL_TRADE_STOPS_LEVEL

Minimal indention in points from the current close price to place Stop orders

SymbolInfoInteger

SYMBOL_TRADE_TICK_SIZE

Minimal price change

SymbolInfoDouble

SYMBOL_TRADE_TICK_VALUE

Value of SYMBOL_TRADE_TICK_VALUE_PROFIT

SymbolInfoDouble

SYMBOL_TRADE_TICK_VALUE_LOSS

Not supported

SymbolInfoDouble

SYMBOL_TRADE_TICK_VALUE_PROFIT

Not supported

SymbolInfoDouble

SYMBOL_VOLUME

Not supported

SymbolInfoInteger

SYMBOL_VOLUME_LIMIT

Not supported

SymbolInfoDouble

SYMBOL_VOLUME_MAX

Maximal volume for a deal

SymbolInfoDouble

SYMBOL_VOLUME_MIN

Minimal volume for a deal

SymbolInfoDouble

SYMBOL_VOLUME_STEP

Minimal volume change step for deal execution

SymbolInfoDouble

SYMBOL_VOLUMEHIGH

Not supported

SymbolInfoInteger

SYMBOL_VOLUMELOW

Not supported

SymbolInfoInteger

TERMINAL_BUILD

The client terminal build number

TerminalInfoInteger

TERMINAL_CODEPAGE

Number of the code page of the language installed in the client terminal

TerminalInfoInteger

TERMINAL_COMMONDATA_PATH

Common path for all of the terminals installed on a computer

TerminalInfoString

TERMINAL_COMMUNITY_ACCOUNT

The flag indicates the presence of MQL5.community authorization data in the terminal

TerminalInfoInteger

TERMINAL_COMMUNITY_BALANCE

Balance in MQL5.community

TerminalInfoDouble

TERMINAL_COMMUNITY_CONNECTION

Connection to MQL5.community

TerminalInfoInteger

TERMINAL_COMPANY

Company name

TerminalInfoString

TERMINAL_CONNECTED

Connection to a trade server

TerminalInfoInteger

TERMINAL_CPU_CORES

The number of CPU cores in the system

TerminalInfoInteger

TERMINAL_DATA_PATH

Folder in which terminal data are stored

TerminalInfoString

TERMINAL_DISK_SPACE

Free disk space for the MQL4\Files folder of the terminal (agent), MB

TerminalInfoInteger

TERMINAL_DLLS_ALLOWED

Permission to use DLL

TerminalInfoInteger

TERMINAL_EMAIL_ENABLED

Permission to send e-mails using SMTP-server and login, specified in the terminal settings

TerminalInfoInteger

TERMINAL_FTP_ENABLED

Permission to send reports using FTP-server and login, specified in the terminal settings

TerminalInfoInteger

TERMINAL_LANGUAGE

Language of the terminal

TerminalInfoString

TERMINAL_MAXBARS

The maximal bars count on the chart

TerminalInfoInteger

TERMINAL_MEMORY_AVAILABLE

Free memory of the terminal (agent) process, MB

TerminalInfoInteger

TERMINAL_MEMORY_PHYSICAL

Physical memory in the system, MB

TerminalInfoInteger

TERMINAL_MEMORY_TOTAL

Memory available to the process of the terminal (agent), MB

TerminalInfoInteger

TERMINAL_MEMORY_USED

Memory used by the terminal (agent), MB

TerminalInfoInteger

TERMINAL_MQID

The flag indicates the presence of MetaQuotes ID data to send Push notifications

TerminalInfoInteger

TERMINAL_NAME

Terminal name

TerminalInfoString

TERMINAL_NOTIFICATIONS_ENABLED

Permission to send notifications to smartphone

TerminalInfoInteger

TERMINAL_PATH

Folder from which the terminal is started

TerminalInfoString

TERMINAL_PING_LAST

The last known value of a ping to a trade server in microseconds. One second comprises of one million microseconds

TerminalInfoInteger

TERMINAL_SCREEN_DPI

The resolution of information display on the screen is measured as number of Dots in a line per Inch (DPI).

TerminalInfoInteger

TERMINAL_TRADE_ALLOWED

Permission to trade

TerminalInfoInteger

THURSDAY

Thursday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

TUESDAY

Tuesday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

UCHAR_MAX

Maximal value, which can be represented by uchar type

Numerical Type Constants

UINT_MAX

Maximal value, which can be represented by uint type

Numerical Type Constants

ULONG_MAX

Maximal value, which can be represented by ulong type

Numerical Type Constants

USHORT_MAX

Maximal value, which can be represented by ushort type

Numerical Type Constants

VOLUME_TICK

Tick volume

Price Constants

WEDNESDAY

Wednesday

SymbolInfoSessionQuote, SymbolInfoSessionTrade

WHOLE_ARRAY

Used 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 processed

Other constants

WRONG_VALUE

The constant can be implicitly cast to any enumeration type

Other constants