The screener will find stocks that are trading near their 52-Week Highs.
The price distance is in percent and freely adaptable with the “percent” variable setting.
The highest highs must be the same since 20 bars.
//PRC_Resting Above 52-Week Highs | screener
//11.07.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
percent = 10 //price distance in percent from the 52-Week Lows
hh = highest[52](high)
c0 = summation[20](hh=hh[1])=20
c1 = close/hh>=(1-percent/100)
screener[c0 and c1](close/hh)