# Liga Pivot Lines

1164 visningar
3 upper and lower lines based on Pivot points
```//@version=2
study(shorttitle="LPL", title="Liga Pivot Lines", overlay=true, max_bars_back=4000)
leftBars = input(30,"Пивот левое окно")
rightBars= input(10,"Пивот правое окно")
ph = pivothigh(leftBars, rightBars)
pl = pivotlow(low, leftBars, rightBars)
//---------------------------------------------------------------------------------------------------------------------------
//Рисуем карту пивотов
doth1=0,doth2=0,doth3=0,dotl1=0,dotl2=0,dotl3=0,l=0,z=0
for i=0 to 4000
if nz(ph[i])!=0
l:=l+1
if l==1
doth1:=ph[i]
if l==2
doth2:=ph[i]
if l==3
doth3:=ph[i]
break
for i=0 to 4000
if nz(pl[i])!=0
z:=z+1
if z==1
dotl1:=pl[i]
if z==2
dotl2:=pl[i]
if z==3
dotl3:=pl[i]
break

//silver, gray, white, maroon, red, purple, fuchsia, green, lime, olive, yellow, navy, blue, teal, aqua, orange

plot(doth1, style=circles, linewidth=2, color= red ,transp = 0,title="doth1")//, offset=-rightBars,title="dot")
plot(doth2, style=circles, linewidth=2, color= red ,transp = 0,title="doth2")//, offset=-rightBars,title="dot")
plot(doth3, style=circles, linewidth=2, color= red ,transp = 0,title="doth3")//, offset=-rightBars,title="dot")
plot(ph, style=cross, linewidth=3, color= red, offset=-rightBars,title="ph", trackprice = true)

plot(dotl1, style=circles, linewidth=2, color= blue ,transp = 0,title="doth1")//, offset=-rightBars,title="dot")
plot(dotl2, style=circles, linewidth=2, color= blue ,transp = 0,title="doth2")//, offset=-rightBars,title="dot")
plot(dotl3, style=circles, linewidth=2, color= blue ,transp = 0,title="doth3")//, offset=-rightBars,title="dot")
plot(pl, style=cross, linewidth=3, color= blue, offset=-rightBars,title="ph", trackprice = true)
```

## Kommentarer

Really nice bro... Its works very good.. Thank you bro.
Svara