LazyBear

Impulse MACD [LazyBear]

Impulse MACD is a modified MACD , formed by filtering out the values in a MA range (region between MAs of high and low), thereby reducing whipsaw typical in a sideways market. This is usually plotted as histogram. This also plots the traditional histogram ( MACD - Signal), to help in finding entries/exits.

Use this like a traditional MACD (Zero line crossing or Signal crossing).

Colors legend:
  • Impulse MACD: Possible colors => Lime / Green / Orange / Red, based on the ImpulseMACD position with respect to MidLine and Signal.
  • Impulse MACD Signal: Maroon line.
  • Blue histogram: (ImpulseMACD - Signal).

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("Impulse MACD [LazyBear]", shorttitle="IMACD_LB", overlay=false)
lengthMA = input(34)
lengthSignal = input(9)
calc_smma(src, len) =>
	smma=na(smma[1]) ? sma(src, len) : (smma[1] * (len - 1) + src) / len
	smma

calc_zlema(src, length) =>
	ema1=ema(src, length)
	ema2=ema(ema1, length)
	d=ema1-ema2
	ema1+d

src=hlc3
hi=calc_smma(high, lengthMA)
lo=calc_smma(low, lengthMA)
mi=calc_zlema(src, lengthMA) 

md=(mi>hi)? (mi-hi) : (mi<lo) ? (mi - lo) : 0
sb=sma(md, lengthSignal)
sh=md-sb
mdc=src>mi?src>hi?lime:green:src<lo?red:orange
plot(0, color=gray, linewidth=1, title="MidLine")
plot(md, color=mdc, linewidth=2, title="ImpulseMACD", style=histogram)
plot(sh, color=blue, linewidth=2, title="ImpulseHisto", style=histogram)
plot(sb, color=maroon, linewidth=2, title="ImpulseMACDCDSignal")

ebc=input(false, title="Enable bar colors")
barcolor(ebc?mdc:na)
Looks good, LazyBear. Would this be something similar to the Xtreme Direction indicator from http://paintbarforex.com I'm looking for something like this to use on TradingView so I can get rid of MT4. Thanks a bunch! :-)
+2 Phản hồi
LazyBear thethirdconfig
Am not familiar with that indicator. If you have the source code, I can take a look to see if it can be ported over.
+1 Phản hồi
It looks like Length 10 works best.
Phản hồi
QuantitativeExhaustion QuantitativeExhaustion
Sorry .. that's Length 14 /// 14 works best for this indicator for default.
Phản hồi
LazyBear QuantitativeExhaustion
Nice, thanks.
Phản hồi


Combining indicators for trends is working well.
Phản hồi
LazyBear QuantitativeExhaustion
Thanks
Phản hồi
hello mr lazybear. i hope u r Blessed. i was curious 2 see if you have ever made an indicator 2 aid with fib circles n gann fann- both of which i swear by. but circles tell me something is coming just not direction per se'. wanted to see if its possible and if you would be up to the challenge. thank you so much for your time. if you have already done one or dont feel its worth the hastle thats cool too. Again- thank u from all of us little guys, you truly are an inspiration and a GENIUS. Be Blessed my friend and happy trades. by the way- IMPULSE MACD cant wait to try it
+1 Phản hồi
LazyBear sparky2842
Thanks.

I dont have any specific indicators for those. If you are aware of any, do post the links here. I can take a look.
+1 Phản hồi
meravkn LazyBear
@LazyBear, Thanks for a great indicator! how do I set an alert to notify me when the MACD line goes over the midline? See image here:

https://drive.google.com/file/d/1Qe3cXBhIHAR220i6FoEDM01nXiqwHP0b/view?usp=sharing
+5 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ế 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 đồ Trung tâm Trợ giúp 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 Đồng TradingView 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