HPotter

Advance-Decline Indicator

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.

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
////////////////////////////////////////////////////////////
//  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")