Determining whether MT4 account is demo or live

 

Hello,

I 'm programming indicators and EAs and have a general question.

How could I tell in code, if the Indicator EA is applied to a demo or live account? Is there some kind of standard for accountr numbers to determine this. I'm already can retrive the acount number and hopefully need some kind of pattern schema to determine the type of account.

Than you

Steve

 

Straight from the documentation:

 if(IsDemo()) Print("I work at a demo account");
 else Print("I work at a real account");

Reason: