Errors, bugs, questions - page 102

 

gumgum:
Я так понял, что теперь можно поменять свой email в профиле? В поле E-mail теперь можно внести изменения, но они не сохраняются!

Not yet, but it will be available soon.

 
Well just wizards 312 build and then (5 minutes later) 313 build! :)
 

When a function is executed

double CalculateMarginRequoted(string symbol){
   double price=0.0;
   double margin=0.0;
//--- select lot size
   if(!SymbolInfoDouble(symbol,SYMBOL_ASK,price))                return(0.0);
   if(!OrderCalcMargin(ORDER_TYPE_BUY,symbol,1.0,price,margin)) {
      Print("Error: ", GetLastError());
      return(0.0);
   }
   return(margin);
}//CalculateMarginRequoted()

error 4014(System function not allowed to be called)

What should I do? I need to calculate the deposit for 1 lot in the indicator.

 
EvgeTrofi:

When a function is executed

error 4014(System function not allowed to be called)

What should I do? I need to calculate the deposit for 1 lot in the indicator.

I am not getting this message. Can you notify Service Desk and attach the full code for playback?
Общайтесь с разработчиками через Сервисдеск!
Общайтесь с разработчиками через Сервисдеск!
  • www.mql5.com
Ваше сообщение сразу станет доступно нашим отделам тестирования, технической поддержки и разработчикам торговой платформы.
 
Rosh:
I can't get this message to play. Can you inform Service Desk and attach the full code to play it?

Can you please look at this indicator, does it also show the margin?

The service desk is slow to respond. It's faster here :)

Files:
info.rar  5 kb
 
EvgeTrofi:

Do you also have this indicator showing margin?

The problem is that the OrderCalcMargin() function is included in the group of trading functions https://www.mql5.com/ru/docs/trading:

Trading Functions

A group of functions designed to manage trading activities.

Trading functions can be used in Expert Advisors and scripts. Trading functions can be called only if in the properties of the corresponding Expert Advisor or script the "Allow EA to trade" checkbox is enabled.

I suggest that for now you use the functions from the article Functions for money management in EAs to get the amount of margin required to open a position with a given volume.
Документация по MQL5: Торговые функции
Документация по MQL5: Торговые функции
  • www.mql5.com
Торговые функции - Документация по MQL5
 
TerminalInfoInteger(TERMINAL_CONNECTED)

The connection is broken and only after 30-40 seconds it starts to return false.

How do I know if there is or is not a connection at the moment?

 
gumgum:

Communication is cut off, and only after 30-40 seconds starts to return false.

How do you know if there is or is not a connection at the moment?

Do you simulate a connection failure yourself? How do you simulate network interruption?

Generally, the terminal constantly checks the connection to the server and if there is no connection, it detects a loss of connection within 15-20 seconds.

 

How to add "undo" "redo" buttons to the toolbar menu in the µl editor

 
alexvd:

Do you simulate a disconnection yourself? How do you do this?

Generally, the terminal constantly checks the connection to the server and, if there is no connection, detects a loss of connection within 15-20 seconds.

I cut the connection myself and disconnect the router.