Errors, bugs, questions - page 1759

 

I have noticed an interesting feature of the MT5 terminal. If several windows of the same tool are open, when you press the "refresh" button of one window, ALL windows of this tool are refreshed. Is it supposed to be like this?

Added:

Now, in a closed market with tick indicators on other charts of this instrument (Si-12.16) leads to creepy blank chart hangs!

 

Here's a question... is it normal that when you right-click on a file in the method editor navigator - MQL Storage - delete, it physically deletes the file from the system?
How should I say this.... unexpectedly! So there is no way to get rid of the storage at all?

ME build 1455 x64.

 
Alexey Navoykov:


Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

Renat Fatkhullin, 2016.11.04 16:11

It's time to close this thread - and make separate threads for each question.

Please do not write here any more - it is categorically ineffective.

 

Why did they make mql5 majik only positive?

i love negative majiks, man (((

 
Alexandr Bryzgalov:

Why did they make mql5 majik only positive?

i love negative majiks, man (((

and left int() OrdersTotal()

well, you're right, majicks cannot be negative, but the number of orders can be negative

 
Alexandr Bryzgalov:

and OrdersTotal() left int

Well, right, mages cannot be negative, but the number of orders can be negative

It's a real problem with majics... I don't know who was guided by what when they were preparing them. It feels like different people from different organisations...
 

How do I know if my account is a hedging account or a netting account?

I can't get AccountInfoInteger right

 
Alexandr Bryzgalov:

How do I know if my account is a hedging account or a netting account?

I can't use AccountInfoInteger correctly

   ENUM_ACCOUNT_MARGIN_MODE margin_mode=(ENUM_ACCOUNT_MARGIN_MODE)AccountInfoInteger(ACCOUNT_MARGIN_MODE);
//---
   if(margin_mode==ACCOUNT_MARGIN_MODE_RETAIL_HEDGING)
     {

     }
   else
     {

     }
 
Vladimir Karputov:
   ENUM_ACCOUNT_MARGIN_MODE margin_mode=(ENUM_ACCOUNT_MARGIN_MODE)AccountInfoInteger(ACCOUNT_MARGIN_MODE);
//---
   if(margin_mode==ACCOUNT_MARGIN_MODE_RETAIL_HEDGING)
     {

     }
   else
     {

     }

here it is ACCOUNT_MARGIN_MODE

I almost lost my mind )

 
Alexandr Bryzgalov:

here it is ACCOUNT_MARGIN_MODE

I almost lost my mind )

Taken from theCPositionInfo class:

bool CPositionInfo::SelectByIndex(const int index)
Reason: