1
votes

I noticed that there are sometimes more than one function that produce the same output (or similar). In this case isDemo() and AccountInfoInteger( ACCOUNT_TRADE_MODE )

But the question is are the functions checked the same way? Do they both check the same types of information to verify demo status?

They both may be able to tell me if the active trading account is a Demo account, so when would you use one function over the other?

Are there any other functions that check for a demo status or could be used to check for demo status in MetaTrader Terminal 4, that I haven't found?

1

1 Answers

0
votes

No,
rather do not expect other functions to deliver the same thing.

The observed duality came out from a process of re-forming the historical grounds of the MQL4 language into something newer and closer the MQL5 domain.

When to use the one and when to use the other? Not any easy answer for such dilemma. Guess the old code ought work for at least some time forth, the newer syntax of the New-MQL4 has a bit lower probability of becoming unsupported in the compiler-phase ( if compared to the "old-&-good"-MQL4 )