Applicable only If you are setting up alerts:
I noticed I have switched the plot names. Histo shd be the and DMACD shd be the Signal.
Replace lines 16 & 17 with these to get the correct names. NOTE that no functionality is affected, just the names.
plot(r, style=columns, color=r>0?green:red, transp=80, title="Dinapoli MACD")
plot(s, color=teal, linewidth=2, title="Trigger")
--- Original Description ---
These two indicators are from one of my favorite books - DiNapoli's Levels. These are custom and used by him. There are more indicators - Detrended Osc, DisplacedMA - that he uses, will publish them all later.
The settings of normal / can be tuned to obtain these DiNapoli indicators, or if you are lazy (like me!) just use these :)
DiNapoli Preferred source: http://pastebin.com/zLjdA1Am
List of my public indicators: http://bit.ly/1LQaPK8
List of my app-store indicators: http://blog.tradingview.com/?p=970
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
// // @author LazyBear // // List of my public indicators: http://bit.ly/1LQaPK8 // List of my app-store indicators: http://blog.tradingview.com/?p=970 // study(title="DiNapoli MACD [LazyBear]", shorttitle="DMACD_LB", overlay=false) lc = input(17.5185, title="Long Cycle") sc =input(8.3896, title="Short Cycle") sp =input(9.0503, title="Signal Length") src=input(close, title="Source") fs = nz(fs) + 2.0 / (1.0 + sc) * (src- nz(fs)) ss = nz(ss) + 2.0 / (1.0 + lc) * (src - nz(ss)) r = fs - ss s = nz(s) + 2.0/(1 + sp)*(r - nz(s)) plot(r, style=columns, color=r>0?green:red, transp=80, title="Histo") plot(s, color=teal, linewidth=2, title="Dinapoli MACD")