LazyBear

Absolute Strength Index Oscillator [LazyBear]

This oscillator is derived from Absolute Strength Index, originally developed by Tudor Marcelin (Art Invest).

I made it an oscillator mainly to make it easy to identify the divergences and price-flows. There is not much documentation available online for Absolute Strength Index afaik, lets hope Mr.Tudor comes across this and provides us a detailed writeup :)

Quick testing showed lots of good signals (with minimal lag). Let me know what you guys find in your testing.

Indicator options support coloring bars based on the oscillator/signal values, and a histogram-only mode.

List of my public indicators: http://bit.ly/1LQaPK8
List of my app-store indicators: http://blog.tradingview.com/?p=970

Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
study("Absolute Strength Index Oscillator [LazyBear]", shorttitle="ABSSIO_LB")
sh=input(false, title="Show as Histo")
ebc=input(false, title="Enable Bar Colors")
lma=input(21, title="EMA Length")
ld=input(34, title="Signal Length")
osl=10 
calc_abssio( ) =>
    A=iff(close>close[1], nz(A[1])+(close/close[1])-1,nz(A[1]))
    M=iff(close==close[1], nz(M[1])+1.0/osl,nz(M[1]))
    D=iff(close<close[1], nz(D[1])+(close[1]/close)-1,nz(D[1]))
    iff (D+M/2==0, 1, 1-1/(1+(A+M/2)/(D+M/2)))

abssi=calc_abssio()
abssio = (abssi - ema(abssi,lma))
alp=2.0/(ld+1)
mt=alp*abssio+(1-alp)*nz(mt[1])
ut=alp*mt+(1-alp)*nz(ut[1])
s=((2-alp)*mt-ut)/(1-alp)
d=abssio-s
hline(0, title="ZeroLine")
plot(not sh ? abssio : na, color=(abssio > 0 ? abssio >= s ? green : orange : abssio <=s ? red :orange), title="ABSSIO", style=histogram, linewidth=2)
plot(not sh ? abssio : na, color=black, style=line,title="ABSSIO_Points", linewidth=2)
plot(not sh ? s : na, color=gray, title="MA")
plot(sh ? d : na, style=columns, color=d>0?green:red)
barcolor(ebc?(abssio > 0 ? abssio >= s ? lime : orange : abssio <=s ? red :orange):na)
This is by far my favorite indicator. I use it in my set of indicators for trend on the daily charts. It works VERY well as an exit indicator. I did change the signal strength 39 and found it kept me in a trend just a bit longer. Thank you so much.
Phản hồi
Hey LazyBear, I noticed that this indicator repaints data. Is it possible for you to make this one so that it doesn’t?
+9 Phản hồi
Love the indicator! Is there a way to get an alert when there is a zeroline cross?
+2 Phản hồi
Thriver Thriver
@Thriver, Or the bars change color, such as when they change to red or green? Thank you.
+1 Phản hồi
LazyBear, only just come accross this & liking it very much. You created this almost 4 years ago, any amendments before I start testing it? Great work
+5 Phản hồi
Excellent work! :D It shows market strength rather well; the intensity of movement.
+1 Phản hồi
Great indicator
Phản hồi
Is it possible to trigger alerts based on "overbought" and "oversold" ? I have changed the parameters to -/+37,5 (comparable to RSI - 25/75). I would like to trigger to alerts on short term timeframes, especially on Stock Indices. Is it possible with the code as it is or shall the code be altered ?. Thx a lot for the awesome tips. AB
+3 Phản hồi
I like it. It's one of these rare cases where a formula which looks complicated actually produces something of value. Most times the opposite is true in my experience :)
+1 Phản hồi
LazyBear ChartArt
Agree. I liked the initial testing results too.
+2 Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Shows Cách thức hoạt động Tính năng Biểu đồ Giá Quy tắc Áp dụng Người điều hành Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Trung tâm Trợ giúp Giới thiệu bạn Yêu cầu tính năng Blog & Tin tức Câu hỏi thường gặp Wiki Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Giới thiệu bạn Ticket Hỗ trợ của tôi Trung tâm Trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất