Bug report: Bars() - MT5 build 1995

To add comments, please log in or register
Romeu Bertho
5353
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):

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
5353
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!

To add comments, please log in or register