vdubus

VDUB BB %B REVERSAL_v3 + BAR COLOUR

611 1 82
VDUB BB %B REVERSAL_v3 HISTOGRAM UPDATED
snapshot
Remove from Favorite Scripts Add to Favorite Scripts
study(title = "VDUB BB %B REVERSAL_v3 + BAR COLOUR", shorttitle = "vdub_BB_%B_rev_v3_COLOUR")
length = input(21, minval=1)
src = input(close, title="Source")
mult = input(0.001, minval=0.001, maxval=50)
basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev
bbr = (src - lower)/(upper - lower)
plot(bbr, color=teal, style=histogram, linewidth=4)
plot(bbr, color=black, style=line, linewidth=2)
plot(bbr, color = change(bbr) <= 0 ? gray : teal, style=area)
barcolor( bbr > 0 ? green :red)
//========================bgcolor=================================

timeinrange(res, sess) => time(res, sess) != 0
premarket = #0050FF
regular = #0000FF
postmarket = #5000FF
notrading = na
sessioncolor = timeinrange("30", "0400-0930") ? premarket : timeinrange("30", "0930-1600") ? regular : timeinrange("30", "1600-2000") ? postmarket : notrading
bgcolor(sessioncolor, transp=85)
Brilliant! Did you go to school for coding or self taught? I think coding is fascinating but never tried it myself. I have great intuition and recognize patterns in Forex (15m, 30m) but translating that thought process in to code will be something I have to learn. Thanks for sharing! Norman
Reply
United States
United Kingdom
India
Deutschland
España
France
Việt Nam
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Support Priority Support Report Issue Ideas Published Followers Following Private Messages Chat Sign Out