Nicolas

Breakout Stocks screener

Category: Screeners By: Nicolas Created: March 7, 2016, 9:56 AM
March 7, 2016, 9:56 AM
Screeners
4 Comments
Breakout Stocks screener

This breakout stocks screener come with my article here : http://www.prorealcode.com/blog/trading/stocks-breakouts-find-easily-proscreener/

Its purpose is to find the current stocks that may breakthrough their recent 52 week high on a daily timeframe.

//bullish trend
EMA1 = exponentialaverage[20](close)
EMA2 = exponentialaverage[50](close)
bullish = Close>EMA1 AND Close>EMA2 AND EMA1>EMA2

//near 52 week highest price
FiftyTwoWeekHigh = highest[250](high)
FivePercentBelow = 1-(Close/FiftyTwoWeekHigh)<5/100 

//the recent 52 week high were created at least 3 days ago
if FiftyTwoWeekHigh = FiftyTwoWeekHigh[1] AND FiftyTwoWeekHigh = FiftyTwoWeekHigh[2] AND FiftyTwoWeekHigh = FiftyTwoWeekHigh[3] THEN
  AtLeast3DaysAgo = 1 
ELSE
  AtLeast3DaysAgo = 0
ENDIF

AllConditions = bullish AND FivePercentBelow AND AtLeast3DaysAgo = 1

SCREENER [AllConditions]

 

Download
Filename: Breakout-Stocks-fetcher.itf
Downloads: 713
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Mike.44
3 years ago
#

Thanks It a good job !

qigley
4 years ago
#

Line 4 has a redundant term "Close>EMA2." is not necessary as EMA2 will always be less than EMA1. So only needs bullish = EMA1 > EMA2 AND Close > EMA1

EAxelsson
7 years ago
#

Hi, shouldn´t it be or instead of and? if FiftyTwoWeekHigh = FiftyTwoWeekHigh[1] OR FiftyTwoWeekHigh = FiftyTwoWeekHigh[2] OR FiftyTwoWeekHigh = FiftyTwoWeekHigh[3] THEN

Nicolas
11 years ago
#

This stock screener has also been re-coded for bearish side to fetch breakdown stocks, as a request on ProScreener support forum, here : www.prorealcode.com/topic/breakdown-stocks-fetcher/

ProRealCode ProRealCode
Loading...