What's new in MQL5

 

List of changes in the Help for MQL5:

1. Added the OBJPROP_READONLY property for the Edit graphical object, which enables/disables editing of a text in this object;
2. Added an example for the IndicatorRelease() function;
3. Added the IndicatorCreate() function in the "Access to timeseries and indicators" section;
4. Added the ENUM_INDICATOR enumeration, indicating the type of an indicator for the IndicatorCreate() function, in the "Standard Constants, Enumerations, and Structures / Constants of Indicators / Types of Technical Indicators" section;
5. Added the ENUM_DATATYPE enumeration to specify the type of an input parameter in the "Standard Constants, Enumerations, and Structures / Constants of Indicators / Identifiers of Data Types" section;
6. Added the MqlParam structure in the "Standard Constants, Enumerations, and Structures / Constants of Indicators / Structure of Indicator Input Parameters" section;

7. Added errors in the "Standard Constants, Enumerations, and Structures / Error and Warning Codes / Runtime Errors" section.

ERR_INDICATOR_WRONG_PARAMETERS
4808
Invalid number of parameters in indicator creation

ERR_INDICATOR_PARAMETERS_MISSING
4809
No parameters at indicator creation

ERR_INDICATOR_CUSTOM_NAME
4810
The first parameter of an array must be the indicator name

ERR_INDICATOR_PARAMETER_TYPE
4811
Invalid parameter type in the error at indicator creation

The Help is not updated automatically; it can be downloaded at mql5.chm

 

List of changes in the Help for MQL5:

  1. Two new compilation errors

    295 - The function was declared as exported
    296 - The function was not declared as exported

  2. Fixed example for the structure MqlRates
  3. Fixed example for the function EventChartCustom.
  4. Added enumeration ENUM_BOOK_TYPE
  5. Changed description of the structure MqlBookInfo
  6. Added description of the classes in the section "MQL5 Reference / Standard Library / Graphic Objects "
  7. Added an example in the section "MQL5 Reference/ Basics / Functions / Function overloading"

The Help is not updated automatically; it can be downloaded at: mql5.chm

 
2) MqlRates English version has Russian language in sample.

7) downloaded new mql5 reference file and can not find "MQL5 Reference/ Language Basics / Functions / Function overloading"

 
wackena:


7) downloaded new mql5 reference file and can not find "MQL5 Reference/ Language Basics / Functions / Function overloading"

Sorry, mistyped.


 
wackena:

2) MqlRates English version has Russian language in sample.


Thank you, it will be translated.

 

This keywords have no color (are black)

BARS_COUNT
BARS_FIRSTDATE
BARS_SERIES_FIRSTDATE
BARS_SYNCRONIZED
ENUM_ANCHORPOINT
ENUM_BASECORNER
ENUM_CHARTEVENT
ENUM_TRADE_RETURN_CODES
ERR_CHART_TEMPLATE_FAILED
ERR_HISTORY_WRONG_PROPERTY
ERR_MARKET_LASTTIME_UNKNOWN
ERR_WRONG_STRING_OBJECT
GlobalVariableSetTemp
indicator_color
indicator_label
indicator_level
indicator_style
indicator_width
MQL5_TRADECONTEXT_BUSY
MqlBookInfo
MqlDateTime
MqlParam
MqlRates
MqlTick
MqlTradeRequest
MqlTradeResult
OnBookEvent
OnCalculate
OnChartEvent
OnDeinit
OnInit
OnStart
OnTick
OnTimer
OnTrade
SYMBOL_TRADE_MODE_DISABLE
TERMINAL_EXPERTS_ENABLED
Trade

Maybe function must be black but 'indicator_', 'ENUM_' not.

 

Some reserved words were chahged:

Were

BARS_COUNT
BARS_FIRSTDATE
BARS_SERIES_FIRSTDATE
BARS_SYNCRONIZED

Now

SERIES_BARS_COUNT
SERIES_FIRSTDATE
SERIES_SERVER_FIRSTDATE
SERIES_TERMINAL_FIRSTDATE
SERIES_SYNCRONIZED

 

ENUM_ANCHORPOINT -> ENUM_ANCHOR_POINT

ENUM_BASECORNER -> ENUM_BASE_CORNER

ENUM_CHARTEVENT -> ENUM_CHART_EVENT

SYMBOL_TRADE_MODE_DISABLE -> SYMBOL_TRADE_MODE_DISABLED

GlobalVariableSetTemp was deleted

MQL5_TRADECONTEXT_BUSY was deleted

TERMINAL_EXPERTS_ENABLED was deleted

 
dudufx:

This keywords have no color (are black)


indicator_color
indicator_label
indicator_level
indicator_style
indicator_width


Try these

indicator_color2
indicator_label1
indicator_level5
indicator_style6
indicator_width8

 
dudufx:

This keywords have no color (are black)


ERR_CHART_TEMPLATE_FAILED
ERR_HISTORY_WRONG_PROPERTY
ERR_MARKET_LASTTIME_UNKNOWN
ERR_WRONG_STRING_OBJECT

We'll check it, thank you.

 
dudufx:

This keywords have no color (are black)


MqlBookInfo
MqlDateTime
MqlParam
MqlRates
MqlTick
MqlTradeRequest
MqlTradeResult
OnBookEvent
OnCalculate
OnChartEvent
OnDeinit
OnInit
OnStart
OnTick
OnTimer
OnTrade


It's OK. These words have not to highlighted.

Reason: