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)
This script was updated: Bollinger Bands color V1.1
J.Dow
3 months ago
NEW version:
Bollinger Bands Color V1.1

Bollinger Bands color V1.1
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out