PINE LIBRARY
מעודכן MyVolatilityBands

Library "MyVolatilityBands"
Just a lil' library of volatility bands that I use in some scripts
bollingerbands(src, lkbk, mult, basis)
Bollinger Bands
Parameters:
src (float): float
lkbk (int): int
mult (float): float
basis (float)
Returns: Bollinger Bands
donchianchannels(src, lkbk, band_width)
Donchian Channels
Parameters:
src (float): float
lkbk (int): int
band_width (float): float
Returns: Donchian Channels with an outer band of varying thickness adjusted by the band_width input
doublehalfdonchianchannels(src, lkbk, divisor)
Double Half Donchian Channels
Parameters:
src (float): float
lkbk (int): int
divisor (float): float
Returns: two adjustable bases calculated using Donchian Channels calculation that act as a measure of volatility
Just a lil' library of volatility bands that I use in some scripts
bollingerbands(src, lkbk, mult, basis)
Bollinger Bands
Parameters:
src (float): float
lkbk (int): int
mult (float): float
basis (float)
Returns: Bollinger Bands
donchianchannels(src, lkbk, band_width)
Donchian Channels
Parameters:
src (float): float
lkbk (int): int
band_width (float): float
Returns: Donchian Channels with an outer band of varying thickness adjusted by the band_width input
doublehalfdonchianchannels(src, lkbk, divisor)
Double Half Donchian Channels
Parameters:
src (float): float
lkbk (int): int
divisor (float): float
Returns: two adjustable bases calculated using Donchian Channels calculation that act as a measure of volatility
הערות שחרור
v2Updated:
bollingerbands(src, lkbk, mult, basis, band_width)
Bollinger Bands
Parameters:
src (float): float
lkbk (int): int
mult (float): float
basis (float)
band_width (float)
Returns: Bollinger Bands with an outer band of varying thickness adjusted by the band_width input
doublehalfdonchianchannels(src, lkbk, divisor)
Double Half Donchian Channels
Parameters:
src (float): float
lkbk (int): int
divisor (float): float
Returns: two adjustable bases calculated using Donchian Channels calculation that can act as a measure of volatility for below chart indicators
הערות שחרור
v3Added:
keltnerchannels(atr_lkbk, mult, basis, band_width)
Keltner Channels
Parameters:
atr_lkbk (simple int): int
mult (float): float
basis (float): float
band_width (float): float
Returns: Keltner Channels with an outer band of varying thickness adjustable by the band_width input
Updated:
bollingerbands(src, lkbk, mult, basis, band_width)
Bollinger Bands
Parameters:
src (float): float
lkbk (int): int
mult (float): float
basis (float): float
band_width (float): float
Returns: Bollinger Bands with an outer band of varying thickness adjustable by the band_width input
donchianchannels(src, lkbk, band_width)
Donchian Channels
Parameters:
src (float): float
lkbk (int): int
band_width (float): float
Returns: Donchian Channels with an outer band of varying thickness adjustable by the band_width input
הערות שחרור
v4Updated:
bollingerbands(src, period, mult, basis, width)
Bollinger Bands
Parameters:
src (float): float
period (int): int
mult (float): float
basis (float): float
width (float): float
Returns: Bollinger Bands with an outer band of varying thickness adjustable by the width input
keltnerchannels(atrPeriod, mult, basis, width)
Keltner Channels
Parameters:
atrPeriod (simple int): int
mult (float): float
basis (float): float
width (float): float
Returns: Keltner Channels with an outer band of varying thickness adjustable by the width input
donchianchannels(src, period, width)
Donchian Channels
Parameters:
src (float): float
period (int): int
width (float): float
Returns: Donchian Channels with an outer band of varying thickness adjustable by the width input
Removed:
doublehalfdonchianchannels(src, lkbk, divisor)
Double Half Donchian Channels
הערות שחרור
v5- just fixed a huge issue with the previous update from yesterday. so dumb, yet so obvious.
הערות שחרור
v6Hoping this works, otherwise I'll feel stupid republishing this library twice in the same day.
Range Channel, below, is designed to use any below chart indicator as a source. I wanted to be able to use the Keltner Channel as another band/channel in my below chart indicators that I will be updating shortly, but because it uses tr, atr, and range(price) it doesn't work with below chart indis. What this function aims to do is take the difference between the highest and lowest values on each below chart indicator "bar", apply a simple moving average to them, and then, like the Keltner Channel, add or subtract that value from a moving average, then multiply by some number.
Added:
rangechannel(src, mult, basis, width)
Range Channel
Parameters:
src (float): float
mult (float): float
basis (float): float
width (float): float
Returns: something like Keltner Channels but utilizing highest and lowest values of a below chart indicator instead of price values,
with an outer band of varying thickness adjustable by the width input
הערות שחרור
v7Removed:
rangechannel(src, period, mult, basis, width)
Range Channel
That didn't work. Looks like it's just Bollinger Bands, Donchian Channel, and Keltner Channel (which isn't useful on below-chart indicators).
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.