repo32

Bollinger Band Touch

This script simply colors the background when price hits or exceeds the bollinger bands. Just a nice visual cue.
סקריפט קוד פתוח

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

כתב ויתור

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

רוצה להשתמש בסקריפ זה בגרף?
//Created by Robert Nance 7/5/15
//This script simply colors the background when price hits or exceeds the bollinger bands
//Works nice if you need a quick cue when you are playing the bounce.
study(shorttitle="BB", title="Bollinger Band Touch", 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)
upper = basis + dev
lower = basis - dev
plot(basis, color=red)
p1 = plot(upper, color=red)
p2 = plot(lower, color=green)
fill(p1, p2)
toptouch = high >= upper ? red : na
bottouch = low <= lower ? green : na

bgcolor(toptouch, transp=75)
bgcolor(bottouch, transp=75)