J.Dow

Bollinger Bands Color

Bollinger Bands Color
Remove from Favorite Scripts Add to Favorite Scripts
//Crée par J.Dow
//Boullinger Band color
study(shorttitle="BB color", title="Bollinger Bands color", overlay=true)

length = input(20, minval=1, title ="MA - Simpel")
len = input(2, minval=1, title="MA - Exponantial")
src = input(close, title="Source")
mult = input(2.0, minval=0.001, maxval=50)

//Bollinger Bands
basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev

price = ema(src, len)
linecolor = price >= basis ? green : red


//Affichage

plot(basis, color=red, transp=50)
p1 = plot(upper, color=linecolor, transp=90)
p2 = plot(lower, color=linecolor, transp=90)
fill(p1, p2, color=linecolor)
NEW version:
Bollinger Bands Color V1.1

Bollinger Bands color V1.1
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
中国
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out