52 week low in the past
- This topic has 5 replies, 2 voices, and was last updated 10 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProScreener support › 52 week low in the past
Try this one:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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
You asked for the lowest CLOSE, this is the code for the lowest LOW:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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).
Find exclusive trading pro-tools on