Errors, bugs, questions - page 1229

 

Mql Editor

The compiler behaves naturally, but the editor shines a light on closed fields. It's the same with classes, by the way.

 
Renat:

The official build is now 1010 and 989 was a beta.

Please update and try again.

Upgraded, tried it... Everything is the same.
What worked on 975 from Aug 1, 2014 doesn't work on 1010 from Oct 31, 2014 :-(
 
crOss:
Upgraded, tried it... All the same.
What worked on 975 from August 1, 2014 doesn't work on 1010 from October 31, 2014 :-(
Is the problem localised? So you already know at which code section the problem occurs?
 
crOss:
Upgraded, tried it... Everything is the same.
What worked on 975 of August 1, 2014 does not work on 1010 of October 31, 2014 :-(

Give a more technical and detailed explanation, please.

The "doesn't work" option doesn't explain the point in any way.

 
Renat:

Give a more technical and detailed explanation, please.

The "doesn't work" option does not explain the point in any way.

Take any Expert Advisor (from MetaQuotes examples), run it under build 975 on a certain period and with the same parameters,
get the results, i.e. yield curve chart and table of deals.


Now run the same Expert Advisor under build 1010 on the same period and with the same parameters, get completely different results...

P.S. Metatester is 32 bit.

 
crOss:

...

P.S. The metatester is 32-bit

Turns out it's about the results in the strategy tester.

We'll look into it, thanks

 

The FileFlush function does not work.

This is the test code:

void OnStart()
{
  int h= FileOpen("TestFile.txt", FILE_CSV|FILE_WRITE|FILE_SHARE_READ);
  if (h==INVALID_HANDLE) { Alert("Ошибка открытия файла");  return; }
  Print("Start writing file");
  int starttime= TimeLocal();  
  int flushtime= starttime;

  while(TimeLocal()-starttime < 30 && !IsStopped())
  {
    FileWrite(h, "String");
    if (TimeLocal()-flushtime >= 5) { FileFlush(h);  Print("Flush file");  flushtime=TimeLocal(); }
    Sleep(100);
  }
  Print("Finish writing file"); 
  FileClose(h);
}

While the script is running, I'm watching the file. Its size is always zero. Only when the code finishes, data is dumped to the file. In other words, FileFlush doesn't do its job.

 

can't install any indicator from the marketplace says installation failed please help

 
mader:

I can't install any indicator from the Market, it says installation failed.

Before downloading programs from the Market via the trading terminal, did you authorize in the terminal using your MQL5 account (the one you are registered with on this website)?

Do you have your MQL5 account displayed in the "Market" tab of your trading terminal?

If not, you need to authorize yourself.

You can do it in the same place in the "Market" tab of the MT5 and MT4 trading terminal, or through the menu: "Tools" -> "Options" -> "Community".

 
I have already installed the indicators but after trying to install the demo version of the indicator I cannot install any more
Reason: