Kod:
//@version=4
study(title="XXX", shorttitle="XXXIO", overlay=false)
btc = security("BINANCE:BTCUSDT", "1", close, true)
ka = security("BINANCE:DOTBTC", "1", close, true)
kav = security("BINANCE:DOTUSDT", "1", close, true)
kav1 = security("BINANCE:DOTUSDTPERP", "1", close, true)
res = input(title="Pivot1", type=input.resolution, defval="D")
res1 = input(title="Pivot2", type=input.resolution, defval="W")
res2 = input(title="Pivot3", type=input.resolution, defval="M")
res3 = input(title="BB1", type=input.resolution, defval="3M")
res4 = input(title="BB2", type=input.resolution, defval="12M")
//cl = security(syminfo.tickerid, res, close)
//hi = security(syminfo.tickerid, res, high)
PP = security(syminfo.tickerid, res, hlc3)[1]
PPC = security(syminfo.tickerid, res, close)[1]
PP1 = security(syminfo.tickerid, res1, hlc3)[1]
PPC1 = security(syminfo.tickerid, res1, close)[1]
PP2 = security(syminfo.tickerid, res2, hlc3)[1]
PPC2 = security(syminfo.tickerid, res2, close)[1]
PP3 = security(syminfo.tickerid, res3, hlc3)[1]
PP4 = security(syminfo.tickerid, res4, hlc3)[1]
//uz = input(title="Uzunluk", type=input.integer, defval=20)
//gen = input(title="Genislik", type=input.integer, defval=2)
[middle1, upper1, lower1] = security(syminfo.tickerid,res,bb(PPC, 20, 1))
[middle2, upper2, lower2] = security(syminfo.tickerid,res1,bb(PPC1, 20, 1))
//de=plot((btc*ka)[1]*(kav/kav1)[1], color=#8deeee, title="TF", linewidth=1)
p = plot(close, color=color.yellow, title="F", linewidth=1)
sd = plot(PP, color=color.green, title="G", linewidth=1)
sd1 = plot(PP1, color=color.fuchsia, title="H", linewidth=1)
sd2 = plot(PP2, color=color.orange, title="A", linewidth=1)
b1u = plot(upper1, color=color.white, title="GB", linewidth=1)
b2u = plot(upper2, color=#ff3030, title="HB", linewidth=1)
//bo1 = plot(bb1, color=color.orange, title="GB", linewidth=1)
//sd3 = plot(PP3, color=color.red, title="3A", linewidth=1)
//sd4 = plot(PP4, color=color.white, title="12A", linewidth=1)
//c1 = plot(1, color=color.white, title="1", linewidth=1)
Yer İmleri