Terminal
- Fixed an error which prevented execution of MQL4 applications in terminals running in 32-bit Windows 10, build 1607.
- Fixed occasional incorrect display of the Search and Chat buttons.
- Fixed occasional duplicate welcome-emails delivered to the terminal when opening a demo account.
MQL4
- Added new 'void *' pointers to enable users to create abstract
collections of objects. A pointer to an object of any class can be saved
to this type of variable. It is recommended to use the operator
dynamic_cast<class name *>(void * pointer) in order to cast back.
If conversion is not possible, the result is NULL.
class CFoo { };
class CBar { };
void OnStart()
{
void *vptr[2];
vptr[0]=new CFoo();
vptr[1]=new CBar();
for(int i=0;i<ArraySize(vptr);i++)
{
if(dynamic_cast<CFoo *>(vptr[i])!=NULL)
Print("CFoo * object at index ",i);
if(dynamic_cast<CBar *>(vptr[i])!=NULL)
Print("CBar * object at index ",i);
}
CFoo *fptr=vptr[1];
}
- Added support for the operator [ ] for strings. The operator enables
users to get a symbol from a string by index. If the specified index is
outside the string, the result is 0.
string text="Hello";
ushort symb=text[0];
- The CopyXXX function that copies history and tick data has become faster.
- Fixed deletion of multiple graphical objects with the specified prefix
using the ObjectDeleteAll function. Before the update, the remaining
objects could be displayed in a wrong order after the execution of this
function.
- Fixed occasional incorrect order of graphical objects display after changing the timeframe.
Hosting
-
During terminal synchronization with the virtual server, charts without
Expert Advisors are ignored now, even if custom indicators are running
on these charts. If you need to migrate a custom indicator, run it on
the chart of an "empty" Expert Advisor that does not perform operations.
Such an Expert Advisor can be easily generated using the MQL4 Wizard in
MetaEditor by selecting "Expert Advisor: template". This update is to
ensure that indicators are migrated on purpose.
- You can
now synchronize Expert Advisors and custom indicators whose names
contain non-Latin characters (e.g. Cyrillic or Chinese characters).
Fixed errors reported in crash logs.
See the previous news, please: