Rewrite part of my EA / Reescrever parte de meu EA

MQL5 Experten

Spezifikation

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

Bewerbungen

1
Entwickler 1
Bewertung
(186)
Projekte
205
26%
Schlichtung
12
25% / 58%
Frist nicht eingehalten
39
19%
Frei
2
Entwickler 2
Bewertung
(8)
Projekte
16
0%
Schlichtung
9
0% / 89%
Frist nicht eingehalten
8
50%
Frei

Projektdetails

Budget
30+ USD