Errors, bugs, questions - page 2249

 
Artyom Trishkin:

Or is it just that someone doesn't read the help and uses the functions inappropriately? In particular, the wrong functions for the printout.

it is enough for me to see on the graph and not clutter up the log

 
AshimN:

it is enough for me to see on the graph and not clog up the log

How isprinting to the screen different from printing to the log? Do you print to the log with the wrong function, too? Is it convenient to eat soup with a hammer?

DoubleToString() with the required precision.

 
MQ-Demo server

Forum on trading, automated trading systems and trading strategies testing

Features of mql5 language, subtleties and tricks

fxsaber, 2018.08.01 12:43

IS      0       13:32:55.239    Trades  '11391209': accepted exchange buy 1.00 AFKS at market
DM      0       13:33:07.896    Trades  '11391209': deal #265475900 buy 1.00 AFKS at 9.095 done (based on order #284425784)
OD      0       13:33:07.898    Trades  '11391209': order #284425784 buy 1.00 / 1.00 AFKS at 9.095 done in 12757.608 ms

Please consider the reasons why the market order was executed for 12 seconds on the demo server? All data is in the log.

 
fxsaber:
MQ-Demo server

Please consider the reasons why on the demo server the market order was executed for 12 seconds? All the data is in the log.

You participated in the "FORTS Questions on Execution" thread.

 
prostotrader:

You participated in the "FORTS Enforcement Questions" thread.

I can't remember everything. In this case the developers can look at their demo server if they wish.

 
))
 
Здравствуйте все, подскажите почему на графике не отображаются открытые ордера,стопы и лимиты
 

Question:

We are working on a demo account, all demo account data is loaded into the terminal margin, spread, lots max min, etc.

During testing AccountInfoInteger(ACCOUNT_TRADE_MODE) returns that it is a demo account

and MQLInfoInteger(MQL_TESTER) returns that the program is running in Strategy Tester.

Why connect to a real account and launching the program in strategy tester, it returns that it is a demo account?

Logically, the Demo, Real, Competition are types of accounts, and the testing is the method of working with the program on the account.

So, AccountInfoInteger(ACCOUNT_TRADE_MODE) should return the Demo, Real, Competition account type in the Strategy Tester

Code reproducing the problem

   string value=NULL;
   ENUM_ACCOUNT_TRADE_MODE account_type=(ENUM_ACCOUNT_TRADE_MODE)AccountInfoInteger(ACCOUNT_TRADE_MODE);

   if(MQLInfoInteger(MQL_TESTER)) value+="TESTER  ";

   if(account_type == ACCOUNT_TRADE_MODE_DEMO)                       value += "DEMO";
   if(account_type == ACCOUNT_TRADE_MODE_CONTEST)                    value += "CONTEST";
   if(account_type == ACCOUNT_TRADE_MODE_REAL)                       value += "REAL";

   Comment(value);
 
Vladimir Pastushak:

Question:

We are working on a demo account, all demo account data is loaded into the terminal margin, spread, lots max min, etc.

During testing AccountInfoInteger(ACCOUNT_TRADE_MODE) returns that it is a demo account

and MQLInfoInteger(MQL_TESTER) returns that the program is running in Strategy Tester.

Why connect to a real account and launching the program in strategy tester, it returns that it is a demo account?

Logically, the Demo, Real, Competition are types of accounts, and the testing is the method of working with the program on the account.

So, AccountInfoInteger(ACCOUNT_TRADE_MODE) should return the Demo, Real, Competition account type in the Strategy Tester

Code reproducing the problem

Add login - what if it switches to another login?

   string value=NULL;
   ENUM_ACCOUNT_TRADE_MODE account_type=(ENUM_ACCOUNT_TRADE_MODE)AccountInfoInteger(ACCOUNT_TRADE_MODE);

   if(MQLInfoInteger(MQL_TESTER)) value+="TESTER  ";

   if(account_type == ACCOUNT_TRADE_MODE_DEMO)                       value += "DEMO";
   if(account_type == ACCOUNT_TRADE_MODE_CONTEST)                    value += "CONTEST";
   if(account_type == ACCOUNT_TRADE_MODE_REAL)                       value += "REAL";

   long login=AccountInfoInteger(ACCOUNT_LOGIN);
   value+=" "+IntegerToString(login);

   Comment(value);
 
Vladimir Karputov:

Add a login - what if it switches to another login?

same account

Reason: