Bug report: Bars() - MT5 build 1995

 

Hello,

I've found a bug with Bars function, it worked great until build 1978.

Description: Bars function call hangs on a newly created custom symbol or empty data symbol.

Bug started from build 1983 and later.

How to reproduce: Open a random chart and run the following piece of code (script):

void OnStart()
  {
//---
   string symbol="barsTest";
   CustomSymbolCreate(symbol);
   while(!SymbolSelect(symbol,true));
   Print("Checking bars...");
   int bars=Bars(symbol,PERIOD_M1);
   Print(bars);
  }

You will need to forcibly remove the script from the chart because bars never return an integer.

Best regards,

Romeu Bertho.

 
Romeu Bertho:

Hello,

I've found a bug with Bars function, it worked great until build 1978.

Description: Bars function call hangs on a newly created custom symbol or empty data symbol.

Bug started from build 1983 and later.

How to reproduce: Open a random chart and run the following piece of code (script):

You will need to forcibly remove the script from the chart because bars never return an integer.

Best regards,

Romeu Bertho.

Build 1997 fixed this particular problem for EAs and scripts.

Thank you!

 

Hello,

I am using official customized build 2085 that my brokerage provided for me.

Bar function is ok for newly created custom symbols, but it doesn't return when is called for symbols created by my brokerage with empty data!!!

Thanks.

Reason: