Hello,
I would like to see all the stocks that had a 52 week low close on the 10th of novembre 2023.
Thanks
gr Marco
Try this one:
Timeframe(Weekly)
Wlow = close
FOR j = 1 TO 51
Wlow = min(Wlow,close[j])
NEXT
IF Date > 20231110 THEN
Wlow = 999999999
ENDIF
//
Timeframe(Daily)
myLow = Wlow
Cond = 0
FOR i = 0 TO 230
IF Date[i] = 20231110 THEN
IF close[i] = myLow[i] THEN
IF low[i] <> high[i] THEN
Cond = close[i]
break
ENDIF
ENDIF
ENDIF
NEXT
SCREENER[Cond](Cond AS "52w low")
Hi Roberto,
Thanks.
Unfortunately it does not work. The results i get are not 52 week lows on the 10th of november 23. In attachment you find the results.
1 stock of which i am sure it was 52 week low on that date is not in the list. It is: VUZI
Can you check? Thanks
gr Marco
Hi Roberto,
Could you have a look. Thanks
gr Marco
You asked for the lowest CLOSE, this is the code for the lowest LOW:
Timeframe(Weekly)
Wlow = low
FOR j = 1 TO 51
Wlow = min(Wlow,low[j])
NEXT
IF Date > 20231110 THEN
Wlow = 999999999
ENDIF
//
Timeframe(Daily)
myLow = Wlow
Cond = 0
FOR i = 0 TO 230
IF Date[i] = 20231110 THEN
IF low[i] = myLow[i] THEN
IF low[i] <> high[i] THEN
Cond = low[i]
break
ENDIF
ENDIF
ENDIF
NEXT
SCREENER[Cond](Cond AS "52w low")
In addition, try replacing any occurrence of DATE (closing date) by OPENDATE (opening date).