Переписать оч простой индикатор с Pine на MQL5

MQL5 Indicateurs

Tâche terminée

Temps d'exécution 2 jours

Spécifications

Есть индикатор на трейдингвью KDJ от ll21LAMBOS21

Код pine предоставляю, но его можно найти на трейдингвью. Мне нужно его один в один конвертировать MQL5



study("KDJ", shorttitle="KDJ")

ilong = input(9, title="period")

isig = input(3, title="signal")


bcwsma(s,l,m) => 

    _s = s

    _l = l

    _m = m

    _bcwsma = (_m*_s+(_l-_m)*nz(_bcwsma[1]))/_l

    _bcwsma

    

c = close

h = highest(high, ilong)

l = lowest(low,ilong)

RSV = 100*((c-l)/(h-l))

pK = bcwsma(RSV, isig, 1)

pD = bcwsma(pK, isig, 1)

pJ = 3 * pK-2 * pD


plot(pK, color= #1E88E5,transp=0)

plot(pD, color=#FF6F00,transp=0)

plot(pJ, color=black,transp=0)

bgcolor(pJ>pD? green : red, transp=75)

h0 = hline(80)

h1 = hline(20)

Répondu

1
Développeur 1
Évaluation
(268)
Projets
601
34%
Arbitrage
64
20% / 58%
En retard
147
24%
Travail
Publié : 1 article, 22 codes
2
Développeur 2
Évaluation
(337)
Projets
624
38%
Arbitrage
40
23% / 65%
En retard
93
15%
Gratuit
Publié : 4 articles, 19 codes
3
Développeur 3
Évaluation
(10)
Projets
13
8%
Arbitrage
3
67% / 33%
En retard
0
Gratuit
4
Développeur 4
Évaluation
(251)
Projets
461
26%
Arbitrage
139
20% / 60%
En retard
100
22%
Travail
5
Développeur 5
Évaluation
(589)
Projets
1069
50%
Arbitrage
39
28% / 41%
En retard
49
5%
Gratuit
Publié : 1 article, 8 codes

Informations sur le projet

Budget
30+ USD
Délais
de 1 à 3 jour(s)