Could someone convert this indicator from Tradingview to MT4?
https://www.tradingview.com/script/3MJA ... ry-strong/
It is also know as the "Never Loss" indicator. I've used in in Tradingview (on M15) and it gives excellent signals.
Thank you!
Code: Select all
1
2 ///INDICATOR WBORSA - V1 - COMPLEX -
3 study("nonoiraq", shorttitle="never loss")
4
5
6
7 //area 2
8 a2_top =input(4.5)
9 a2=input(4)
10 li1=plot(a2_top,"Area 2 High",color=black)
11 li2=plot(a2, "Area 2 Low",color=black)
12 fill(li1,li2, color=white)
13
14 //area 1
15 a1_top=input(3.5)
16 a1 = input(2.5)
17 li1_a1=plot(a1_top,"Area 2 High",color=black)
18 li2_a1=plot(a1, "Area 2 Low",color=black)
19 fill(li1_a1,li2_a1, color=#f44336)
20
21 //area -1
22 am1_top = input(-2.5)
23 am1 = input(-3.5)
24 li1_m1=plot(am1_top,"Area 2 High",color=black)
25 li2_m1=plot(am1, "Area 2 Low",color=black)
26 fill(li1_m1,li2_m1, color=#09fa28)
27
28 //area -2
29 am2_top = input(-4)
30 am2 = input(-4.5)
31 li1_m2=plot(am2_top,"Area 2 High",color=black)
32 li2_m2=plot(am2, "Area 2 Low",color=black)
33 fill(li1_m2,li2_m2, color=white)
34
35 // Math fomrula / VWAP Z-SCORE
36 vwapScore(pds) =>
37 mean = sum(volume*close,pds)/sum(volume,pds)
38 vwapsd = sqrt(sma(pow(close-mean, 2), pds) )
39 (close-mean)/vwapsd
40
41 plot(vwapScore(48),title="ZVWAP2-2",color=#ffe0b2, linewidth=2,transp=0.75)
42 plot(vwapScore(199),title="ZVWAP2-2",color=#cfb9ff, linewidth=2,style=circles,transp=0.75)
43 plot(vwapScore(484),title="ZVWAP2-3",color=#ff0000, linewidth=2,style=circles,transp=0.75)