# Find stock 5% below 52wk high

#### Nikola

##### Member

Hope i posted the image right, Im trying to find stocks 5% BELOW the 52wk high....using this finds me stocks above AND below... any help

#### vro3

##### Member
came here to ask the same thing.

Staff
VIP

#### vro3

##### Member
thank you! possible to do ATH instead of 52? and a scan? I'm sure it is... haven't looked yet.

#### Nikola

##### Member
I was more looking to catch things before the break of a new high, like 10day or 1month high, so i prefer a scan

#### markos

##### Well-known member
VIP
I was more looking to catch things before the break of a new high, like 10day or 1month high, so i prefer a scan
@Nikola @vro3 what @BenTen gave would work as a scan with a change of a few words.

Further, the picture in the 1st post returned just what it was supposed to.

Try the built in High, Higher or Highest as you've built in 1st post.

Read the manual. Keep trying. Look in the tutorials section, I know the OneNote has some direction also. Good luck.

#### Greezee

##### New member
I'm looking to create a scan that has multiple filters. One of the filters, I'd like to create is to identify if the stock is within 5 % of the 52 week high. I have this code which identifies if it equals the 52 week high, but not sure how to do the math for the %.

Code:
``````plot scan;
scan = close == highest(high,52);``````

#### XeoNoX

##### Well-known member
VIP
@Greezee price 5% within 52 week high

Appreciation Goes a long way, remember to hit the like button if you found this post useful

Code:
``````def price = close;
input period = 252;

input choice1 = 5.0;

def hi = high;

def  scan = price >= highest(hi,period)* ((100 - choice1) /100);``````

#### XeoNoX

##### Well-known member
VIP
thank you! possible to do ATH instead of 52? and a scan? I'm sure it is... haven't looked yet.
just change where it says DAY to month, and put in the #of months.

#### MColb

##### New member
Is there a way to input a line 25% under the 52 week high?

VIP

#### MColb

##### Well-known member
VIP
Yes... Have you tried it yourself...???

#### MColb

##### New member
Yes... Have you tried it yourself...???
Yes, can't seem to get it.

#### MColb

##### New member
Yes... Have you tried it yourself...???
Actually if there's a % from 52 week high label that would work much better.. thanks!

VIP