Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
- // © bekirfinans
- //@version=5
- indicator("Fibonnaci by Luke",overlay = true)
- Uzunluk = input(2,"Screen length")
- kapanis = close[1]
- kapanis2 = close[2]
- tepe = high[1]
- dip = low[1]
- kontrol = kapanis > kapanis2 ? true : false
- fib618 = kontrol == true ? tepe - ((tepe-dip)*0.618) : dip + ((tepe-dip)*0.618)
- fib50 = kontrol == true ? tepe - ((tepe-dip)*0.500) : dip + ((tepe-dip)*0.500)
- fib786 = kontrol == true ? tepe - ((tepe-dip)*0.786) : dip + ((tepe-dip)*0.786)
- fib382 = kontrol == true ? tepe - ((tepe-dip)*0.382) : dip + ((tepe-dip)*0.382)
- fib236 = kontrol == true ? tepe - ((tepe-dip)*0.236) : dip + ((tepe-dip)*0.236)
- fib1618 = kontrol == true ? tepe - ((tepe-dip)*1.618) : dip + ((tepe-dip)*1.618)
- fib1414 = kontrol == true ? tepe - ((tepe-dip)*1.414) : dip + ((tepe-dip)*1.414)
- fib1272 = kontrol == true ? tepe - ((tepe-dip)*1.272) : dip + ((tepe-dip)*1.272)
- fib3618 = kontrol == true ? tepe - ((tepe-dip)*3.618) : dip + ((tepe-dip)*3.618)
- fib1764 = kontrol == true ? tepe - ((tepe-dip)*1.764) : dip + ((tepe-dip)*1.764)
- fibminus0236 = kontrol == true ? tepe - ((tepe-dip)*-0.236) : dip + ((tepe-dip)*-0.236)
- fibminus0382 = kontrol == true ? tepe - ((tepe-dip)*-0.382) : dip + ((tepe-dip)*-0.382)
- fibminus05 = kontrol == true ? tepe - ((tepe-dip)*-0.500) : dip + ((tepe-dip)*-0.500)
- fibminus0168 = kontrol == true ? tepe - ((tepe-dip)*-0.168) : dip + ((tepe-dip)*-0.168)
- fibminus0786 = kontrol == true ? tepe - ((tepe-dip)*-0.786) : dip + ((tepe-dip)*-0.786)
- fibminus1 = kontrol == true ? tepe - ((tepe-dip)*-1.00) : dip + ((tepe-dip)*-1.000)
- fib3 = kontrol == true ? tepe - ((tepe-dip)*3) : dip + ((tepe-dip)*3)
- gunluk618 = request.security(syminfo.tickerid, "D",fib618)
- gunluk50 = request.security(syminfo.tickerid, "D",fib50)
- gunluk786 = request.security(syminfo.tickerid, "D",fib786)
- gunluk382 = request.security(syminfo.tickerid, "D",fib382)
- gunluk236 = request.security(syminfo.tickerid, "D",fib236)
- gunluk1618 = request.security(syminfo.tickerid, "D",fib1618)
- gunluk1414 = request.security(syminfo.tickerid, "D",fib1414)
- gunluk1272 = request.security(syminfo.tickerid, "D",fib1272)
- gunluk3618 = request.security(syminfo.tickerid, "D",fib3618)
- gunluk1764 = request.security(syminfo.tickerid, "D",fib1764)
- gunlukminus0236 = request.security(syminfo.tickerid, "D",fibminus0236)
- gunlukminus0382 = request.security(syminfo.tickerid, "D",fibminus0382)
- gunlukminus0168 = request.security(syminfo.tickerid, "D",fibminus0168)
- gunlukminus05 = request.security(syminfo.tickerid, "D",fibminus05)
- gunlukminus0786 = request.security(syminfo.tickerid, "D",fibminus0786)
- gunlukminus1 = request.security(syminfo.tickerid, "D",fibminus1)
- gunlukTepe = request.security(syminfo.tickerid, "D",tepe)
- gunlukDip = request.security(syminfo.tickerid, "D",dip)
- plot(gunlukTepe,"1.000",color.white,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukDip,"0.000",color.white,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk618,"61.80%",color.green,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk50,"50.00%",color.yellow,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk786,"78.60%",color.green,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk382,"38.20%",color.yellow,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk236,"23.60%",color.green,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk1414,"141.40%",color.orange,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk1618,"161.80%",color.red,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk1272,"127.20%",color.orange,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk3618,"361.80%",color.red,trackprice = true,show_last = 1,offset = 1)
- plot(gunluk1764,"176.40%",color.orange,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukminus0236,"-23.60%",color.red,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukminus0382,"-38.20%",color.yellow,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukminus05,"-50.00%",color.yellow,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukminus0168,"-16.80%",color.red,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukminus0786,"-78.60%",color.red,trackprice = true,show_last = 1,offset = 1)
- plot(gunlukminus0786,"-100.00%",color.red,trackprice = true,show_last = 1,offset = 1)
Advertisement
Add Comment
Please, Sign In to add comment