Download MetaTrader 5

BUG? ObjectsDeleteAll - wrong parameters count

To add comments, please log in or register
COSMOS4U - D. Vezeris & Co, L.P.
2221
Dimitrios Vezeris  

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!

Alain Verleyen
Moderator
33505
Alain Verleyen  
Update your MetaEditor version, this new ObjectsDeleteAll() version was introduced in June, after build 1150.
COSMOS4U - D. Vezeris & Co, L.P.
2221
Dimitrios Vezeris  
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?

Alain Verleyen
Moderator
33505
Alain Verleyen  
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.
To add comments, please log in or register