LazyBear

DecisionPoint Price Momentum Oscillator [LazyBear]

The DecisionPoint Price Momentum Oscillator (PMO) is an oscillator based on a Rate of Change calculation that is smoothed twice with custom exponential moving averages. Because the PMO is normalized, it can also be used as a relative strength tool.

PMO can be used in many ways:
- PMO can be used to determine the OB/OS state. While the +2.5 to -2.5 is the usual range for broad stock market indexes, each price index will have its own “signature” range. You may have to tune this for your instrument.
- PMO triggers buy/sell on signal crossovers and ZERO crossovers.
- Common patterns like BullKiss, BearKiss are useful to track. See the link below for more info.
- Divergences.
- Histo-only mode that can be used similar to MACD-Histo.

I have exposed all params as configurable. Have fun tuning :) Don't forget to share what you found for your instrument.

More Info:
http://stockcharts.com/school/doku.php?st=pmo&id=chart_school:technical_indicators:dppmo

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

Some Sample Charts:

TWTR:
snapshot

MSFT:
snapshot

GOOGL:
snapshot


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="DecisionPoint Price Momentum Oscillator [LazyBear]", shorttitle="DPMO_LB")
src=input(close, title="Source")
length1=input(35, title="First Smoothing")
length2=input(20, title="Second Smoothing")
siglength=input(10, title="Signal Smoothing")
fr=input(true, title="Fill Region")
ehc=input(false, title="Enable Histo Color")
ebc=input(false, title="Enable Bar Colors")
soh=input(false, title="Show Only Histo")
slvl=input(false, title="Show OB/OS Levels")
oblvl=input(2.5, title="OB Level"), oslvl=input(-2.5, title="OS Level")
calc_csf(src, length) => 
	sm = 2.0/length
	csf=(src - nz(csf[1])) * sm + nz(csf[1])
	csf
i=(src/nz(src[1], src))*100
pmol2=calc_csf(i-100, length1)
pmol=calc_csf( 10 * pmol2, length2)
pmols=ema(pmol, siglength)
d=pmol-pmols
duml=plot(not soh and fr?(d>0?pmol:pmols):na, style=circles, color=gray, linewidth=0, title="DummyL")
plot(0, title="MidLine")
hc=d>0?d>d[1]?lime:green:d<d[1]?red:orange
plot(d, style=columns, color=ehc?hc:gray, transp=80, title="Histo")
sigl=plot(soh?na:pmols, title="PMO Signal", color=gray, linewidth=2, title="Signal")
mdl=plot(soh?na:pmol, title="PMO", color=black, linewidth=2, title="PMO")
fill(duml, sigl, green, transp=70, title="PosFill")
fill(duml, mdl, red, transp=70, title="NegFill")
barcolor(ebc?hc:na)
plot(not soh and slvl?oblvl:na, title="OB Level", color=gray, linewidth=2)
plot(not soh and slvl?oslvl:na, title="OS Level", color=gray, linewidth=2)
I appreciate this mate, seems as an excellent work. Thumbs up, allthout, got to test it to see how big delay is there! with signals I mean
Reply
LazyBear PRO PeterOndrovic
Thanks.
Reply
Nailed it on the cross over points by the looks of it. Been trying to crack this for last couple months nice work LB,
Reply
Thanks vdubus.
Reply
vdubus PRO LazyBear
35, 20, 10 damb that's been driving me nuts lol thank you :)
Reply
Carl Swenlin & Stockcharts.com teamed up a while ago. Carl does some pretty solid stuff and thanks for coding this.
Reply
LazyBear PRO rmwaddelljr
yw :)
Reply
There must be 3 of you Lazy Bear the amount of work you do! How can we ever repay you? Incredible well done!
Reply
LazyBear PRO glennjoy1
Thanks @glennjoy1 for your kind words. Believe it or not, I am very lazy by nature (typical Taurean!) :)
+1 Reply
hello, excellent char and script :) this is my view
HOW LONG EU COULD GO UP AND HOW MUCH COULD FAILS (minimun)
Reply
Thx!
Reply
Excellent Oscillator!!!!!! Thanks for sharing!!!!
Reply
LazyBear PRO sudhir.mehta
yw
Reply
The word "excellent" was mentioned three times already in the comments and I add one (two) more. This indicator script is really excellent :) Thank you!
Reply
ChartArt ChartArt
FYI:

"Do PMO Sell Signals in All Three SPY Time Frames Spell Doom?"

"Currently for the S&P500, all three PMO signals (short-, medium-, and long-term) are in bearish mode."
http://stockcharts.com/articles/decisionpoint/2015/06/spy-do-pmo-sell-signals-in-all-three-time-frames-spell-doom.html
Reply
rmwaddelljr ChartArt
Short answer: No. Longer answer: "CONCLUSION: While price action is still bullish--Trend Model signals are BUY in all time frames--PMOs in all time frames tell us that the market is being undermined internally. In particular, the weekly and monthly PMOs are negative and it will require persistently positive price action to reverse the outlook in those time frames. Bottom line, in my opinion, the market is probably in a topping process that will result in a significant decline." (to quote stockcharts)

Topping processes take a long time to form. My take? Watch this oscillator along with other indicators. I asked Lazybear to code this for
2 reasons: 1. Price momentum is but one part of the puzzle, but I feel (for my purposes) I need the info in the larger picture. 2. It's a
great complement to other studies such as bollinger bands, keltner channels, starc bands, volume studies and the like which I use.

The DPMO can be found on stockcharts.com and they have a fine platform for charting. I like TV's better (I like to tinker and be around others who like to do the same:)) Finally, the best two pieces of information is price action and the indicator between your ears...unbeatable!
Reply
Xolus rmwaddelljr
Thank you for requesting this PMO indicator from LazyBear then. I had come around the stockcharts.com description page of it once while surfing, but had never tested the indicator itself before. And yes, there is definitely a topping process going on.
Reply
Another comment (or question really) too about the PMO is that a longer period of sideways consolidation might appear to be topping. If you notice on any daily SPY chart, that from Nov 2014 through the end of Jan 2015, people were calling for "market top" then. But., not so as it turned out. The market began its upward trek again until mid Feb until now (highlighted portion of chart). Will earnings season be the catalyst to march higher? Or, will it be a disaster and the market pulls back? Or, will there be an event to take us higher or lower? The PMO turned down in each of these time periods only to take off again. The answer? I don't know. Neither does Mr. Swelin, but his indicators and technical analysis suggests "watch". Mr. Market will fool most if not all. Bears have shorted this market only to cover later. My suggestion is to watch biases, exercise good risk management with a strategy you like and be flexible enough to change when it doesn't work out:) Hated to be long winded but thought it deserved some fleshing out.
snapshot
Reply
ChartArt rmwaddelljr
I agree. It is definitely time to "watch".

"Bears have shorted this market only to cover later. "

Yes, which is the reason why I wait for a real double top, or a bounce after a larger breakdown, before I go full bear in Q3 2015. And I also thank you for requesting this indicator :)
Reply
rmwaddelljr ChartArt
You're Welcome :)
Reply
YW :)
Reply
yah yah yah... but wheres my damn Shadow Channels?
Reply
LazyBear PRO Futuraman
You mean this one?
snapshot


ping me, we can work out a deal to make this "your" shadow channels. :P
Reply
Oh you are such a tease!!!
Reply
Hi, What is the indicator that draws the Red and Green horizontal support and resistance lines?
Reply
It is RSI S/R Levels. More info: http://blog.tradingview.com/?p=970
Reply
great works,thanks, I'm trying to code PMO in mt4 following your codes
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
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