I did not buy this indicator, I do not have the code. But Most likely this is what's is being calculated.
More Video here - http://www.protraderstrategies.com/primo-early-trend-detector-pet-d/
Compare this indicator with his charts shown in the video
Save another $495 bucks.
This is not the actual code for this indicator. This is my perception of the code. Here in these free video There are few examples, you can compare the robbery pet-d with the actual PET-D
I have to agree, this is not perfect, Out of all the examples, There was one bar that did not match.
//Created by UCSgears, Found PET-D Indicator for sale and Subscription via youtube // Link : http://www.protraderstrategies.com/primo-early-trend-detector-pet-d/pet-d-members-area/ study(title="Steven Primo's PET-D", shorttitle="Pet-D", overlay=true) petd = ema(close, 15) up = close > petd ? green : red barcolor(up)
assignPriceColor(if close is greater than or equal to MovAvgExponential("length" = 15) then globalColor("Long") else globalColor("Short"));
def Positive = close is greater than or equal to MovAvgExponential("length" = 15);
def Negative = close is less than or equal to MovAvgExponential("length" = 15);
plot Bearish = Negative;
plot Bullish = Positive;