本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。
//@version=3
study("BB MTF", overlay=true )
res = input(title="Time Frame", type=resolution, defval="D")
per = input(20, title="BB Periodu")
sapma = input(2,title="BB Sapma Çarpanı")
source = close
ortaband = sma(source, per)
stsapma = sapma * stdev(source, per)
ustBB = ortaband + stsapma
altBB = ortaband - stsapma
ortabandk=security(tickerid, res, ortaband)
ustBBk = security(tickerid, res, ustBB)
altBBk =security(tickerid, res, altBB)
plot(ortabandk, color=blue, linewidth=2, title="Basis")
plot(ustBBk, color=red, linewidth=2, title="UPPER")
plot(altBBk, color=red, linewidth=2, title="LOWER")