Errors, bugs, questions - page 3082

 

There is something wrong again in the last build of MT5 3036

2021.09.08 20:02:01.670 XXXXXXXXX invalid EX5 file (7)

 

MetaTrader 5 does not run on computer

Any suggestions on how to fix it?

Until today it worked fine

 
trifonovdima #:

MetaTrader 5 does not run on computer

Any suggestions on how to fix it?

Until today it worked fine

Try to add your terminal to antivirus exceptions. Also, uninstall antivirus completely.

 

build 2981 Win 10 x64

Why in indicator code:

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
{
//---
   const ENUM_TIMEFRAMES tf = PERIOD_MN1;
   int count = iBars(_Symbol, tf);
   MqlRates rates[];
   int res_copy = CopyRates(_Symbol, tf, 0, count + 100000000, rates);
   Print("count = ", count, " , res_copy = ", res_copy,
         " , TERMINAL_MAXBARS = ", TerminalInfoInteger(TERMINAL_MAXBARS));
//--- return value of prev_calculated for next call
         return(rates_total);
}

I don't get aCopyRates result equal to -1 , the help says that if the requested interval is outside the history on the server or more than TERMINAL_MAXBARS , I should get a result = -1

log:

2021.09.08 04:09:41.462 1 (EURUSD,H1) count = 609 , res_copy = 609 , TERMINAL_MAXBARS = 100000

2021.09.08 04:09:41.562 1 (EURUSD,H1) count = 609 , res_copy = 609 , TERMINAL_MAXBARS = 100000

2021.09.08 04:09:42.461 1 (EURUSD,H1) count = 609 , res_copy = 609 , TERMINAL_MAXBARS = 100000

.....

 
what is this Common error?
 
Igor Makanu #:

build 2981 Win 10 x64

Why in indicator code:

I don't get aCopyRates result equal to -1 , the help says that if the requested interval is outside the history on the server or more than TERMINAL_MAXBARS , I should get a result = -1

log:

Because you misunderstand the phrase from the documentation.

Everything works correctly.

 

the terminal prints out messages in abracadabra. English is fine. The code has the use of wingdings font.

Build 1340. MT4.

9FC:5=3HI7EJ\ That's instead of yzukengshhhh\.

DK20?@>;46M instead of fwaprolje

OGA<8BL1N. instead of yachsmitbyu.

 
Valeriy Yastremskiy #:

the terminal prints out messages in abracadabra. English is fine. The code has the use of wingdings font.

Build 1340. MT4.

9FC:5=3HI7EJ\ That's instead of yzukengshhhh\.

DK20?@>;46M instead of fvaprolje

OGA<8BL1N. instead of yachsmitbyu.

Please update to the latest beta 1345 from the MetaQuotes-Demo server (server demo.metaquotes.net:443).

 
Renat Fatkhullin #:

Upgrade to the latest beta 1345 from the MetaQuotes-Demo server (server demo.metaquotes.net:443), please.

corrected)

thanks, it worked, the font is correct) late evening brains ....




 
How do you make the code dependent on the compiler version?
#ifdef (__MQL5BUILD__ <= 2595)
  void f ( int &[][2] ) {}
#else
  void f ( int &[][] ) {}
#endif
Something like this is needed.