"dummy" account number in Strategy Tester?

 

Hi MetaQuotes,

As one of the verification steps of my EA, I am checking the account number - whereas it works properly in normal or debug mode, in the tester I can see in the EA logs that account number is not the real one:

2012.05.06 15:34:33 Core 1 2012.05.01 00:00:00   [LogMan]   Account: Demo trading account 12345 @ MetaQuotes Software Corp..

MetaQuotes - is it a feature or a bug? ;) 

 
It is feature. As designed.

 

Hi stringo,

Thanks for the reply. Just 2 more short questions:

1) Why did you decide to show dummy account number in tester? 

2) Are there any other ACCOUNT/TERMINAL/MQL5/SYMBOL properties that show different results in tester and in real operation? (just to avoid similar topics in the future)

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Account Properties - Documentation on MQL5
 

You can use launching MetaTrader 5 from command line with Configuration File:

[Tester]

Settings of the testing that is launched when the terminal is started:

  • Expert — name of file of an Expert Advisor that should be started for testing (optimization) when the terminal is started. If this parameter is absent the testing will not be launched.
  • ExpertParameters — name of a file containing input parameters of an Expert Advisor. This file must be in the \tester folder of the terminal installation directory.
  • Symbol — name of a symbol that will be used as a main symbol of testing. If this parameter is absent, the last selected symbols in the tester will be used.
  • Period — period of a chart for testing (any period from 21 available in the terminal). If this parameter is absent, the H1 period will be used.
  • Login — using this parameter, you can pass an account number that is allegedly used for testing to an Expert Advisor. The necessity of this parameter is built into an Expert Advisor in its source MQL5 code (using the AccountInfoInteger function).
  • Modelmode of tick generation (0 — "Every tick", 1 — "1 minute OHLC", 2 — "Open prices only", 3 — "Math calculations"). If this parameter is not specified, the mode of generation of every tick will be used.
  • ExecutionMode — the mode of trading emulated by the Strategy Tester (0 — common mode, 1 — random delay of execution of trade orders is enabled).
 
Rosh:

You can use launching MetaTrader 5 from command line with Configuration File:


Hi Rosh,

Thanks for the information.