GEOMETRIC STANDARD DEVIATION BANDS v1 by @XeL_Arjona

195 6
GEOMETRIC STANDARD DEVIATION BANDS
Ver.1 By Ricardo M Arjona @XeL_Arjona

DISCLAIMER:

The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.

The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.

WHAT'S THIS?

This IS NOT the wheel "Re-Invention"... This is exactly what the name says: A pair of Envelope Bands to measure "volatility", constructed at statistical relation from within price series and their Rolling back MEAN ( Simple Moving Average ). YES, What Mr. Bollinger did and put it's name to this simple, cleaver and popular formula.

This time, I took the time to make another simple mod, but seems to me to be quite functional in REAL VOLATILE assets like in the example chart: TO USE THEIR GEOMETRIC             MODE!!

Cheers!
Any feedback or public modification(s) are quite welcome to the community....!

@XeL_Arjona
Apr             28 2016
```//@version=2
study("GEOMETRIC STANDARD DEVIATION BANDS v1 by @XeL_Arjona", shorttitle="gSDB", overlay=true)
src = input(title="Candle Source:",type=source,defval=close)
p   = input(title="Rollback Mean:",defval=21)
s   = input(title="Deviation Envelope:",defval=2)
et  = input(title="EnvTYPE: [1]Cl | [3]Avg | [3]HiLo:",defval=2,minval=1,maxval=3)
// VARIABLES
cl = log(src)
hi = iff(et==1, log(src), iff(et==2,log(high), log(avg(src,high))))
lo = iff(et==1, log(src), iff(et==2,log(low), log(avg(src,low))))
// FUNCTIONS
// Standard Deviation from Custom Mid Point (Custom Bollinger)
cStdDev(array,mid,lb,mult,dir) =>
std = stdev(array,lb)
d = dir ? 1 : -1
band = mid + d * mult * std
mean    = exp(sma(cl,p))
up      = exp(cStdDev(hi,sma(hi,p),p,s,true))
dn      = exp(cStdDev(lo,sma(lo,p),p,s,false))
// PLOT DIRECTIVES
plot(mean,color=blue,transp=0)
uband = plot(up,color=blue,transp=55)
dband = plot(dn,color=blue,transp=55)
fill(uband,dband,color=navy,transp=96)```
Nice...am I understanding that this is like the std dev of the z value of the sequence with a log filter ...? It seems like a mlearning algo filter.
nice indi, thanks
xel, I know about 2 people that trade on a weekly chart. Not too many people have the capital for the drawdown that it can take. I hate bands for trading but if you can show me something that works on a 30 minute and less time frame then I am a believer.
Futuraman
@DCC This is not a trading strategy but a "re-construction" of an statistical tool based on standard-deviation's adjusted for log-normality at price. This could be used for trading or anything else you want. Mr. John Bollinger actually is who sell's books, curses, and I don't know what else regarding this kind of bands (in it's normal distribution form) with a "method" for doing money. (They say...)
Thanks for sharing valuable analysis !!!!!!!!!!!!!!!!!! Great work !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
sudhir.mehta
Thanks for you comments @sudhir.mehta Hope it helps! ;)
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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