CapnOscar

CapnsBands

Is It Uptrend or DownTrend? Are you lost? Follow the trend with CapnBands :)
Remove from Favorite Scripts Add to Favorite Scripts
study(shorttitle="CapnsBB", title="CapnsBands", overlay=true)

//Define Variables
max = 80
hi = 70
mup = 50.5
mdo = 49.5
lo = 30
min = 20

//MajorTrend
src2 = close, len2 = input(84, minval=1, title="MajorTrend")
up2 = rma(max(change(src2), 0), len2)
down2 = rma(-min(change(src2), 0), len2)
rsi2 = down2 == 0 ? 100 : up2 == 0 ? 0 : 100 - (100 / (1 + up2 / down2))
rsi2c = rsi2 > mup ? lime : rsi2 < mdo ? red : rsi2 == 50 ? gray : yellow


length = input(80, minval=1)
src = input(close, title="Source")
mult = input(2.0, minval=0.001, maxval=50)
basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev
p0 = plot(basis, linewidth=3, color=rsi2c)
p1 = plot(upper, color=green)
p2 = plot(lower, color=red)
fill(p1, p0, color=green, transp=95)
fill(p0, p2, color=red, transp=95)


Related Ideas

looks good to follow the trend, but bro how to entry and exit? i think when middle line turns green we should enter long> and vice versa? and can u spare some time to teach me how to enter and exit? my personal mail id is anmpatel@gmail.com.. thanks a ton...
Reply
sorry its capntrend
Reply
in the code
Reply
Hey dude, do you have the default of CapnBands? your work is awesome.
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
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 My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out