Wishes for the work of the mql5.com forum - page 4

 
Integer:

In 10 years on minutes, one buffer is calculated to take up 28 mb.

In the five-minute periods, 5 mb.

On fifteen minutes, 2 mb.

Is there a problem?

It's not just the size of the memory, but the speed of accessing it, which is multilevel and is related to the size of the processor cache. Accordingly, the speed will be different depending on where the data and code are located.
 

Andrei01:
А в чем причина?

Single-threaded code execution.

Also, the reason can be attributed to the addition of additional checks, which are automatically made in the indicator using a simple variable prev_calculated, different behavior of global variables, visualization capabilities.

Have the developers deliberately put brakes on complex calculations in the Expert Advisor?

Why immediately suspect someone of criminality? The developers, by the way, provided an opportunity to useOpenCL, which significantly speeds up execution.
Документация по MQL5: Основы языка / Переменные / Глобальные переменные
Документация по MQL5: Основы языка / Переменные / Глобальные переменные
  • www.mql5.com
Основы языка / Переменные / Глобальные переменные - Документация по MQL5
 

All the favourites are gone.

All the subscription ticks in the profile are gone.

Maybe it's neater to update the site somehow? It's not the first day we've used it...

MQL5.community - Памятка пользователя
MQL5.community - Памятка пользователя
  • 2010.02.23
  • MetaQuotes Software Corp.
  • www.mql5.com
Вы недавно зарегистрировались и у вас возникли вопросы: Как вставить картинку в сообщение на форуме, как красиво оформить исходный код MQL5, где находятся ваши Личные сообщения? В этой статье мы подготовили для вас несколько практических советов, которые помогут быстрее освоиться на сайте MQL5.community и позволят в полной мере воспользоваться доступными функциональными возможностями.
 
komposter:

All the favourites are gone.

All the subscription ticks in the profile are gone.

Maybe it's neater to update the site somehow? It's not the first day we've used it...

I've been doing fine this morning. IE9, x64
 
Lizar:

1. single-threaded code execution.

2. also to the reason we can add additional checks, which in an indicator are done automatically by simple variable prev_calculated, different behaviour of global variables, visualisation possibilities.

1. So indicators allow multi-threaded calculations?

2) What is the problem with making these checks in an Expert Advisor?

 
papaklass:

If complex calculations kill the expert, those calculations will also kill the indicators. This is not an argument. The time saving is in the multithreading of indicators, but it is a waste of memory. The Expert Advisor works in a sequential thread. And here we have some doubts that the multi-threading of indicators will give a sufficient gain in time in comparison with in-expert calculations. But in case of calculations inside the Expert Advisor we will save memory. That is significant when EAs participate in the Championship. The Organizers paid much attention to your Expert Advisor at the previous Championship because it consumed much memory. That is why it was pulling all those checks and unnecessary history. (iCustom();)

No. These complex calculations in the Expert Advisor can be done very simply in an indicator.
 
Andrei01:

1. so indicators allow multi-threaded computing?

2. what is the problem with doing these checks in EA?

The clownery continues! pAtAmUshT the Expert Advisor is one thread, and each indicator can be in its own thread if there are enough cores.

Show us how easy it is for you to make multiple threads in EA?

 
papaklass:
Can you give me an example of code?
There is an iDragon in the codebase on iDragon 4. Try dancing the same in the EA to make it work just as fast.
 
Integer:

Show us how easy it is for you to make multiple threads in an EA?

Would using a DLL not help?