LazyBear

Indicator: Derivative Oscillator

1022
Constance Brown's Derivative Oscillator was published in her book "Technical Analysis for the Trading Professional".

The oscillator uses a 14-period RSI. The RSI is then double smoothed with exponential moving averages. The default settings for the smoothing periods are 5 and 3.

In a second step a signal line is generated from the smoothed RSI by calculating a simple moving average with a period of 9.

The Derivative Oscillator is calculated as the difference between the smoothed RSI and the signal line and displayed as histogram.

All the values are configurable.

List of my free indicators: bit.ly/1LQaPK8
List of my indicators at Appstore: blog.tradingview.com/?p=970
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 đồ?
//
// @author LazyBear
// @credits Constance Brown
// 
study(title = "Derivative Oscillator [LazyBear]", shorttitle="DO_LB")
length=input(14, title="RSI Length")
p=input(9,title="SMA length")
ema1=input(5,title="EMA1 length")
ema2=input(3,title="EMA2 length")

s1=ema(ema(rsi(close, length), ema1),ema2)
s2=s1 - sma(s1,p)
c_color=s2 < 0 ? (s2 < s2[1] ? red : lime) : (s2 >= 0 ? (s2 > s2[1] ? lime : red) : na)
plot(s2 , style=histogram, color=c_color)