Scan for stocks above previous Week High and previous DAY High

W

we29125

Member
Scan for stocks above previous Week High and previous DAY High

How do i do it ? My custom scan query either allow DAY or Week. Not both.
 
BenTen

BenTen

Administrative
Staff
VIP
Use this script:

Code:
#Plot previous week's high / low
plot Yhigh = high(period = "week" )[1];
plot Ylow = low(period = "week" )[1];

In your scanner, create a condition where close is above Yhigh or close is below Ylow.

Then you can also create another condition and change the aggregation period to DAY.
 

Similar threads

Top