Ether

3BBands (3 Spirolinas)

The script combines 3 single Bollinger bands into one script for easy plotting and range modification. It can be used for analyzing a market with multiple time frames and ranges using Fibonacci series as the range.

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
//
// @author Ether/Spirolina/JavaHut/Krill
study(shorttitle="3BBands", title="3 Spirolinas(3BBands)", overlay=true)
source = close
length = input(13, minval=1), mult = input(2.0, minval=0.001, maxval=50)
basis = sma(source, length)
dev = mult * stdev(source, length)
upper = basis + dev
lower = basis - dev
plot(basis, color=red)
p1 = plot(upper, color=blue)
p2 = plot(lower, color=blue)
fill(p1, p2)
// bband2
length2 = input(21, minval=1), mult2 = input(2.0, minval=0.001, maxval=50)
basis2 = sma(source, length2)
dev2 = mult2 * stdev(source, length2)
upper2 = basis2 + dev2
lower2 = basis2 - dev2
plot(basis2, color=purple)
p3 = plot(upper2, color=green)
p4 = plot(lower2, color=green)
fill(p3, p4)
// bband3
length3 = input(34, minval=1), mult3 = input(2.0, minval=0.001, maxval=50)
basis3 = sma(source, length3)
dev3 = mult3 * stdev(source, length3)
upper3 = basis3 + dev3
lower3 = basis3 - dev3
plot(basis3, color=lime)
p5 = plot(upper3, color=fuchsia)
p6 = plot(lower3, color=fuchsia)
fill(p5, p6)