OPEN-SOURCE SCRIPT
Sessions Suite [claysul] + FVG

Sessions Suite + FVG + Market Structure — Warsaw Time
Sessions Suite + FVG + Market Structure is a visual market context indicator designed to help traders organize intraday price action around trading sessions, important highs/lows, opening prices, opening gaps, Fair Value Gaps and basic BOS/CHOCH structure.
The script is built as an overlay indicator and is intended for chart analysis, market preparation and visual context. It does not execute trades, does not provide guaranteed buy/sell signals and should not be treated as a standalone trading system. All market decisions should be confirmed with the trader’s own analysis, risk management and testing.
Main purpose
This indicator helps traders see where price is trading in relation to:
* major intraday sessions,
* session highs and lows,
* session equilibrium levels,
* previous hour, day, week and month levels,
* daily, weekly, monthly and custom opening prices,
* New Day Opening Gaps and New Week Opening Gaps,
* 90-minute market cycles,
* Fair Value Gaps,
* BOS and CHOCH structure breaks.
The default time zone is Europe/Warsaw, which makes the script especially useful for traders who analyze London and New York sessions from a Central European time perspective.
1. Session ranges
The indicator can display several customizable intraday sessions directly on the chart:
* Asia,
* London,
* NY AM,
* NY PM,
* optional NY Lunch or any custom session.
Each session can be enabled or disabled individually. The user can also change the session name, time window and color.
For every enabled session, the indicator can draw a session box that expands during the session and automatically tracks the current session high and low. This makes it easier to see the full range built during a specific part of the trading day.
Session boxes can include:
* transparent background,
* optional border,
* custom session colors,
* limited historical lookback to keep the chart clean,
* optional session equilibrium line.
The lookback setting is useful because TradingView has drawing object limits. Limiting boxes to recent days helps improve chart readability and keeps the indicator lighter.
2. Session highs, lows and equilibrium
The script can mark the high and low of each enabled session.
Session lines help identify liquidity areas where price may later react, sweep or reject. These levels can be used as contextual reference points, not as automatic entry signals.
Available session line settings include:
* show/hide session lines,
* line width,
* solid, dashed or dotted style,
* default session color or one custom color for all lines,
* lookback limit for historical lines and labels.
The indicator can also display Session EQ, which is the midpoint between the session high and low. This can help traders quickly see whether price is trading in the upper or lower half of a session range.
3. Session labels
The indicator includes flexible label settings for session highs and lows.
The user can choose:
* whether to show labels,
* label size,
* label alignment,
* label placement,
* whether to show high only, low only or both,
* whether labels should include “High” and “Low” text,
* whether all session labels should use one custom color.
There is also an option to relabel session highs and lows as Day High, Day Low, Week High, Week Low, Month High or Month Low when those session levels match higher-timeframe extremes. Month labels have priority over week labels, and week labels have priority over day labels.
This helps identify when an intraday session level is also a more important daily, weekly or monthly liquidity level.
4. Mitigation of session levels
The mitigation module controls how session high and low lines behave after price interacts with them.
The indicator can:
* extend unmitigated session lines to the current bar,
* stop a line once price reaches that level,
* optionally remove mitigated lines and labels from the chart.
A session high is considered mitigated when price trades up to that level. A session low is considered mitigated when price trades down to that level.
This is designed to reduce chart clutter and help the trader focus on levels that have not yet been revisited by price.
5. Previous Hour High and Low
The Previous Hour module displays:
* PHH — Previous Hour High,
* PHL — Previous Hour Low.
These levels are useful for very short-term intraday analysis, especially when observing liquidity sweeps, breakouts, retests or session transitions.
The user can customize:
* visibility of PHH and PHL,
* color,
* line style,
* whether mitigated previous-hour levels should be removed.
The labels are placed near the current chart area so the levels are easy to identify in real time.
6. Previous Day, Week and Month levels
The indicator can draw important higher-timeframe reference levels:
Previous Day:
* PDH — Previous Day High,
* PDL — Previous Day Low,
* PD EQ — midpoint between previous day high and low,
* PDC — Previous Day Close.
Previous Week:
* PWH — Previous Week High,
* PWL — Previous Week Low,
* PW EQ — midpoint between previous week high and low.
Previous Month:
* PMH — Previous Month High,
* PML — Previous Month Low.
These levels are often used by intraday traders as major liquidity, reaction or bias reference points. The indicator displays them directly on the chart with customizable colors and line styles.
The script also includes overlap suppression logic. When levels overlap, higher-priority levels can visually replace lower-priority labels to avoid unnecessary duplicates. Month levels have the highest priority, then week levels, then day levels.
There is also an option to remove mitigated previous day, week and month levels once price has traded through them.
7. Opening prices
The Opening Prices module displays important opening price levels:
* Daily Open,
* Weekly Open,
* Monthly Open,
* up to seven custom opening times.
By default, the script includes commonly used custom opens such as 15:30 and 06:00, with additional optional custom opens such as 22:00, 16:00, 15:00, 14:30 and 20:00.
Each custom open can be renamed and assigned its own session window and color.
This can be useful for traders who follow specific market opens, futures opens, cash session opens, regional session opens or personal timing models.
The script also supports previous custom opening prices for multiple previous days. The user can choose how those previous custom open lines should end:
* at the end of the day,
* at the next opening,
* at the current bar.
This gives flexibility depending on whether the trader wants a clean daily view or a more extended historical reference.
8. New Day Opening Gap and New Week Opening Gap
The script includes optional NDOG and NWOG visualization.
NDOG — New Day Opening Gap
Shows the gap between the previous close and the new trading day open.
NWOG — New Week Opening Gap
Shows the gap between the previous close and the new trading week open.
Both gap types can include:
* background box,
* optional equilibrium line,
* custom color,
* maximum number of visible gaps,
* optional removal after full mitigation.
A gap is treated as fully mitigated only after price has reached both sides of the gap. This helps traders distinguish between partially revisited gaps and fully filled gaps.
9. Day of Week labels and separators
The Day of Week module can display daily separators and day labels directly on the chart.
Available options include:
* show/hide day of week labels,
* top or bottom label placement,
* custom label color,
* daily separator color,
* number of recent days to display.
This is useful for traders who analyze weekly rhythm, day-of-week tendencies, Monday range behavior, midweek expansion or Friday positioning.
10. 90-minute cycles
The indicator includes a 90-minute cycle module.
The day is divided into customizable 90-minute segments across the main sessions:
* Asia Q1, Q2, Q3, Q4,
* London Q1, Q2, Q3, Q4,
* NY AM Q1, Q2, Q3, Q4,
* NY PM Q1, Q2, Q3, Q4.
Each cycle can be displayed as a box that tracks the high and low formed during that specific 90-minute window.
The user can control:
* whether 90-minute cycles are shown,
* whether borders are shown,
* whether labels are shown,
* custom cycle names,
* cycle colors,
* one shared label color or individual cycle colors,
* label size,
* lookback limit.
This feature is designed for traders who use time-based market models and want to see how price behaves inside recurring 90-minute windows.
11. Fair Value Gaps
The Fair Value Gap module detects and draws basic bullish and bearish FVG zones.
A bullish FVG is detected when the current candle’s low is above the high from two candles earlier, with the middle candle closing bullish.
A bearish FVG is detected when the current candle’s high is below the low from two candles earlier, with the middle candle closing bearish.
The indicator draws each FVG as a static box directly in the location where the imbalance appears.
Available FVG settings include:
* show/hide FVG,
* bullish FVG color,
* bearish FVG color.
FVG zones are visual areas of imbalance. They are not automatic entry signals. Traders may use them as areas to observe possible reactions, retracements or continuation setups, depending on their own trading model.
12. BOS and CHOCH market structure
The indicator includes a basic BOS and CHOCH module.
The script detects pivot highs and pivot lows using a configurable pivot length. When price closes above the latest pivot high, the script marks a bullish structure break. When price closes below the latest pivot low, the script marks a bearish structure break.
The label shown depends on the previous detected structure direction:
* BOS means the break continues the current structure direction,
* CHOCH means the break changes the previous structure direction.
The user can control:
* whether BOS/CHOCH is displayed,
* pivot length used for structure detection.
To keep the chart readable, this module only draws recent BOS/CHOCH markings within the script’s recent-time window.
This module is intended to provide simple structure context and should not be treated as a complete Smart Money Concepts strategy by itself.
13. Best use cases
This indicator can be useful for traders who want to:
* organize intraday sessions,
* mark session liquidity,
* compare price with previous day/week/month levels,
* observe market opens,
* track unmitigated levels,
* visualize opening gaps,
* study 90-minute cycles,
* identify basic FVG areas,
* observe simple BOS/CHOCH structure shifts.
It may be especially useful on intraday timeframes where session-based analysis is important.
14. Important limitations
This indicator is a visual analysis tool. It does not guarantee future price movement and does not replace risk management.
The presence of a level, FVG, gap, BOS or CHOCH does not mean price must react from that area. Markets can move through levels without reaction, and historical structure does not guarantee future behavior.
The script uses drawing objects such as boxes, labels and lines. Because TradingView has limits on the number of objects that can be displayed, several modules include lookback settings to control how much historical information remains visible on the chart.
Session-based tools work best on intraday charts. Some features may be less relevant or unavailable on higher timeframes.
15. Credits
This script is based on and extends the Sessions Suite concept by claysul, with additional modules such as Fair Value Gaps and BOS/CHOCH market structure visualization.
The script is provided for educational and analytical use only.
Sessions Suite + FVG + Market Structure is a visual market context indicator designed to help traders organize intraday price action around trading sessions, important highs/lows, opening prices, opening gaps, Fair Value Gaps and basic BOS/CHOCH structure.
The script is built as an overlay indicator and is intended for chart analysis, market preparation and visual context. It does not execute trades, does not provide guaranteed buy/sell signals and should not be treated as a standalone trading system. All market decisions should be confirmed with the trader’s own analysis, risk management and testing.
Main purpose
This indicator helps traders see where price is trading in relation to:
* major intraday sessions,
* session highs and lows,
* session equilibrium levels,
* previous hour, day, week and month levels,
* daily, weekly, monthly and custom opening prices,
* New Day Opening Gaps and New Week Opening Gaps,
* 90-minute market cycles,
* Fair Value Gaps,
* BOS and CHOCH structure breaks.
The default time zone is Europe/Warsaw, which makes the script especially useful for traders who analyze London and New York sessions from a Central European time perspective.
1. Session ranges
The indicator can display several customizable intraday sessions directly on the chart:
* Asia,
* London,
* NY AM,
* NY PM,
* optional NY Lunch or any custom session.
Each session can be enabled or disabled individually. The user can also change the session name, time window and color.
For every enabled session, the indicator can draw a session box that expands during the session and automatically tracks the current session high and low. This makes it easier to see the full range built during a specific part of the trading day.
Session boxes can include:
* transparent background,
* optional border,
* custom session colors,
* limited historical lookback to keep the chart clean,
* optional session equilibrium line.
The lookback setting is useful because TradingView has drawing object limits. Limiting boxes to recent days helps improve chart readability and keeps the indicator lighter.
2. Session highs, lows and equilibrium
The script can mark the high and low of each enabled session.
Session lines help identify liquidity areas where price may later react, sweep or reject. These levels can be used as contextual reference points, not as automatic entry signals.
Available session line settings include:
* show/hide session lines,
* line width,
* solid, dashed or dotted style,
* default session color or one custom color for all lines,
* lookback limit for historical lines and labels.
The indicator can also display Session EQ, which is the midpoint between the session high and low. This can help traders quickly see whether price is trading in the upper or lower half of a session range.
3. Session labels
The indicator includes flexible label settings for session highs and lows.
The user can choose:
* whether to show labels,
* label size,
* label alignment,
* label placement,
* whether to show high only, low only or both,
* whether labels should include “High” and “Low” text,
* whether all session labels should use one custom color.
There is also an option to relabel session highs and lows as Day High, Day Low, Week High, Week Low, Month High or Month Low when those session levels match higher-timeframe extremes. Month labels have priority over week labels, and week labels have priority over day labels.
This helps identify when an intraday session level is also a more important daily, weekly or monthly liquidity level.
4. Mitigation of session levels
The mitigation module controls how session high and low lines behave after price interacts with them.
The indicator can:
* extend unmitigated session lines to the current bar,
* stop a line once price reaches that level,
* optionally remove mitigated lines and labels from the chart.
A session high is considered mitigated when price trades up to that level. A session low is considered mitigated when price trades down to that level.
This is designed to reduce chart clutter and help the trader focus on levels that have not yet been revisited by price.
5. Previous Hour High and Low
The Previous Hour module displays:
* PHH — Previous Hour High,
* PHL — Previous Hour Low.
These levels are useful for very short-term intraday analysis, especially when observing liquidity sweeps, breakouts, retests or session transitions.
The user can customize:
* visibility of PHH and PHL,
* color,
* line style,
* whether mitigated previous-hour levels should be removed.
The labels are placed near the current chart area so the levels are easy to identify in real time.
6. Previous Day, Week and Month levels
The indicator can draw important higher-timeframe reference levels:
Previous Day:
* PDH — Previous Day High,
* PDL — Previous Day Low,
* PD EQ — midpoint between previous day high and low,
* PDC — Previous Day Close.
Previous Week:
* PWH — Previous Week High,
* PWL — Previous Week Low,
* PW EQ — midpoint between previous week high and low.
Previous Month:
* PMH — Previous Month High,
* PML — Previous Month Low.
These levels are often used by intraday traders as major liquidity, reaction or bias reference points. The indicator displays them directly on the chart with customizable colors and line styles.
The script also includes overlap suppression logic. When levels overlap, higher-priority levels can visually replace lower-priority labels to avoid unnecessary duplicates. Month levels have the highest priority, then week levels, then day levels.
There is also an option to remove mitigated previous day, week and month levels once price has traded through them.
7. Opening prices
The Opening Prices module displays important opening price levels:
* Daily Open,
* Weekly Open,
* Monthly Open,
* up to seven custom opening times.
By default, the script includes commonly used custom opens such as 15:30 and 06:00, with additional optional custom opens such as 22:00, 16:00, 15:00, 14:30 and 20:00.
Each custom open can be renamed and assigned its own session window and color.
This can be useful for traders who follow specific market opens, futures opens, cash session opens, regional session opens or personal timing models.
The script also supports previous custom opening prices for multiple previous days. The user can choose how those previous custom open lines should end:
* at the end of the day,
* at the next opening,
* at the current bar.
This gives flexibility depending on whether the trader wants a clean daily view or a more extended historical reference.
8. New Day Opening Gap and New Week Opening Gap
The script includes optional NDOG and NWOG visualization.
NDOG — New Day Opening Gap
Shows the gap between the previous close and the new trading day open.
NWOG — New Week Opening Gap
Shows the gap between the previous close and the new trading week open.
Both gap types can include:
* background box,
* optional equilibrium line,
* custom color,
* maximum number of visible gaps,
* optional removal after full mitigation.
A gap is treated as fully mitigated only after price has reached both sides of the gap. This helps traders distinguish between partially revisited gaps and fully filled gaps.
9. Day of Week labels and separators
The Day of Week module can display daily separators and day labels directly on the chart.
Available options include:
* show/hide day of week labels,
* top or bottom label placement,
* custom label color,
* daily separator color,
* number of recent days to display.
This is useful for traders who analyze weekly rhythm, day-of-week tendencies, Monday range behavior, midweek expansion or Friday positioning.
10. 90-minute cycles
The indicator includes a 90-minute cycle module.
The day is divided into customizable 90-minute segments across the main sessions:
* Asia Q1, Q2, Q3, Q4,
* London Q1, Q2, Q3, Q4,
* NY AM Q1, Q2, Q3, Q4,
* NY PM Q1, Q2, Q3, Q4.
Each cycle can be displayed as a box that tracks the high and low formed during that specific 90-minute window.
The user can control:
* whether 90-minute cycles are shown,
* whether borders are shown,
* whether labels are shown,
* custom cycle names,
* cycle colors,
* one shared label color or individual cycle colors,
* label size,
* lookback limit.
This feature is designed for traders who use time-based market models and want to see how price behaves inside recurring 90-minute windows.
11. Fair Value Gaps
The Fair Value Gap module detects and draws basic bullish and bearish FVG zones.
A bullish FVG is detected when the current candle’s low is above the high from two candles earlier, with the middle candle closing bullish.
A bearish FVG is detected when the current candle’s high is below the low from two candles earlier, with the middle candle closing bearish.
The indicator draws each FVG as a static box directly in the location where the imbalance appears.
Available FVG settings include:
* show/hide FVG,
* bullish FVG color,
* bearish FVG color.
FVG zones are visual areas of imbalance. They are not automatic entry signals. Traders may use them as areas to observe possible reactions, retracements or continuation setups, depending on their own trading model.
12. BOS and CHOCH market structure
The indicator includes a basic BOS and CHOCH module.
The script detects pivot highs and pivot lows using a configurable pivot length. When price closes above the latest pivot high, the script marks a bullish structure break. When price closes below the latest pivot low, the script marks a bearish structure break.
The label shown depends on the previous detected structure direction:
* BOS means the break continues the current structure direction,
* CHOCH means the break changes the previous structure direction.
The user can control:
* whether BOS/CHOCH is displayed,
* pivot length used for structure detection.
To keep the chart readable, this module only draws recent BOS/CHOCH markings within the script’s recent-time window.
This module is intended to provide simple structure context and should not be treated as a complete Smart Money Concepts strategy by itself.
13. Best use cases
This indicator can be useful for traders who want to:
* organize intraday sessions,
* mark session liquidity,
* compare price with previous day/week/month levels,
* observe market opens,
* track unmitigated levels,
* visualize opening gaps,
* study 90-minute cycles,
* identify basic FVG areas,
* observe simple BOS/CHOCH structure shifts.
It may be especially useful on intraday timeframes where session-based analysis is important.
14. Important limitations
This indicator is a visual analysis tool. It does not guarantee future price movement and does not replace risk management.
The presence of a level, FVG, gap, BOS or CHOCH does not mean price must react from that area. Markets can move through levels without reaction, and historical structure does not guarantee future behavior.
The script uses drawing objects such as boxes, labels and lines. Because TradingView has limits on the number of objects that can be displayed, several modules include lookback settings to control how much historical information remains visible on the chart.
Session-based tools work best on intraday charts. Some features may be less relevant or unavailable on higher timeframes.
15. Credits
This script is based on and extends the Sessions Suite concept by claysul, with additional modules such as Fair Value Gaps and BOS/CHOCH market structure visualization.
The script is provided for educational and analytical use only.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Giving My Money Bro!!! Pan Bystry
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Giving My Money Bro!!! Pan Bystry
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。