Rewrite part of my EA / Reescrever parte de meu EA

MQL5 Эксперты

Техническое задание

There are a part of my EA that make what it should do, but do in a complicated way.
I want someone to rewrite this part so I understand what is on it. Here's a preview :

if (iBars(NULL, 0)<(count+1)*10) break;
      if (CopyBuffer(hrsi, 0, count*10+1, 10, tr)<10) return (-2);
      ArrayResize(rs, ArraySize(rs)+10);
      for (int i = 0; i < 10; i ++)
      {
        rs[i+count*10] = tr[10-i-1];
        if (rs[i+count*10]<=RsiBuyResetLevel) { lastIndex = i+count*10; break; }
      }
      count ++;
      if (lastIndex!=-1) break;
This analyzes the previous candle to find a RSI value out of "rsibuyresetlevel". But it's easy to identify that the code isn't clear.
If there's interest on that, let's discuss on chat. Thanks.

---------------------
Meu EA está com um trecho mal escrito, confuso, mas está funcionando exatamente como deveria, o único problema é que não consigo entender como ele funciona exatamente.
Gostaria de alguém disposto a entender um trecho específico dele e reescrever de forma simples e funcional.
Qualquer dúvida podemos conversar no chat. Obrigado

Откликнулись

1
Разработчик 1
Оценка
(186)
Проекты
205
26%
Арбитраж
12
25% / 58%
Просрочено
39
19%
Свободен
2
Разработчик 2
Оценка
(8)
Проекты
16
0%
Арбитраж
9
0% / 89%
Просрочено
8
50%
Свободен

Информация о проекте

Бюджет
30+ USD