This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
This script plots the high and low price ranges for up to four customizable trading sessions directly on your chart. It is designed to help traders visualize price activity during specific trading hours.
Features Customizable Sessions: Define up to four distinct trading sessions using the input.session parameter. Visual Highlights: Each session range is highlighted with customizable colors for top and bottom lines as well as a fill between them. Historical Ranges: Option to show historical session ranges with adjustable opacity. Toggle Sessions: Enable or disable the display of specific trading sessions to tailor your analysis. Overlay on Chart: The script works as an overlay, ensuring your analysis stays on the main chart.
How It Works: Session Setup: Input the start and end times for each session in the Session 1, Session 2, Session 3, and Session 4 fields. Dynamic Range Calculation: The script automatically calculates the high and low during active sessions, updating the range as new data comes in. Customizable Colors: Adjust the colors for lines, fills, and historical ranges to match your charting style. Clean Presentation: The script is designed to avoid clutter by limiting overlays to active and relevant sessions only.
Identify price action trends during key trading hours. Compare ranges between multiple sessions for market behavior analysis. Highlight significant session overlaps or range extensions.
Disclaimer: This script is intended for educational purposes and should not be considered financial advice. Trading involves risks, and past performance does not guarantee future results.