session min/max support&resistance
Nov 22, 2021

The session min/max support&resistance indicator identifies and projects key price levels from specific trading sessions to help traders visualize historical support and resistance zones. It automatically calculates the high, low, and open prices for a user-defined session interval, rendering lines that persist until mitigated by price action or according to specific user constraints.
Usage
The Usage section describes how the script can be used to identify key inflection points based on session extremes. Traders can use this tool to spot unmitigated session highs and lows, which often act as magnetic levels or areas of liquidity.
- Identifying Support and Resistance: The indicator plots lines at the highest and lowest points of a completed session. These lines serve as potential support or resistance in future sessions.
- Session Open Levels: A dedicated line is drawn at the start of the session (open price), which can be used to gauge intraday bias.
- Granular Level Control: Users can control exactly how many historical levels are displayed on the chart to prevent clutter while maintaining focus on the most relevant price data.
- Line Mitigation: By default, lines extend until the price crosses them, allowing traders to see which historical levels have not yet been "retested" or "filled."
Details
The script operates by tracking price action within a specific i_session time window. At the conclusion of the session, it identifies the exact bar index and price of the session high and low.
The implementation utilizes arrays to manage line and label objects, ensuring that the chart only displays the most recent number of levels specified in the settings. The extension logic checks on every bar if the current high or low has intercepted an active line; depending on the "Delete lines" or "Extend lines" settings, the indicator will either stop extending the line, remove it, or continue projecting it indefinitely.
Settings
General Setting
- Session: Defines the time range (in UTC) for the session to be analyzed.
- Show labels: Toggles the visibility of price labels next to the session lines.
- Delete lines: If enabled, lines will be removed from the chart entirely once price crosses them.
High/Low Line Settings
- Line count: Sets the maximum number of high and low session lines to display on the chart.
- Extend lines: When enabled, lines extend indefinitely regardless of whether price has crossed them.
- Line thickness/style: Customizes the visual weight and pattern (dotted, solid, dashed) of the levels.
- Up/Bottom color: Adjusts the colors used for session highs (Up) and session lows (Bottom).
Open Line Settings
- Line count: Sets the number of session open price levels to display.
- Extend lines: Controls whether the open price line projects indefinitely or stops upon price mitigation.
- Open session line color: Sets the color for the session start price level.
FAQ
How can I change the session time?
You can modify the "Session" input in the General Settings group using the "HHMM-HHMM" format to match your desired trading hours.
Why do some lines disappear?
Lines may disappear if the "Delete lines" setting is enabled and the price has touched or crossed that specific level. Alternatively, if you reach the "Line count" limit, the oldest lines are removed to make room for new ones.
How do I access this tool?
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.

