Find stock 5% below 52wk high

Nikola

Member
p7oQ3yr.png


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
 

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);
 

MerryDay

Well-known member
VIP

Similar threads

Top