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.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
////////////////////////////////////////////////////////////
//  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")