Rewrite part of my EA / Reescrever parte de meu EA

MQL5 Uzmanlar

Şartname

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(186)
Projeler
205
26%
Arabuluculuk
12
25% / 58%
Süresi dolmuş
39
19%
Serbest
2
Geliştirici 2
Derecelendirme
(8)
Projeler
16
0%
Arabuluculuk
9
0% / 89%
Süresi dolmuş
8
50%
Serbest

Proje bilgisi

Bütçe
30+ USD