Errors, bugs, questions - page 801

 
ilunga:

Multicurrency test, I need to open trades in several instruments with one work instrument. This is actually a reduced version to highlight the problem area

By the way, all but the first pending order is placed

Have you tried to select all of the necessary currencies in the initialization block using SymbolSelect?
 
Urain:

Also, the developer's icon lights up if you've been to the application profile, so we stare at each other :)

The developer sees that the icon is lit and goes in and you see that the developer went in and also go in to see if she looked back to see if I looked back...

IMHO if there have been changes the icon should be large, if just visited small.

As far as I understand there is no change if you "just look around". There is a change if the developers are communicating with each other (privately) on the application.

True, sometimes it happens that the message developers become available to ordinary mortals (by mistake), I had a couple of such cases.

 
alexvd:
Check and report the build number of client terminal and testing agents.

I downloaded the build recently, very recent - 687. Agents only use local, remote and cloud - disconnected. Although with remote and cloud connected and local disconnected, it doesn't work either!

Don't know what to do. Sov is written, testing and optimization is not possible...

Can you advise how to possibly solve this problem - screenshots attached.

 

In one of the screenshots there is a menu - Use -MQL5Cloud Network.

Log in, and have a balance of more than 1 credit.

Распределенные вычисления в сети MQL5 Cloud Network
Распределенные вычисления в сети MQL5 Cloud Network
  • cloud.mql5.com
Заработать деньги, продавая мощности своего компьютера для сети распределенных вычислений MQL5 Cloud Network
 
Interesting:
Have you tried selecting all required currencies in the initialisation block using SymbolSelect?

Didn't help, the same thing

If sl = tp = 0, still error 10016 (wrong stops).

Документация по MQL5: Стандартные константы, перечисления и структуры / Коды ошибок и предупреждений / Коды возврата торгового сервера
Документация по MQL5: Стандартные константы, перечисления и структуры / Коды ошибок и предупреждений / Коды возврата торгового сервера
  • www.mql5.com
Стандартные константы, перечисления и структуры / Коды ошибок и предупреждений / Коды возврата торгового сервера - Документация по MQL5
 
ilunga:

did not help, same thing.

If I put sl = tp = 0, error 10016 (wrong stops) is still present.

Then it must be this part of the code, that's what we need to deal with

   request.action = TRADE_ACTION_PENDING;
   request.magic  = 0;
   request.symbol = symbol;
   request.volume = 1;
   request.price  = bar_info[1] + 500*_Point;
   request.sl     = 1.0;
   request.tp     = bar_info[1] + 500*_Point + 1000*_Point;
   request.deviation = 10;
   request.type   = ORDER_TYPE_BUY_STOP; 
   request.type_filling = ORDER_FILLING_FOK;
The good thing is you need to analyze the full code, not the one cut out for the example.
 
Interesting:

Then it must be this part of the code, that's what we need to deal with.

The good thing is to analyze the full code, not the one cut out for the example.

But the error still exists in the stripped down version.


To be honest, I don't quite understand how error 10016 can occur if there are no stops

Документация по MQL5: Стандартные константы, перечисления и структуры / Коды ошибок и предупреждений / Коды возврата торгового сервера
Документация по MQL5: Стандартные константы, перечисления и структуры / Коды ошибок и предупреждений / Коды возврата торгового сервера
  • www.mql5.com
Стандартные константы, перечисления и структуры / Коды ошибок и предупреждений / Коды возврата торгового сервера - Документация по MQL5
 
ilunga:

But the error still exists in the truncated one.


To be honest, I don't quite understand how error 10016 can be in the absence of stops

When prompted, print your print of the current price of your desired pair, order price, stop, take.
 
ilunga:

But the error still exists in the truncated one.

To be honest, I don't quite understand how error 10016 can be in the absence of stops

Why not try using

#include <Trade\Trade.mqh>

bool              BuyStop(const double volume,const double price,const string symbol=NULL,const double sl=0.0,const double tp=0.0,
                             const ENUM_ORDER_TYPE_TIME type_time=ORDER_TIME_GTC,const datetime expiration=0,const string comment="");
 
ilunga:

But the error still exists in the truncated one.


To be honest, I don't quite understand how error 10016 can be in case of no stops

What do you mean by "how can there be an error 10016 if there are no stops". Are there zero values specified for them or just no line where they are prescribed?

Try this

   MqlTradeRequest request={0};