Indicators··6 min read

Prior Day High Low Settlement

0 references, link-verified · inline [n] markersEditor of record: Shane CantyStandards review editorial standard · audit log

This indicator displays the previous trading day's high, low, and settlement (closing) price levels as reference lines overlaid on the current chart. These levels serve as key support and resistance points that traders use to assess intraday price action against the prior day's range. The indicator works across any timeframe from minute charts to weekly charts, automatically retrieving the prior day's daily OHLC data.

Traders use prior day levels for multiple purposes: identifying potential bounce points after overnight gaps, gauging whether current price is trading above or below yesterday's range, setting initial profit targets, and managing risk in relation to established daily boundaries [1]. The indicator is particularly useful for intraday traders, day traders, and swing traders who reference daily structure as part of their market analysis.

//@version=6
indicator("Prior Day High Low Settlement", overlay=true)

// Retrieve prior day's OHLC data
priorHigh = request.security(syminfo.tickerid, "D", high[1])
priorLow = request.security(syminfo.tickerid, "D", low[1])
priorClose = request.security(syminfo.tickerid, "D", close[1])

// Input: colors for each level
colorHigh = input.color(color.new(color.green, 0), "Prior Day High Color")
colorLow = input.color(color.new(color.red, 0), "Prior Day Low Color")
colorClose = input.color(color.new(color.blue, 0), "Prior Day Settlement Color")

// Input: line width
lineWidth = input.int(2, "Line Width", minval=1, maxval=5)

// Input: visibility toggle for each level
showHigh = input.bool(true, "Show Prior Day High")
showLow = input.bool(true, "Show Prior Day Low")
showClose = input.bool(true, "Show Prior Day Settlement")

// Plot lines: when condition is false, plot(na) hides the line
plot(showHigh ? priorHigh : na, "Prior Day High", color=colorHigh, linewidth=lineWidth)
plot(showLow ? priorLow : na, "Prior Day Low", color=colorLow, linewidth=lineWidth)
plot(showClose ? priorClose : na, "Prior Day Settlement", color=colorClose, linewidth=lineWidth)

How the code works

The script uses request.security() to fetch prior day OHLC data regardless of the current chart timeframe [2]. The function call request.security(syminfo.tickerid, "D", high[1](#ref-1)) retrieves the previous day's completed high: syminfo.tickerid specifies the current instrument, "D" requests daily data, and high[1](#ref-1) accesses the bar one period back (yesterday's candle). This approach works on both daily and intraday charts because request.security() always operates on the requested timeframe internally.

The script defines three input color parameters allowing full customization of each level's visual appearance. The input.int() function for line width gives traders control over visibility. Three boolean inputs via input.bool() let traders toggle each level independently without modifying the code, useful when focusing on specific price levels.

The plot() statements render each level as a horizontal line. When a toggle is set to false, the conditional expression showHigh ? PriorHigh : na returns na (not available), which suppresses the line. This approach leaves all levels calculated but hidden when not needed, providing responsive control.

Reading it on a chart

On an intraday chart, the three horizontal lines represent yesterday's trading boundaries. The prior high appears at the top of the previous day's range, the prior low at the bottom, and the settlement line at yesterday's close. Traders observe how current price action relates to these anchors: if price trades above the prior high, it signals potential breakout activity; if price moves below the prior low, it suggests breakdown conditions. The settlement level itself often acts as a reference point; price may gravitate toward it following gap movements.

The lines persist across the entire current trading day, making it easy to see at a glance whether today's range is expanding beyond yesterday's or contracting within it. Intraday traders may use the prior high as a target when price rallies in the morning, or the prior low as a stop-loss reference when defending a position. Swing traders may use the same levels to plan entries or exits over multiple days.

Limitations

This indicator has significant practical and conceptual constraints. First, prior day's levels are static reference points; they carry no inherent predictive power regarding future price movement. Many traders assume yesterday's high will act as resistance today, but this assumes market memory and repeat behavior that markets do not guarantee. Price may push through either level with no resistance.

Second, the indicator provides no signal, it does not identify reversals, breakouts, or trade opportunities. It marks levels only; interpretation and decision-making rest entirely with the trader. A trader relying solely on these lines without additional analysis (volatility, volume, trend confirmation) is working with incomplete information.

Third, on markets with significant overnight gaps (particularly commodity and currency markets) [3], the prior close may have little relevance to the current session's price action. A gap up at market open may render the prior day's range irrelevant within minutes.

Fourth, on chart timeframes at or above the daily, the usefulness diminishes. A weekly chart viewer looking at the "prior day" high receives a value one day prior, not prior-week structure; for weekly reference levels, a different indicator approach is needed.

Finally, the indicator uses the close price as settlement. In some markets (notably commodity futures), settlement and close differ by rule; the script uses close as a proxy, which may not match the official settlement price published by the exchange [4].

Key definitions

Prior Day High: The highest price paid for the security during the previous complete trading day, used as a reference level for intraday price action analysis.

Prior Day Low: The lowest price reached during the previous complete trading day, used as a reference level for identifying potential support.

Settlement: The official closing or settlement price of a security at the end of a trading session, often distinct from the last executed trade price in futures markets.

Overlay: A chart display mode in which the indicator's lines are drawn on top of the price candlesticks, rather than in a separate panel below the main chart.

Support and Resistance: Price levels at which an asset has historically found buying interest (support) or selling pressure (resistance), often based on prior trading ranges.

Request.security(): A Pine Script function that retrieves OHLC and other data from a different timeframe or instrument, enabling multi-timeframe analysis within a single script.

Repainting: A behavior in which an indicator's value changes retroactively on historical bars as new data arrives; this script avoids repainting by using only completed prior-bar data.

References

  1. Investopedia, "Support and Resistance: Technical Analysis Basics" (2024). Https://www.investopedia.com/terms/s/support.asp

  2. TradingView, "Pine Script v6 Reference Manual: request.security()" (2025). Https://www.tradingview.com/pine-script-reference/v6/#fun_request.security

  3. CME Group, "FX Contracts: Trading Hours and Overnight Sessions" (2024). Https://www.cmegroup.com/

  4. CME Group, "Futures Contracts: Settlement Price Definitions" (2024). Https://www.cmegroup.com/

  5. SEC, "Market Structure and Trading: Regular Trading Hours" (2024). Https://www.sec.gov/

  6. Wikipedia, "Support and Resistance (Trading)" (2024).


Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard.

Last reviewed by the PropLedger research pipeline: 2026-11-01. Educational research on historical data, not financial advice.

Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard. Found an error? Email support@prop-ledger.org and the paper is corrected or withdrawn.