Job finished
Execution time 2 days
Specification
Есть индикатор на трейдингвью 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)
Responded
1
Rating
Projects
601
34%
Arbitration
64
20%
/
58%
Overdue
147
24%
Working
Published: 1 article, 22 codes
2
Rating
Projects
624
38%
Arbitration
40
23%
/
65%
Overdue
93
15%
Free
Published: 4 articles, 19 codes
3
Rating
Projects
13
8%
Arbitration
3
67%
/
33%
Overdue
0
Free
4
Rating
Projects
461
26%
Arbitration
139
20%
/
60%
Overdue
100
22%
Working
5
Rating
Projects
1069
50%
Arbitration
39
28%
/
41%
Overdue
49
5%
Free
Published: 1 article, 8 codes
Project information
Budget
30+ USD
Deadline
from 1 to 3 day(s)