LazyBear

Indicators: Volume-Weighted MACD Histogram & Sentiment Zone Osc

Volume-Weighted MACD Histogram
-------------------------------------------------------------------------------------
Volume-Weighted MACD Histogram, first discussed by Buff Dormeier, is a modified version of MACD study. It calculates volume-averaged Close price for finding the histogram.

More info:
www.moneyshow.c...om/articles.asp?aid=daytra...

Sentiment Zone Oscillator
-------------------------------------------------------------------------------------
Sentiment Zone Oscillator, developed by Walid Khalil, is a complementing oscillator to VZO and PZO.

To quote Walid:

>> The sentiment zone oscillator (SZO) is a leading contrary oscillator that measures the extreme emotions of a single market or share.
>> It measures and defines both extremes, bullishness (overoptimism) and bearishness (overpessimism), that could lead to a change
>> in sentiment, eventually changing the trend of the time frame under study. The SZO was devised on the belief that after several waves
>> of rising prices, investors begin to get bullish on the stock with increasing confidence since the price has been rising for some time.
>> The SZO measures that bullishness/bearishness and marks overbought/oversold levels.

SZO has its own oversold/overbought bands. Also, when SZO goes above 7, it indicates extreme optimism. When the SZO goes below -7, it indicates extreme pessimism.

More info: www.traders.com/Docu.../2012/05/Khalil.html

How to import / use custom indicators from this chart?
-------------------------------------------------------------------------------------
PDF: drive.google.co...mNrZUY1dTA/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 abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?
//
// @author LazyBear
//
// If you use this code in its original/modified form, do drop me a note. 
//
study("Volume Weighted MACD [LazyBear]", shorttitle="VWMACD_LB")
slow = input(12, "Short period")
fast = input(26, "Long period")
signal = input(9, "Smoothing period")


maFast = ema( volume * close, fast ) / ema( volume, fast ) 
maSlow = ema( volume * close, slow ) / ema( volume, slow ) 
d = maSlow - maFast 
maSignal = ema( d, signal ) 
dm=d-maSignal

h_color=dm>=0? (dm>dm[1]?green:orange) : (dm<dm[1]?red:orange)
plot( dm, style=histogram, color=h_color, linewidth=3)


//
// Easter Egg! Have fun :)
//
// d_color=d>=0? (d>d[1]?green:orange) : (d<d[1]?red:orange)
// zl=plot(0, color=gray)
// dl=plot(d, style=line, color=d_color, linewidth=4)
// fill(zl, dl, silver)