Индикатор WaveTrend Oscillator с Tradingview переписать на mql5

MQL5 Indicators

Job finished

Execution time 8 days

Specification

Требуется индикатор с tradingview  преобразовать в индикатор на MT 5

Сам  индикатор и  исходный код тут ru.tradingview.com/script/2KE8wTuF-Indicator-WaveTrend-Oscillator-WT/

последнюю строку кода можно исключитью.

Итоговый код

study(title="WaveTrend [LazyBear]", shorttitle="WT_LB")

n1 = input(10, "Channel Length")

n2 = input(21, "Average Length")

obLevel1 = input(60, "Over Bought Level 1")

obLevel2 = input(53, "Over Bought Level 2")

osLevel1 = input(-60, "Over Sold Level 1")

osLevel2 = input(-53, "Over Sold Level 2") 

ap = hlc3 

esa = ema(ap, n1)

d = ema(abs(ap - esa), n1)

ci = (ap - esa) / (0.015 * d)

tci = ema(ci, n2)

wt1 = tci

wt2 = sma(wt1,4)

plot(0, color=gray)

plot(obLevel1, color=red)

plot(osLevel1, color=green)

plot(obLevel2, color=red, style=3)

plot(osLevel2, color=green, style=3)

plot(wt1, color=green)

plot(wt2, color=red, style=3)




Responded

1
Developer 1
Rating
(34)
Projects
35
20%
Arbitration
2
0% / 100%
Overdue
1
3%
Free
2
Developer 2
Rating
(851)
Projects
1460
72%
Arbitration
122
29% / 48%
Overdue
356
24%
Working
Published: 3 articles
3
Developer 3
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
4
Developer 4
Rating
(337)
Projects
624
38%
Arbitration
40
23% / 65%
Overdue
93
15%
Free
Published: 4 articles, 19 codes
5
Developer 5
Rating
(589)
Projects
1069
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
Published: 1 article, 8 codes
6
Developer 6
Rating
(50)
Projects
80
39%
Arbitration
4
50% / 25%
Overdue
0
Free
7
Developer 7
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free

Project information

Budget
30 - 35 USD