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") 
Up to red or down to green in your opinion? Thanks :)
+1 Reply
LazyBear PRO alteredend
Something like this probably
snapshot

+2 Reply
It touched 238 already, but is sticking this level very well.

snapshot


Another view. Short term EMAs are turning up now. Not enough confirmation, though. Lets see how long price stays with in this range.

snapshot

+1 Reply
alteredend LazyBear
Prediction looking good so far. If we break 1481 on Huobi is that confirmation?
Reply
alteredend alteredend
http://imgur.com/uENdYeX some similarities here. Looks due to blow.
Reply
This worked out well.

snapshot
Reply
alteredend LazyBear
Nice call, thinking one more leg down or resume up?
Reply
LazyBear PRO alteredend
This will retest this 230 level again, imo...lets see what price does at that level.

snapshot
Reply
alteredend LazyBear
Do you think one exchange leads over the others? Huobi seems to produce most manufactured looking charts to me anyway. Bitfinex dropped much further than Huobi. Lets see what happens here. Have a nice short going if this holds.
Reply
alteredend alteredend
http://imgur.com/NgsXvjk We did touch this line on that drop. you'd think that would hold for a bit anyway.
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
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
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
where I can find DPStoch indicator please
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out