ucsgears

UCS_S_Steve Primo - Strategy #5 (FOREX Only)

Here we have another Steve Primo Strategy ( #5)

This is a short term, trend continuation strategy, Recommend using this on 30 Mins + time frames.

I have added few things.
1. PET-D filter, to identify the trend along with the SMA 50. ----> Setup in line with PET-D ( EMA ,15) trend confirmation.
2. Option for Harami Candle identification (may not be Steve Primo Setup), There is no evidence on any of the videos listed below for Harami or other candlesticks pattern.

Future - Planned to add other candle patterns.

Videos from Youtube
1. https://www.youtube.com/watch?v=C4o2OyqV8es -
2. https://www.youtube.com/watch?v=3ZzOcVOcZL4 - Hints disclosed on this video.
3. https://www.youtube.com/watch?v=pId1mTnogPg - Claims this is his GO TO strategy for FOREX.
4. https://www.youtube.com/watch?v=NlwG0xpcpIs - Complete Free Lesson.

Note - I did not buy this Strategy, I do not own in any way shape or form of this strategy as presented in the videos, The Strategy I am posting is my interpretation based on Steve Primo's videos listed above and few more on youtube.

Good Luck folks.
Remove from Favorite Scripts Add to Favorite Scripts
// Created By UCSgears
// Here is another Steve Primo Strategy. He calls it Strategy #5, and only use it on FOREX. Not in Stocks or Futures. 

study("Steve Primo - Strategy # 5", overlay = true)

// Trend SMA
scolor = input(true, title = "Show Bar Colors")
sh = input(false, title = "Show Harami Candle Setup")
se = input(true, title = "Show Engulfing Candle Setup")
//sp = input(false, title = "Show Pinbar Candle Setup")

trend = sma(close,50)
trendup = close > trend ? 1 : 0
trenddn = close < trend ? 1 : 0

// PET-D
petd = ema(close,15)
petdup = close > petd ? 1 : 0 
petddn = close < petd ? 1 : 0

// Bullish Engulfing
BuE = trendup == 1  and petdup == 1 ? (close > open) and (close[1] <= open[1]) and (close >= open[1]) and (open <= close[1]) and (abs(close - open) > abs(open[1] - close[1])) : na
BuEC = scolor == 1 and BuE == 1 ? green : na
barcolor(BuEC)

// Bearish Engulfing
BrE = trenddn == 1  and petddn == 1 ? (close < open) and (close[1] >= open[1]) and (close <= open[1]) and (open >= close[1]) and (abs(close - open) > abs(open[1] - close[1])) : na
BrEC = scolor == 1 and BrE == 1 ? red : na
barcolor(BrEC)

// Harami Candle addition is not part of his strategy

// Bullish Harami
BuH =  trendup == 1  and petdup == 1 ? (close > open) and (close[1] <= open[1]) and (close <= open[1]) and (open >= close[1]) and (abs(close - open) < abs(open[1] - close[1])) : na
BuHC = scolor == 1 and BuH == 1 ? lime : na
barcolor(BuHC)

// Bearish Harami
BrH =  trenddn == 1  and petddn == 1 ? (close < open) and (close[1] >= open[1]) and (close >= open[1]) and (open <= close[1]) and (abs(close - open) < abs(open[1] - close[1])) : na
BrHC = scolor == 1 and BrH == 1 ? orange : na
barcolor(BrHC)

// ALL PLOTS

plotchar(sh ? BuH : na, title="Long Setup Bar", char='⇑', location=location.belowbar, color=green, transp=0, text="S #5 Harami Long")
plotchar(sh ? BrH : na, title="Short Setup Bar", char='⇓', location=location.abovebar, color=red, transp=0, text="S #5 Harami Short")

plotchar(se ? BuE : na, title="Long Setup Bar", char='⇑', location=location.belowbar, color=green, transp=0, text="S #5 Engulf Long")
plotchar(se ? BrE : na, title="Short Setup Bar", char='⇓', location=location.abovebar, color=red, transp=0, text="S #5 Engulf Short")
hi cn u please help me for AMI BROKER AFL AS LIKE THIS
Reply
I want to thank you for the programming examples. I saw the youtube video and thought to practice writing an indicator to show the price above the 50sma and top 25% close candle. I did it. Then I found your work on this site and learnt a lot more
Reply
Hi, i am getting 2 errors when compliling the code after pasting it?

'scolor' - declaration without type Line: 7 Column: 1

')' - unexpected end of program Line 49 Column 132
Reply
Try copying again?
Reply
@ll, I' getting the same errors here;
Also, "study" is without declaration.

Any ides how to fix this?
Thanks
Reply
ucsgears PRO BaruchBenNeriah
@BaruchBenNeriah, Copy paste all the error message. I will have to see it.
Reply
Mosesy ucsgears
@ucsgears,

Hi UCSGears.

I always appreciate your efforts to assist us novices. I am also getting the same error messages as BaruchBenNariah above;
study" is without declaration and
')' - unexpected end of program Line 49 Column 132

I am totally stuck and cannot proceed. I am quite keen to use this strategy. Please help













Reply
@Mosesy, The unexpected end is, you might be missing a "(" somewhere.

Declaration, Check if you have any conflicting variables.

I just tried copying from line 1 to 49. It works.
Reply
Mosesy ucsgears
@ucsgears, Thanks very much UCSGEARS for your response. I forgot to mention that I use mt4 which might be the reasons of the errors. If so, would you have something similar that works for mt4 charts.
Reply
You continue to amaze. Your contributions to this community are profound. I love the way you allow us to see these various versions mature over time from the early releases to the continuous improvements. It helps not only to provide a better end result but we see the various stages in between. That helps me more than waiting for the final perfect version and it helps us to learn - and sometimes make observations along the way. Thanks for all you are doing to help us!
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out