LazyBear

DiNapoli MACD & Stoch [LazyBear]

--- Updated: May 19 2015 ----

Applicable only If you are setting up alerts:

I noticed I have switched the plot names. Histo shd             be the MACD 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 MACD and Stoch used by him. There are more indicators - Detrended Osc, DisplacedMA - that he uses, will publish them all later.

The settings of normal MACD/Stoch can be tuned to obtain these DiNapoli indicators, or if you are lazy (like me!) just use these :)

DiNapoli Preferred Stoch source: http://pastebin.com/zLjdA1Am

More info:
http://www.amazon.com/DiNapoli-Levels-Practical-Application-Investment/dp/1891159046

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

Remove from Favorite Scripts Add to Favorite Scripts
//
// @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[1]) + 2.0 / (1.0 + sc) * (src- nz(fs[1]))
ss = nz(ss[1]) + 2.0 / (1.0 + lc) * (src - nz(ss[1]))
r = fs - ss
s = nz(s[1]) + 2.0/(1 + sp)*(r - nz(s[1]))
plot(r, style=columns, color=r>0?green:red, transp=80, title="Histo")
plot(s, color=teal, linewidth=2, title="Dinapoli MACD") 
where I can find DPStoch indicator please
Reply
Ahh, I just noticed that I have labeled the plots incorrectly. "Histo" should be "DMACD", and "Dinapoli MACD" should be "Signal"

Something to keep in mind when setting up alerts.
Reply
Great job. I was under the impression that we could not code using decimals in the manner called for by the DMACD.
Reply
Thx
Reply
When I watched this DiNapoli guy show off his levels, it seemed that he simply used fib retracement and fib extensions and watched where they overlapped. Is that correct?
Reply
http://imgur.com/dO1G4Bc Possible repeate of this scenario. Zoomed out further it lines up pretty well.
Reply
alteredend alteredend
repeat*
Reply
They are fibs. Trivia: DiNapoli is given the title "Godfather (!?) of Fibs" :)

You also need to keep the timeframe in context, this was back in 80s.
Reply
Up to red or down to green in your opinion? Thanks :)
+1 Reply
LazyBear PRO alteredend
Something like this probably
snapshot

+2 Reply
United States
United Kingdom
India
Deutschland
España
France
Việt Nam
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Support Priority Support Report Issue Ideas Published Followers Following Private Messages Chat Sign Out