Download MetaTrader 5
To add comments, please log in or register
What is MetaQuotes ID? Find that out from the article!
Shimarin
130
Shimarin 2010.09.21 07:06 

Current version, ObjectFind is not working.

In debug mode, it works fine. But in notmal mode, it returns bad result.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties - Documentation on MQL5
Files:
hasayama
605
hasayama 2010.09.21 11:04  
Shimarin:

Current version, ObjectFind is not working.

In debug mode, it works fine. But in notmal mode, it returns bad result.

 

ObjectFind returns int value. Try to use:

if ( ObjectFind( _Symbol, objName ) < 0 ) { /*CREATE*/ }
else { /*FOUND*/ }

 

Shimarin
130
Shimarin 2010.09.21 12:40  

Oh, yes you are right.

It's my misunderstandings.  Thanks. 

/
To add comments, please log in or register