Too high value

 

Is it possible to use for calculating or checking value bigger  as EMPTY_VALUE ?

For example:

if(accountNumber==AccountNumber())  Alert("Good Account");

where    accountNumber bigger as  EMPTY_VALUE .

 

Your topic has been moved to the section: MQL4 e MetaTrader 4 — In the future, please consider which section is most appropriate for your query.

The return value for AccountNumber() is an int. The maximum value for an int is INT_MAX

INT_MAX

Maximal value, which can be represented by int type

2147483647

Even thought they might have the same value, don't use the constant EMPTY_VALUE which has a different meaning and use:

EMPTY_VALUE

Empty value in an indicator buffer. Default custom indicator empty value

2147483647 (0x7FFFFFFF)

AccountNumber - Account Information - MQL4 Reference
AccountNumber - Account Information - MQL4 Reference
  • docs.mql4.com
AccountNumber - Account Information - MQL4 Reference
 
Thanks