PET-D Steve Primo

This is the technical indicator that Steve Primo calls the "PetD" and charges $495 USD. My gift to you for free.
Apr 06
Release Notes: Fixed typo and added alert conditions as suggested here. 6 Apr 2019
Remove from Favorite Scripts Add to Favorite Scripts
hi mattdelong where do i find this indicator i would like to have it thank you
Hi Matt, any chance you know how to convert this into Easy Language??

Made some updates this weekend new version below:

//author =

study("PET-D Steve Primo", overlay=true)
petda = (ema(close,5) > ema(close,15)) ? 1 : 0
petdb = (ema(close,15) > ema(close,5)) ? 1 : 0
marker = input(title="Show Entry/Exit Markers", type=bool, defval=true)

barcolor((petda) ? green : red)
mychar1 = crossover(petda, petdb) and marker ? 1 : 0
mychar2 = crossover(petdb, petda) and marker ? 1 : 0
plotshape(mychar2, style=shape.triangledown, location=location.abovebar, size=size.tiny, color=red)
plotshape(mychar1, style=shape.triangleup, location=location.belowbar, size=size.tiny, color=green)

// === ALERT ===
alertcondition(mychar1 or mychar2, title="Signal Alert",message="SIGNAL")
alertcondition(mychar1, title="Long Alert",message="Long")
alertcondition(mychar2, title="Short Alert",message="Short")
+4 Reply
Hello, I get this message when trying to save the script in pine editor:

Script could not be translated from: petda = (ema(close,5)

Trying to add the script+alarms,

The Pet-D seems to be nothing more than a cross of the 8 EMA, with a change of colour bars. Perhaps befitting the T-line cross strategy of Rick Saddler.
+4 Reply
Thanks Matt, for the Awesome Gift.
Good man, God Bless You !
+2 Reply
sozo btleo2017
@btleo2017, how can I download this into my mt4 platform
+7 Reply
Can't get the buy/sell signal triangles to work. Any reason this could be? I see it in the code.
+3 Reply
@zigeye, change the following in the code.

petda = (ema(close,5) > ema(close,15)) ? 1 : 0
petdb = (ema(close,5) > ema(close,15)) ? 0 : 1
marker = input(title="Show Entry/Exit Markers", type=bool, defval=true)
how can we put it on metastock, do you have any idea sir?
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out