Start with the high or low list in TradingView
For U.S. stocks, open the official 52-week high or 52-week low market list linked below. For a controlled universe, open Products > Screeners > Stocks, select the market and exchanges, then search the filters for New High or New Low and select the 52-week period. Keep the two directions as separate screens. Add the price and relevant high/low fields as columns so you can inspect why each symbol matched.
- Choose the security type and currency before comparing prices. Different listings of the same company are different instruments.
- TradingView distinguishes a bar interval from a trailing date range. A monthly candle high is not the same as the highest daily high over a trailing month.
- Its documented new-high rule compares the latest daily high with the period high and includes equality. A tie or intraday wick can therefore qualify without a higher closing price.
- Save the settings and a separate dated candidate snapshot. The saved screen will recalculate; it does not freeze the list you saw.
Calculate distance with an explicit denominator
Let P be the observed price, H the highest high and L the lowest low in the chosen window. For positive prices, percentage below the high is 100 × (H - P) / H; percentage above the low is 100 × (P - L) / L. Pineify uses signed distance from the high, 100 × (P / H - 1), so a price 5% below H appears as -5%. The low distance is positive above L. Use the same window and price basis for all three inputs.
- Hypothetical USD example: H = 120, L = 80 and P = 114. The high distance is -5%; the low distance is +42.5%. This stock passes the near-high rule and fails the near-low rule.
- With the same extremes and P = 84, high distance is -30% and low distance is +5%. This passes the near-low rule exactly. The 5% threshold is illustrative, not an optimized trading parameter.
- The rise needed from 114 to reach 120 is 100 × (120 / 114 - 1) = 5.2632%. That uses current price as the denominator, so it differs from being 5% below the high.
- Missing extremes or zero denominators make the distance undefined. Do not fill missing readings with zero: zero means price is at the extreme. Use unrounded values for threshold decisions when available.
| Illustrative rule | Price condition | Signed distance |
|---|
| Within 5% below the high | 0.95 × H ≤ P ≤ H | -5% ≤ high distance ≤ 0% |
| Within 5% above the low | L ≤ P ≤ 1.05 × L | 0% ≤ low distance ≤ 5% |
| At the high | P = H | High distance = 0% |
| At the low | P = L | Low distance = 0% |
Separate an intraday extreme from a closing break
Suppose the highest price before today was USD 120. Today trades as high as 121 but closes at 118. It made a new intraday high, yet the close did not exceed the prior 120 level. With today included, the high is now 121 and the closing high-distance reading is 100 × (118 / 121 - 1) = -2.4793%. Both observations can be correct.
- For a closing-break rule, freeze the reference window before the current session. Comparing the close with a highest high that includes the same bar makes a strict close-above-high test impossible on consistent OHLC data.
- The mirror example is a prior low of 80, a session low of 79 and a close of 82. The intraday low is new; the close is back above the prior low. Closing distance from the updated low is +3.7975%.
- A live daily close is the latest traded value until the bar completes. Recheck after the regular-session close if your rule requires a closing result. Even that result does not establish that the next session will continue the move.
| Question | High-side test | Low-side test |
|---|
| Did the session reach the extreme? | Session high reaches the period high | Session low reaches the period low |
| Did it strictly exceed the prior extreme? | Session high > prior-window high | Session low < prior-window low |
| Did it close beyond the prior extreme? | Completed daily close > prior-window high | Completed daily close < prior-window low |
Check the window and adjusted price history
Pineify's 252-bar fields count bars on the selected timeframe. At 1D they cover 252 available daily bars; at 1H they cover 252 hourly bars. A trailing 52-week date range, 252 trading bars and 52 weekly candles can have different start points. Holidays, missing sessions and a partial current week matter. For a market trading every day, 252 daily bars are substantially shorter than 52 weeks.
- Record whether the current session is included. A high can fall when an old peak leaves the rolling window, even if current price barely changes. A low can rise for the same reason.
- For a recent listing or a symbol with gaps, inspect the available history. A populated field alone does not prove a complete year of observations.
- Use standard price candles. Record split adjustment and the chart dividend-adjustment setting. TradingView allows dividend-adjusted charts; the screen and chart should not be assumed to share that setting.
- Hypothetical 2-for-1 split: an old USD 100 high becomes USD 50 on a consistently split-adjusted basis. A current price of 49 is 2% below 50, but 51% below an unadjusted 100. Mixing those histories creates a false distance.
- Match the trading session and feed. Extended-hours prints and different venues can change observed extremes. TradingView documents that its default U.S. stock chart feed can differ from primary-exchange data.
Compare TradingView and Pineify results
Pineify Market Screener exposes Distance from 252-Bar High and Distance from 252-Bar Low as sortable columns. Add supported candidate symbols to a collection, set the collection to 1D and check any per-symbol overrides. Sort the high distance toward zero for near-high candidates, or the low distance from zero upward for near-low candidates, then review your threshold. The table supports symbol search and column sorting; this workflow does not assume a custom numeric-filter builder.
- The example row is a calculation check, not a recorded live comparison. Test one passing and one failing symbol, plus a stock with a recent split, before transferring a screen.
- If values disagree, compare the reference high and low first, then the observed price and timestamps. Do not change a threshold merely to force the lists to match.
- Full Market Screener access starts at Expert. A collection supports up to 100 symbols and 20 indicator columns. Active-collection refresh runs every 60 seconds; upstream snapshots can still be older.
- For a custom calendar window, prior-session close rule or limited-symbol table, give those requirements to Pine Script AI Coding Agent. Review and validate the generated script on the intended symbols. Stock Screener does not execute arbitrary Pine code; TradingView Pine Screener is a separate product with its own limits.
| Check | TradingView record | Pineify record |
|---|
| Universe | Market, exchange, security type and selected list | Supported exchange-qualified symbols added to the collection |
| Window | 52-week period and native field definition | 252 bars; select 1D and inspect history coverage |
| Condition | New extreme, distance or closing rule | Close distance; zero does not describe an earlier intraday wick |
| Sign | Read the selected comparison and its denominator | High: negative below H; low: positive above L |
| Price basis | Feed, session, split and dividend treatment | Verify the snapshot against the matching chart history |
| Freshness | Observation time, daily bar state and data delay | Snapshot bar time and received time where available; refresh is not a fresh-trade guarantee |
| Example check | H = 120, L = 80, P = 114 | If the same window and prices apply: high -5%, low +42.5% |
Keep candidates separate from trade decisions
Retain the symbol, scan time, H, L, price, distance, window and reason for inclusion. At the next review, distinguish a price move from a rolling-window change or revised price history. Keep rejected candidates in the record so a later review does not contain only the stocks that worked.
- A new high can reverse after one thin trade; a new low can continue falling. Neither distance measure establishes valuation, liquidity or an entry.
- Before any strategy test, specify entries, exits, transaction costs and handling of missing data. This guide supplies a screening workflow, not backtested performance.