Errors, bugs, questions - page 3023

 
A100:

Unfortunately, this has always been the case

and probably will be for a long time.

it would be logical for the terminal to clean the favourites folder of non-existent programs on startup.
or a message like "Hey programmer, don't be sad, you'd better skip the chard! The file is missing!".

and now the same thing happens that instead of running Paint.exe the system runs format c

 

optimize=0

Doesn't work - either 0 or 1 - compilation time is the same. Previously (last year) everything compiled fast enough, now it takes a very long time

 
A100:

Doesn't work - either 0 or 1 - compile time is the same. Earlier (last year) everything compiled fast enough, now it takes a very long time

use mqh feature. mqh compilation does not use optimizations because they are not needed (no generation of executable code)

 
Andrei Trukhanovich:

Use the mqh feature. When compiling mqh, optimize=0 is not used because it is not needed (no generation of executable code).

I found a simpler way to open an unneeded project and uncheck the optimization - at once 5 times faster, but whoprevented optimize=0 is unclear and from the command line fast compilation of libraries does not work either.

 

More than a dozen MT5 terminals are running. The logical cores are not evenly loaded.

  • How many cores can one terminal use?
  • Does MT5 select cores for its operation itself or the OS?
  • Is it possible to evenly distribute the work of terminals among cores?
 

How do I get the value of this field in MT5 that I can see in MT4?


Share the function that always produces the correct margin value. OrderCalcMargin lies, unfortunately. And this option is not a panacea.

 
fxsaber:

Share a function that always produces the correct margin value. OrderCalcMargin lies, unfortunately. And this option is not a panacea.

I ask the Developers to understand the incorrect work of OrderCalcMargin!


Please open a demo account on the serverForexTimeFXTM-Demo01 from the terminal and run this script on EURSEK.

// Выводит количество маржи для открытия Buy-позиции на 1 лот.
void OnStart()
{
  double Margin;
  
  if (OrderCalcMargin(ORDER_TYPE_BUY, _Symbol, 1, SymbolInfoDouble(_Symbol, SYMBOL_ASK), Margin))
    Alert(Margin);
}


We get this mismatch.

Absolutely all of the symbol/account settings that are available via MQL, I checked. Everything is correct. I have a feeling that there is a setting on broker's side that is not available in Terminal. Probably this one.

There are a lot of similar symbols. How to trade correctly is unclear. Please comment on it since the error is critical for the trading terminal. It is easy to run into a MarginCall on the spot.

 

The screenshot shows that, unlike MT4, on MT5 it is not possible to recognise the leverage/margin of the symbol.


 
fxsaber:

The screenshot shows that, unlike MT4, there is no way to know the leverage/margin of a symbol on MT5.

SymbolInfoMarginRate ? And count the margin by hand, something like

if(IsSymbForexCFD)
    Result=GetLastPrice(SymbName)/GetForexSymbLeverage(SymbName)*GetSymbolTickValue(SymbName)/GetSymbolTickSize(SymbName);
Reason: