OPEN-SOURCE SCRIPT

SessionRangeLevels_v0.1

863
SessionRangeLevels_v0.1 - Indicator Description

Overview:

SessionRangeLevels_v0.1 is a customizable Pine Script (v6) indicator designed to plot key price levels based on a user-defined trading session. It identifies the high and low of the session and calculates intermediate levels (75%, 50% "EQ", and 25%) within that range. These levels are projected forward as horizontal lines with accompanying labels, providing traders with dynamic support and resistance zones. The indicator supports extensive customization for session timing, time zones, line styles, colors, and more.

Key Features:
Session-Based Range Detection: Tracks the high and low prices during a specified session (e.g., 0600-0900) and updates them dynamically as the session progresses.

Customizable Levels: Displays High, 75%, EQ (50%), 25%, and Low levels, each with independent toggle options, styles (Solid, Dashed, Dotted), colors, and widths.

Session Anchor: Optional vertical line marking the session start, with customizable style, color, and width.

Projection Offset: Extends level lines forward by a user-defined number of bars (default: 24) for future price reference.

Labels: Toggleable labels for each level (e.g., "High," "75%," "EQ") with adjustable size (Tiny, Small, Normal, Large).

Time Zone Support: Aligns session timing to a selected time zone (e.g., America/New_York, UTC, Asia/Tokyo, etc.).

Alert Conditions: Triggers alerts when the price crosses any of the plotted levels (High, 75%, EQ, 25%, Low).

Inputs:
Session Time (HHMM-HHMM): Define the session range (e.g., "0600-0900" for 6:00 AM to 9:00 AM).

Time Zone: Choose from options like UTC, America/New_York, Europe/London, etc.

Anchor Settings: Toggle the session start line, adjust its style (default: Dotted), color (default: Black), and width (default: 1).

Level Settings:
High (Solid, Black, Width 2)

75% (Dotted, Blue, Width 1)

EQ/50% (Dotted, Orange, Width 1)

25% (Dotted, Blue, Width 1)

Low (Solid, Black, Width 2)
Each level includes options to show/hide, set style, color, width, and label visibility.

Projection Offset: Number of bars to extend lines (default: 24).

Label Size: Set label size (default: Small).

How It Works:
The indicator detects the start and end of the user-defined session based on the specified time and time zone.

During the session, it tracks the highest high and lowest low, updating the levels in real-time.

At the session start, it plots the High, Low, and intermediate levels (75%, 50%, 25%), projecting them forward.

Lines and labels dynamically adjust as new highs or lows occur within the session.

Alerts notify users when the price crosses any active level.

Usage:
Ideal for traders who focus on session-based strategies (e.g., London or New York open). Use it to identify key price zones, monitor breakouts, or set targets. Customize the appearance to suit your chart preferences and enable alerts for real-time trading signals.
Notes:
Ensure your chart’s timeframe aligns with your session duration for optimal results (e.g., 1-minute or 5-minute charts for short sessions).

The indicator overlays directly on the price chart for easy integration with other tools.

Feedback and suggestions are welcome!


Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.