• Sign up >>

Convert simple pine script to mt4 indicator

2020.02.12 Indicators

Specification

i need this trading view indicator converted to mt4


//


// @author LazyBear 

// 

// List of my public indicators: http://bit.ly/1LQaPK8 

// List of my app-store indicators: ;

//

study("Absolute Strength Index Oscillator [LazyBear]", shorttitle="ABSSIO_LB")

sh=input(false, title="Show as Histo")

ebc=input(false, title="Enable Bar Colors")

lma=input(21, title="EMA Length")

ld=input(34, title="Signal Length")

osl=10 

calc_abssio( ) =>

    A=iff(close>close[1], nz(A[1])+(close/close[1])-1,nz(A[1]))

    M=iff(close==close[1], nz(M[1])+1.0/osl,nz(M[1]))

    D=iff(close<close[1], nz(D[1])+(close[1]/close)-1,nz(D[1]))

    iff (D+M/2==0, 1, 1-1/(1+(A+M/2)/(D+M/2)))


abssi=calc_abssio()

abssio = (abssi - ema(abssi,lma))

alp=2.0/(ld+1)

mt=alp*abssio+(1-alp)*nz(mt[1])

ut=alp*mt+(1-alp)*nz(ut[1])

s=((2-alp)*mt-ut)/(1-alp)

d=abssio-s

hline(0, title="ZeroLine")

plot(not sh ? abssio : na, color=(abssio > 0 ? abssio >= s ? green : orange : abssio <=s ? red :orange), title="ABSSIO", style=histogram, linewidth=2)

plot(not sh ? abssio : na, color=black, style=line,title="ABSSIO_Points", linewidth=2)

plot(not sh ? s : na, color=gray, title="MA")

plot(sh ? d : na, style=columns, color=d>0?green:red)

barcolor(ebc?(abssio > 0 ? abssio >= s ? lime : orange : abssio <=s ? red :orange):na)

Responded

1
Developer 1
2020.02.13
Rating
4.94
(589)
Projects
1023
74%
Arbitration
76
29% / 42%
Overdue
331
32%
Busy
2
Developer 2
2020.02.13
Rating
5
(373)
Projects
621
69%
Arbitration
12
50% / 17%
Overdue
209
34%
Loaded
3
Developer 3
2020.02.13
Rating
4.98
(639)
Projects
780
57%
Arbitration
16
63% / 13%
Overdue
44
6%
Free
4
Developer 4
2020.02.13
Rating
4.85
(359)
Projects
648
49%
Arbitration
208
55% / 28%
Overdue
138
21%
Loaded

Project information

Budget
30+ USD
For the developer
27 USD

Customer

Placed orders1
Arbitrage count0