OPEN-SOURCE SCRIPT
Обновлено Previous Session Lines — High, Low, and 50% Levels

This indicator automatically marks the previous completed session’s price range on your chart. You select a daily session window (for example: 09:30–16:00) and the script calculates:
* Previous Session High
* Previous Session Low
* Previous Session 50% (Midpoint)
When a session closes, the indicator draws all three levels on the chart and extends them forward for 24 hours, giving you clean, stable reference levels for the current trading day. Only the most recent session is shown; older sessions are automatically removed.
These levels are commonly used by day traders and swing traders to identify:
* Key support and resistance zones
* Breakout or rejection levels
* Market bias for the new session
* Areas where liquidity tends to accumulate
* Price reaction levels during overnight or intraday trading
Because the lines do not update in real time during the session, the levels remain static, accurate, and truly represent the completed session.
Settings users can adjust:
Session Settings:
* Start and end time of the session (repeats daily)
* Custom session name, which appears on the line labels
Line Appearance:
* Color
* Line thickness
* Line style (solid, dashed, dotted)
Label Appearance:
* Text size (tiny to huge)
* Text color automatically adjusts to contrast with the selected line color
Why this indicator is useful:
* Makes prior session structure immediately visible
* Helps identify high-probability reaction areas
* Shows only one session to reduce clutter
* Lines stay stable regardless of chart zoom or scaling
* Labels stay aligned at the right side of the chart
* Works on all timeframes, including extended hours and crypto charts
This tool is ideal for traders who rely on structured session analysis, including day traders, futures traders, forex traders, crypto traders, and anyone using session highs and lows to guide trading decisions.
This was developed to create an auto-mapping tool to comply with MrZinc's "London 50" strategy. You can learn more about that on his YouTube channel youtube.com/@MrZincx
You can follow my YouTube trading channel here
youtube.com/@HammerGeekTrading
* Previous Session High
* Previous Session Low
* Previous Session 50% (Midpoint)
When a session closes, the indicator draws all three levels on the chart and extends them forward for 24 hours, giving you clean, stable reference levels for the current trading day. Only the most recent session is shown; older sessions are automatically removed.
These levels are commonly used by day traders and swing traders to identify:
* Key support and resistance zones
* Breakout or rejection levels
* Market bias for the new session
* Areas where liquidity tends to accumulate
* Price reaction levels during overnight or intraday trading
Because the lines do not update in real time during the session, the levels remain static, accurate, and truly represent the completed session.
Settings users can adjust:
Session Settings:
* Start and end time of the session (repeats daily)
* Custom session name, which appears on the line labels
Line Appearance:
* Color
* Line thickness
* Line style (solid, dashed, dotted)
Label Appearance:
* Text size (tiny to huge)
* Text color automatically adjusts to contrast with the selected line color
Why this indicator is useful:
* Makes prior session structure immediately visible
* Helps identify high-probability reaction areas
* Shows only one session to reduce clutter
* Lines stay stable regardless of chart zoom or scaling
* Labels stay aligned at the right side of the chart
* Works on all timeframes, including extended hours and crypto charts
This tool is ideal for traders who rely on structured session analysis, including day traders, futures traders, forex traders, crypto traders, and anyone using session highs and lows to guide trading decisions.
This was developed to create an auto-mapping tool to comply with MrZinc's "London 50" strategy. You can learn more about that on his YouTube channel youtube.com/@MrZincx
You can follow my YouTube trading channel here
youtube.com/@HammerGeekTrading
Информация о релизе
This indicator now includes the following improvements:1. User-selectable session time zone
• The indicator no longer relies on the exchange’s time zone, which caused sessions to shift when changing symbols.
• Users can now choose their own session time zone from a list of common global zones.
• An optional custom UTC offset is also available for regions not in the list.
2. Tick marks at the session start and end
• A small vertical tick is placed at the start and end of each completed session.
• Tick colors automatically match the high, low, and mid lines' color settings.
3. User-defined extension beyond current price
• Users can now set how many bars the lines should extend into the future.
• The extension updates every bar, so multiple sessions using the same setting line up correctly in front of current price.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.