trading.kay27

Kay_BBands

All right people... !!
Here is one more crazy stupid experiment by me while boosing. I call it..... Well Bollinger Bands for now..
If you like it and find it useful, give me suggestions, we can name it.

Its was just an idea of removing unnecessary opposite bands (noise i say) and it turned out to be useful to me.
After finishing, I saw good locations of support and resistance levels building.
Just connect the flat lines it create.

See if that interests you...!! Please leave comments below even if you are not in mood.
Thanks..

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
study(shorttitle="Kay_BB", title="Kay_BBands", overlay=true)
length = input(20, 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)
isU = close > basis// and close > basis
//isBetween = (open > basis and close < basis) or (open < basis and close > basis)
isD = close < basis//open < basis and close < basis

upperB = basis + dev
lowerB = basis - dev

upper = isU and highest(close, length) == close ? upperB : upperB < fixnan(upper[1]) ? upperB : fixnan(upper[1])
lower = isD and lowest(close, length) == close ? lowerB : lowerB > fixnan(lower[1]) ? lowerB : fixnan(lower[1])

plot(basis, color=red, title="BB Basis")
p1 = plot(upper, color=black, title="BB Upper modified")
p2 = plot(lower, color=black, title="BB Lower modified")
fill(p1, p2, color=purple, transp=90, title="Modified")

p3 = plot(upperB, color=red, title="BB Upper")
p4 = plot(lowerB, color=red, title="BB Lower")
fill(p3, p4, color=red, transp=95, title="Background")