Previous Day Week Highs & Lows
Jan 12, 2020

The Previous Day Week Highs & Lows indicator plots the historical highs and lows of previous days, weeks, and months to provide key support and resistance levels across multiple timeframes.
Usage
The Usage section focuses on identifying institutional liquidity zones and significant price pivots based on historical period extremes. Traders can use these levels to anticipate price reversals or breakouts.
- Intraday Analysis: Daily levels are automatically displayed on intraday timeframes, helping scalpers and day traders identify previous session ranges.
- Swing Trading: Weekly and Monthly levels provide a broader context of market structure and are visible on daily and intraday charts.
- Projections: By enabling "Show Projections," the script extends the levels into the future, making it easier to visualize potential interactions with upcoming price action.
- Recency Visuals: The "Show Gradient" feature applies a color fade to older levels, allowing users to quickly distinguish between the most recent extremes and older historical data.
Details
The indicator utilizes the request.security function with lookahead_on to accurately capture the high and low values of higher timeframes without repainting the historical levels once the period is closed. It maintains a buffer of lines using Pine Script arrays, ensuring that only the user-defined number of previous periods (lookback) are displayed.
To maintain chart clarity, the script includes logic to filter visibility based on the current chart timeframe:
- Daily Levels: Only visible on intraday timeframes.
- Weekly Levels: Visible on intraday and daily timeframes.
- Monthly Levels: Visible on all timeframes except the monthly chart.
Settings
Highs & Lows
- Daily: Toggles visibility of previous daily highs and lows. Includes color selection and a lookback setting to determine how many previous days to display.
- Weekly: Toggles visibility of previous weekly highs and lows. Includes color selection and a lookback setting for the number of weeks.
- Monthly: Toggles visibility of previous monthly highs and lows. Includes color selection and a lookback setting for the number of months.
Style
- Show Projections: Extends the previous period lines into the right margin of the chart by a specified offset.
- Show Gradient: Enables a transparency gradient where the newest lines are solid and older lines become increasingly transparent based on the lookback depth.
FAQ
How do I use this indicator for breakout trading? Traders often monitor price action around the previous day or week high/low; a sustained break above these levels can signal bullish momentum, while a break below can signal bearish momentum.
Why are the Daily lines not appearing on my Daily chart? Daily levels are filtered to only show on intraday timeframes to prevent clutter and because the high/low of a daily bar is already represented by its wick on a daily timeframe.
How can I get access to the Previous Day Week Highs & Lows? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

