MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Checkup  IsDemo

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
bool IsDemo( )
Returns TRUE if the expert runs on a demo account, otherwise returns FALSE.
Sample:
  if(IsDemo()) Print("I work at a demo account");
  else Print("I work at a real account");