HPotter

Advance-Decline Indicator

2964 görüntülenme
222
2964 4
The Advance-Decline Indicator is a market breadth indicator
based on the smoothed difference between advancing and declining issues.
The indicator shows when the stock market is overbought (and a correction
is due) and when it is oversold (and a rally is due).
The Advance-Decline Indicator is a 10-period exponential moving average of
the difference between the number of advancing and declining issues.
Favori Komutlardan Çıkart Favori Komutlara Ekle
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 08/09/2014
// The Advance-Decline Indicator is a market breadth indicator 
// based on the smoothed difference between advancing and declining issues.
// The indicator shows when the stock market is overbought (and a correction 
// is due) and when it is oversold (and a rally is due).
// The Advance-Decline Indicator is a 10-period exponential moving average of 
// the difference between the number of advancing and declining issues.
////////////////////////////////////////////////////////////
study(title="Advance-Decline Indicator")
Length = input(10, minval=1)
BuyBand = input(-1500)
SellBand = input(1500, minval=1)
hline(SellBand, color=red, linestyle=line)
hline(BuyBand, color=green, linestyle=line)
xOvbOvs = ema(close, Length)
clr = iff(high > SellBand, red, iff(low < BuyBand, green, blue))
plot(xOvbOvs, color = clr, style  = histogram, linewidth = 2, title="Advance-Decline Indicator")
DONATE/TIP

BTC: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
Hi, when I apply this to SPY I do not see any negative values. Would you have a minute to help me troubleshoot why this is happening?
Cevap Gönder
HPotter cogitation
@cogitation, I think it is that SPY have not a negative values.
Cevap Gönder
@HPotter, I really appreciate your quick feedback.
I did not consider that maybe SPY wouldn't have a negative AD line.
But on looking at SPX there are again no negative values, but during the 2007-2008 period the values are outputted in Red, and they are shown as read now again (red since 2012). Are red bars indicative of negative values?
Also, in looking at the script I don't understand where is the information (values of advances and declines) called from. Where is the source?

Thanks again.
Cevap Gönder
HPotter cogitation
@cogitation, This is published of NYSE Advance-Decline. I think this indicator only for this.
Cevap Gönder
Ana Sayfa Hisse Senedi Takipçisi Forex Takipçisi Kripto Takipçisi Ekonomik Takvim Nasıl Çalışır Grafik Özellikleri Ücretlendirme Kurallarımız Moderatörler Web Sitesi & Aracı Kurum Çözümleri Görsel Bileşenler(Widget) Grafik Çözümleri Destek Merkezi Yeni Özellik Talebi Blog ve Haberler SSS Viki Twitter
Profil Profil Ayarları Hesap ve Ödemeler TradingView Koinleri Destek Kayıtlarım Destek Merkezi Yayınlanmış Fikirler Takip Edenler Takip Ediliyor Özel Mesajlar Sohbet Çıkış