BUG? ObjectsDeleteAll - wrong parameters count

 

Hello MQL5 community,

According to the ObjectsDeleteAll

int  ObjectsDeleteAll(
   long           chart_id,   // chart ID
   const string     prefix,   // prefix in object name
   int       sub_window=-1,   // window index
   int      object_type=-1    // object type
   );

when I can give a command such as:

ObjectsDeleteAll(0,label,0,OBJ_TREND);

should delete from chart=0, from indicator window=0, Trend Lines that have the prefix=label.

But the compiler returns the error wrong parameters count.

The MQL5 MetaEditor recognizes only 3 parameters version

int  ObjectsDeleteAll(
   long  chart_id,           // chart identifier
   int   sub_window=-1,      // window index
   int   type=-1             // object type
   );

and not the 4 parameters.

I'm using MetaEditor V5 build 1150 22 May 2015


Is MQL5 ObjectsDeleteAll documentation fake/buggy?
Is MQL5 MetaEditor outdated?


Looking forward for your responses!

 
Update your MetaEditor version, this new ObjectsDeleteAll() version was introduced in June, after build 1150.
 
Alain Verleyen:
Update your MetaEditor version, this new ObjectsDeleteAll() version was introduced in June, after build 1150.

The latest available version which I can find is Version 5 build 1150 on May 2015.
How can I get the newest version?

 
Dimitrios Vezeris:

The latest available version which I can find is Version 5 build 1150 on May 2015.
How can I get the newest version?

Download and install MT4, then copy and paste Metaeditor.exe to your MT5 folder.
Reason: