ChrisMoody

CM_Laguerre PPO PercentileRank Mkt Tops & Bottoms

Custom Code that Finds Market Tops & Bottoms!!!

CM_Laguerre PPO PercentileRank V2 Mkt Tops & Bottoms

Original Laguerre PPO code was Created by TheLark.
Special Thanks to coondawg71 and ChartArt for Great Insights

This Is Version 2 Of This Indicator that now Finds Market Tops and Bottoms.

Coming Next…Upper Indicator Pinpointing Entries Based on Price Action!!!

See Original Post Below For Detailed Information.
CM_Laguerre PPO PercentileRank - Markets Topping



Other Indicators That Show Market Bottoms Well.

CM             ATR PERCENTILERANK - GREAT FOR SHOWING MARKET BOTTOMS!
CM ATR PercentileRank - Great For Showing Market Bottoms!


GREAT CONFIRMING INDICATOR FOR THE WILLIAMS VIX             FIX
Great Confirming Indicator For The Williams Vix Fix


TWO TRADING SYSTEMS - BASED ON EXTREME MOVES!!!
Two Trading Systems - Based on Extreme Moves!!!

Remove from Favorite Scripts Add to Favorite Scripts
//Created by ChrisMoody on 11/03/2014...Original PPO Code Created by TheLark
//Thanks to coondawg71 and ChartArt for Great Insights
//Great for Spotting Tops & Bottoms.
study(title = "CM_Laguerre PPO PercentileRank Mkt Tops & Bottoms", shorttitle="CM_Laguerre PPO PctRank Tops-Bottoms", overlay=false, precision=1)
pctile = input(90, title="Percentile Threshold Extreme Value, Exceeding Creates Colored Histogram")
wrnpctile = input(70, title="Percentile Threshold Warning Value, Exceeding Creates Colored Histogram")
Short = input(0.4, title="PPO Setting")
Long = input(0.8, title="PPO Setting")
lkbT = input(200,title="Look Back Period For 'Tops' Percent Rank is based off of?")
lkbB = input(200,title="Look Back Period For 'Bottoms' Percent Rank is based off of?")
sl=input(true,title="Show Threshold Line?")
swl=input(true,title="Show Warning Threshold Line?")

//Laguerre PPO Code from TheLark
lag(g, p) =>
    L0 = (1 - g)*p+g*nz(L0[1])
    L1 = -g*L0+nz(L0[1])+g*nz(L1[1])
    L2 = -g*L1+nz(L1[1])+g*nz(L2[1])
    L3 = -g*L2+nz(L2[1])+g*nz(L3[1])
    f = (L0 + 2*L1 + 2*L2 + L3)/6
    f
lmas = lag(Short, hl2)
lmal = lag(Long, hl2)

pctileB = pctile * -1
wrnpctileB = wrnpctile * -1

//PPO Plot
ppoT = (lmas-lmal)/lmal*100
ppoB = (lmal - lmas)/lmal*100
//PercentRank of PPO 
pctRankT = percentrank(ppoT, lkbT)
pctRankB = percentrank(ppoB, lkbB) * -1
//Color Definition of Columns
colT = pctRankT >= pctile ? red : pctRankT >= wrnpctile and pctRankT < pctile ? orange : gray
colB = pctRankB <= pctileB ? lime : pctRankB <= wrnpctileB and pctRankB > pctileB ? green : silver
//Plot Statements.
plot(pctRankT,title="Percentile Rank Columns", color=colT, style=columns, linewidth=2)
plot(sl and pctile ? pctile : na, title="Extreme Move Percentile Threshold Line", color=red, style=linebr, linewidth=4)
plot(swl and wrnpctile ? wrnpctile : na, title="Warning Percentile Threshold Line", color=orange, style=line, linewidth=4)

plot(pctRankB,title="Percentile Rank Columns", color=colB, style=columns, linewidth=2)
plot(sl and pctileB ? pctileB : na, title="Extreme Move Percentile Threshold Line", color=lime, style=linebr, linewidth=4)
plot(swl and wrnpctileB ? wrnpctileB : na, title="Warning Percentile Threshold Line", color=green, style=line, linewidth=4)
plot(0, title="0 Line Circles Plot", style=circles, linewidth=4, color=silver)
plot(0, title="0 Line-Line Plot", style=linebr, linewidth=4, color=gray)
ChartArt
2 years ago
Well, thank you for coding all these cool indicators in the first place. I guess I speak for everyone here when I say that you are an invaluable asset to the TradingView community.
+9 Reply
ChrisMoody PRO ChartArt
2 years ago
That was all you guys...Alls I did was Invert the Histogram....
+1 Reply
ChartArt ChrisMoody
2 years ago
And that was solely coondawg71's genius simple idea. I only tested it and shared my screenshots. Thanks for creating this new version.
+1 Reply
2use
2 years ago
First to thank you!
+1 Reply
ChartArt
2 years ago
I recommend to combine this script with Chris Moody's other scripts for even greater confirmation, for example:


Williams Vix Fix
CM_Williams_Vix_Fix  Finds Market Bottoms


Parabolic SAR
CM_Parabolic SAR



Triple confirmation of a market bottom:
snapshot
+1 Reply
2use ChartArt
2 years ago
Is there a difference between parabolic sar and updated heiken trend bars changing colors?
Reply
IvanLabrie PRO 2use
2 years ago
Both look decent, heiken seems to change a bit before...
Reply
2use IvanLabrie
2 years ago
If you change to heiken, GANN swings show signals at different dates, so is the trend bars getting colored. I assume ppo has a different result. i seem to note myself using bar color changing on normal bars instead
Reply
IvanLabrie PRO 2use
2 years ago
Using the heiken color bars?
Reply
2use IvanLabrie
2 years ago
Try it - heiken and usual bars. GANN swing signals earlier on normal bars. I understand heiken makes some indicators trigger later, but im not yet home to test SAR, and this one for the difference. Generally i recently looking out to see which one of the top/bottom calling triggers at best time and on which bar type.
Reply
ChrisMoody PRO 2use
2 years ago
My Heikin Candles used on the top chart are for that reason. My Heikin candles act 100% just like normal candles in regards to other indicators...they just color the same a s Heikin-Ashi candles would.
+1 Reply
2use ChrisMoody
2 years ago
Thanx for your answer. As you are here, i indeed wanted to ask you this - but thought not to disturb as i dive into a lot of indicators coded by you and want to test first, then ask questions. But, yes - the heikin color indicator - was it meant for the usual bars instead of heikin? Cause it works on both, and as much as a heikin is good for the eye, i see that some indicators trigger late with that bar selected, but i have to admit i find your heikin coloring script quite useful :)

PS - and a general thanx for all the work you're doing.
Reply
ChrisMoody PRO 2use
2 years ago
it's ONLY for regular Candles/bars etc. It won't work correctly on Heikin-Ashi bars.
+1 Reply
2use ChartArt
2 years ago
And special thanx for pointing out sar to me - i missed and it seems to do a good job as well!
Reply
BizkitBR PRO
2 years ago
LOVE IT !!!!
Reply
guro
2 years ago
Chris, thanks for sharing, Is there anywhere I can download. I get 2 errors when try to compile.
Reply
guro guro
2 years ago
Ignore this Chris, you can tell I'm a newbie on here
Reply
MONEYMENOW PRO
8 months ago
I dont believe in indicators but this one is surely changing my perspective...... good work Sir CM..
Reply
LucaTortiglione
12 days ago
Are you going to update the script adding entry points ?
best regards.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out