Account Functions Undeclared in Build 4885

 
In MT5 Build 4885 (28 Feb 2025), fresh install from MetaQuotes, manually typed scripts fail with 'undeclared identifier' for AccountEquity(), AccountBalance(), etc. AccountInfoDouble(ACCOUNT_EQUITY) works. See attached tests.
 

Perhaps you should read the manual, or press F1 in the editor.
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

There are no such functions AccountEquity() or AccountBalance() in MT5.

 
William Roeder #:

Perhaps you should read the manual, or press F1 in the editor.
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

There are no such functions AccountEquity() or AccountBalance() in MT5.

The reply’s rudeness aside, it doesn’t address IsTesting() directly and focuses on unrelated functions we’re not using here. It’s more a general “RTFM” jab than a solution.  I’ll refine the question to: “Why does MetaEditor flag IsTesting() as undeclared in a fresh install of MQL5 EA?”

I am trying to learn to code and would appreciate constructive assistance, I did not expect this kind of reply from a moderator.

 
Wayne Ovenstone #:

The reply’s rudeness aside, it doesn’t address IsTesting() directly and focuses on unrelated functions we’re not using here. It’s more a general “RTFM” jab than a solution.  I’ll refine the question to: “Why does MetaEditor flag IsTesting() as undeclared in a fresh install of MQL5 EA?”

I am trying to learn to code and would appreciate constructive assistance, I did not expect this kind of reply from a moderator.

If you read William Roeder reply carefully, you will understand IsTesting() function and the ones he mentioned are not available in MT5. They are for MT4. No one is coming to help you here. Your best option is to consult the manual to know what's available.