Errors, bugs, questions - page 2630

 
Slava:

Check access to the hcc files. Check that no one is reading these files at this time.

32 - The process cannot access the file because it is being used by another process.

5 - Access is denied.


How much free disk space do you have?

What is the terminal limit on the maximum number of bars on the chart?


Thank you for your answer.

  • 0. I have DRWEB antivirus, then I've turned it off and tried
  • There is also Synology sync - turned it off, same thing
  • There is also GoodSync - also disconnected
  • 1. I have set different number of bars.
  • 2. Free space 503 GB out of 1.81 Tb (7200 WD RED )
  • Windows 7 64 system on SSD (300 GB free from 500)
  • 3. above errors

32 - The process cannot access the file because it is being used by another process.

5 - Access is denied.

Happened only once, then I described above that the problem is only with D1 and W1 other TFs are functioning fine.


But this is most likely because the 2019 hcc file cannot be loaded (because MASHKA 100 is being used) No, I changed periods, all the same



Tried again, displaying the data on the dashboard for clarity.

Counted everything except W1 - and that's it. It hangs. (does not depend on Expert Advisor, I checked)


It is hanging at the moment of CopyBuffer - although if the data is not available EA simply receives 0 and continues working, but in the current case - it just does not react to chart events and does not print anything to the log. There are no cycles.


Then, just reboot terminal and everything is ok:


Everything. ! This pair is flooded with history.




After reloading the terminal all pairs, for which I gathered history - work without freezes.



If I change the period in all indicators to 1 or 2 (2 weeks), then everything is OK on a new pair.

As soon as the period reaches the previous year's history, that's it. It hangs for ever again - I have reloaded the terminal, everything is OK.


If I stop the Expert Advisor (unload it from the chart), it hangs and logs all the prints that are hanging after the CopyBuffer.


I.e. code: and Print that hung.

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit(void)
  {
//--- secceed
   return(INIT_SUCCEEDED);
  }
int h_ma1array=INVALID_HANDLE;
double ma1_buffer[];
//+------------------------------------------------------------------+
//| Expert new tick handling function                                |
//+------------------------------------------------------------------+
void OnTick(void)
  {
  for(int i=0;i<10;i++)
    {
     
   Print("==========================   "+i);
   h_ma1array=iMA(Symbol(),PERIOD_D1,100,0,0,0);
   Print("h_ma1array="+h_ma1array);
   if(h_ma1array==INVALID_HANDLE)
     {
      Print(" INVALID_HANDLE h_ma1array "+h_ma1array);
      h_ma1array=iMA(Symbol(),PERIOD_D1,100,0,0,0);
      return;
     }
   else
     {
     int buffers=0;
      if(buffers=CopyBuffer(h_ma1array,0,0,2,ma1_buffer)<2)
        {
        


























// Этот принт уже не выводится.......
         Print(__LINE__+" return "+" buffers="+buffers);       return;         }       if(!ArraySetAsSeries(ma1_buffer,true))         {          Print(__LINE__+" return");       return;         }      }    Print("ma1_buffer[1]="+ma1_buffer[1]+" ma1_buffer[0]="+ma1_buffer[0]);    }   } //+------------------------------------------------------------------+



In the tester, in any case it works fine and fast:




Although the number of files is the same:

this is in real life:


This is in the tester




This error didn't happen in 2019, at least at the end of 2019.



Deleted all history - put on new EURUSD pair - no history - ran EA, it started loading data - hung up - history downloaded all the way back to 1999 - EA hung up - all ok.


This probably happens with pairs for which there is no history beyond 2019.... But the Expert Advisor tries to run the CopyBuffer indicator with a period, which is further than the history. Therefore, it hangs.

Although it's strange that after a while - and restarting the terminal, everything hangs up.

Thoughts aloud....

 
Thanks for the reply, I haven't heard anything back for a month, what I need to do to fix the best connection,
Files:
 
Vladislav Andruschenko:


Thank you for your reply.

  • 0. I have DRWEB antivirus , then I turned it off and tried
  • There is also Synology sync - turned it off, same thing
  • There is also GoodSync - also disconnected
  • 1. I have set different number of bars.
  • 2. Free space 503 GB out of 1.81 Tb (7200 WD RED )
  • Windows 7 64 system on SSD (300 GB free from 500)
  • 3. above errors

32 - The process cannot access the file because it is being used by another process.

5 - Access is denied.

Happened only once, then I described above that the problem is only with D1 and W1 other TFs are functioning fine.

But this is most likely because the 2019 hcc file cannot be loaded (because MASHKA 100 is being used) No, I changed periods, all the same

I wrote about this a year ago, but no one took it into account ... Here https://www.mql5.com/ru/forum/291786

Получение истории торговых инструментов.
Получение истории торговых инструментов.
  • 2018.11.25
  • www.mql5.com
Столкнулся с проблемой получения исторических данных по торговым инструментам, при обращении к некоторым символам программа (советник) наглухо зави...
 
Vladimir Pastushak:

I wrote about it a year ago, but no one took it into account ... Here https://www.mql5.com/ru/forum/291786

I read it.
But here's the funny thing. At first I didn't know it was hanging at all. I.e. I didn't use the history check function. And it hangs only on high TFs and after the copybuffer function.
I.e. new year started and it started to hang.
Thank you I will take it into account and will wait for a solution or a message to search
 
Good afternoon, can you tell me how to start a blog here? I only have buttons, publish an article or start a forum topic!
 
ProfitGuru:
Good afternoon, can you tell me how to start a blog here? I only have buttons, publish an article or start a forum topic!

The green button on the right is "Add new post"

Блоги трейдеров и аналитика финансовых рынков
Блоги трейдеров и аналитика финансовых рынков
  • www.mql5.com
Чем отличаются наборы настроек Version1 и Version2 ? Использовались разные подходы к оптимизации. Version2 показывает меньшую прибыль на истории, но должен быть более универсальным и устойчивым на новых данных... Чистая прибыль корпорации Microsoft за первое полугодие 2019-2020 финансового года выросла на 29,5% в годовом выражении, достигнув...
 
is it normal that the pairs on the MQ server have SYMBOL_MARGIN_MAINTENANCE and SYMBOL_MARGIN_INITIAL both zero? how to calculate the maximum possible lot without them?
 
Igor Zakharov:
is it normal that the pairs on the MQ server have SYMBOL_MARGIN_MAINTENANCE and SYMBOL_MARGIN_INITIAL both zero? how to calculate the maximum possible lot without them?

This is for exchange traded instruments. Use OrderCalcMargin

 
Artyom Trishkin:

There's a green "Add new post" button on the right

What if there isn't one?

The picture doesn't load here, so I uploaded it to the hoster - ***

 
ProfitGuru:

What if there isn't one?

The picture doesn't load here, so I uploaded it to a hosting service - ***.

Third party links are removed. You don't have permission to put a picture in the text of a post yet, you can only attach a picture so far.

First create a new postFirst we create a new post, then attach the fileattach file