LazyBear

Vervoort Smoothed %b [LazyBear]

As we know, %b is a measure of where prices are in relation to the outer Bollinger bands and therefore strongly related to volatility. This can get choppy, though.

Vervoort smoothed this using Zero lag TEMA of custom Heiken-ashi recalculated prices. According to Vervoort, "Smoothed Vervoort %b is often a leading indicator making smooth moves with clear turning points. Normal and hidden divergent moves make it an ideal tool to help find entry and exit points while watching price moving between the Bollinger bands."

More info:
drive.google.co...XVHRXZPek0/edit?usp=sharin...

List of my other indicators:
- Chart: - GDoc: docs.google.com...ByMEvm5MLo/edit?usp=sharin...

List of my free indicators: bit.ly/1LQaPK8
List of my indicators at Appstore: blog.tradingview.com/?p=970
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?
//
// @author LazyBear 
// List of all my indicators: 
// https://docs.google.com/document/d/15AGCufJZ8CIUvwFJ9W-IKns88gkWOKBCvByMEvm5MLo/edit?usp=sharing
//
study("Vervoort Modified BB%b [LazyBear]", shorttitle="VMBB%b_LB")
calc_tema(s, length) =>
    ema1 = ema(s, length)
    ema2 = ema(ema1, length)
    ema3 = ema(ema2, length)
    3 * (ema1 - ema2) + ema3

length=input(18, minval=2, maxval=100, title="%B Length")
temaLength=input(8, title="TEMA Length")
stdevHigh=input(1.6, title="Stdev High")
stdevLow=input(1.6, title="Stdev Low")
stdevLength=input(200, title="Stdev Length")
haOpen=(ohlc4[1]+nz(haOpen[1]))/2
haC=(ohlc4+haOpen+max(high, haOpen)+min(low, haOpen))/4

tma1 = calc_tema(haC,temaLength)
tma2 = calc_tema(tma1, temaLength)
diff = tma1-tma2
zlha = tma1+diff
percb = (calc_tema(zlha,temaLength)+2*stdev(calc_tema(zlha,temaLength),length) - wma(calc_tema(zlha,temaLength),length))/(4*stdev(calc_tema(zlha,temaLength),length))*100

ub=50+stdevHigh*stdev(percb,stdevLength)
lb=50-stdevLow*stdev(percb,stdevLength)
ul=plot(ub, color=red, title="Stdev+")
ll=plot(lb, color=green, title="Stdev-")
plot((ub+lb)/2, color=blue, style=3, title="Stdev Mid")
fill(ul, ll, red)
plot(percb, linewidth=2, color=maroon, title="SVE %b")