PROTECTED SOURCE SCRIPT
Aggiornato

ICT Multi-Session Hi/L/EQ

172

  • Indicator Overview: The "ICT Multi-Session Hi/L/EQ" indicator is a versatile tool designed for traders utilizing Inner Circle Trader (ICT) strategies, enabling the visualization of key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint between high and low), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable market sessions on a single chart.

    istantanea
  • Core Functionality: It dynamically tracks and plots session-specific highs, lows, and EQ, updating in real-time as price action evolves, providing traders with immediate insights into potential support, resistance, and balance zones during defined periods like the Asian, London, or New York sessions. This multi-session capability allows for comprehensive market analysis without the need for multiple indicators.
  • Unique OTE Auto Detection: A standout feature is the automatic detection and directional calculation of OTE levels. When a session forms a new high, OTE levels are recalculated downward from the high to the low (bearish bias), highlighting potential short entry zones. Conversely, a new low triggers upward OTE levels from the low to the high (bullish bias), signaling long opportunities. This auto-detection adapts to market momentum without manual input, making it highly unique for ICT traders seeking efficient entry signals based on range retracements. No other indicator combines this session-based auto-directionality with OTE percentages tailored for ICT methodologies. [screenshot link demonstrating OTE auto-detection shifting from bullish to bearish upon a new high, with levels labeled as 61.8%, 70%, and 79%]

  • Left-Side Trimming Innovation: Another innovative aspect is the left-side trimming option, which allows users to limit the historical extension of lines to a user-defined number of bars (e.g., the last 8 bars), reducing chart clutter and focusing attention on recent price action. This feature is particularly unique as it addresses a common issue in multi-session indicators where full historical lines can overwhelm the chart, making it ideal for scalpers or day traders who prioritize clarity.

    Without trimming the left side:
    istantanea

    And when left side trimming is enabled:
    istantanea
  • Multi-Session Customization: Support for up to 6 independent sessions, each with individual time ranges (HHMM-HHMM format), timezones, and enable/disable toggles, offers unparalleled flexibility. Traders can configure sessions for specific market phases (e.g., Asia: 2000-0000 UTC) and customize colors, line styles (solid, dashed, dotted), and label properties separately, ensuring a personalized setup for global trading environments.
  • Auto-Deletion at Market Close: Levels can be automatically deleted at the session's calculated market close (17:00 NY timestamp), keeping the chart clean for the next session or day, a useful feature for avoiding accumulation of outdated levels.
  • Label and Visual Controls: Users can toggle labels on/off, adjust text color, background color, transparency, and size (tiny, small, normal, large), with options to stick labels to the right for better visibility. This level of customization ensures the indicator integrates seamlessly with any chart style.
  • No External Dependencies: All calculations are performed using built-in Pine Script functions on the chart's price data, making it self-contained and reliable without needing external libraries or data sources.
  • Professional and Compliant Design: Developed to comply with TradingView House Rules, this indicator is original in its combination of multi-session plotting, directional OTE auto-detection, and left-side trimming, providing traders with a robust tool for ICT-based analysis.


How It Works

  • Session Setup: Define session times and timezones in settings; the script tracks high/low from session start.
  • Level Calculation: High/low update on every bar; EQ is the midpoint. OTE levels recalculate directionally upon new extremes.
  • Drawing Mechanism: Lines extend with user-defined padding; trimming cuts left side for cleanliness.
  • Update Logic: OTE direction shifts based on new high/low detection, with levels refreshed accordingly.
  • Deletion: Auto-deletes at session end if enabled, resetting for new sessions.


Uniqueness and Innovation

  • Session OTE Auto Detection: Automatically adjusts OTE direction based on new highs/lows, a feature not commonly available in other indicators, enabling hands-free bias identification.
  • Left-Side Trimming: Unique clutter-reduction tool that trims historical lines, improving chart readability—a rare capability in session-based indicators.
  • Multi-Session Support: Handles 6 sessions independently, with per-session OTE, making it a one-stop tool for global market analysis.
  • Directional OTE: Adapts to market bias, offering dynamic entry zones tailored to ICT strategies.
  • Full Customization: Extensive controls for visuals and behavior, ensuring adaptability to individual trading styles.


User Guide: How to Use the "ICT Multi-Session Hi/L/EQ" Indicator


This guide provides a comprehensive, step-by-step explanation of how to use the "ICT Multi-Session Hi/L/EQ" indicator on TradingView. The indicator is designed to help Inner Circle Trader (ICT) enthusiasts plot key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable sessions. It also includes a Candle Open line for midnight or custom times. I'll break it down by settings groups, explaining each option, its purpose, how to tweak it, and tips for optimal use. All settings are accessible via the indicator's settings panel (cog icon next to the indicator name on your chart).

General Settings
These control global behaviors that apply to all sessions and levels. They allow you to customize the overall appearance and functionality of the indicator on your chart.

Line Padding (Bars Beyond Current): This integer input (default: 2, minimum: 0) extends the plotted lines beyond the current bar by the specified number of bars.

How to Use/Tweak: Increase this value (e.g., to 5) for longer forward projections of levels, useful for anticipating future price action. Decrease to 0 for no extension. It's ideal for traders who like to see levels projected ahead in volatile markets.
Tip: On lower timeframes (e.g., 5M), higher padding (4-6) helps visualize potential targets; on higher timeframes (1H), keep it low to avoid clutter.


Label Padding (Bars from Line End): An integer (default: 3, minimum: 0) that positions labels away from the end of the lines by the specified bars.

How to Use/Tweak: Adjust to move labels further right (higher value) or closer to the line end (lower value). This prevents label overlap with price action or other indicators.
Tip: If your chart has many labels, set to 5+ for better readability; use 1-2 for minimalistic setups.


Enable Left-Side Trimming: A boolean toggle (default: true) to trim lines from the left, limiting their historical extension.

How to Use/Tweak: Turn on to reduce chart clutter by showing only recent bars of the lines; turn off for full historical view. Pairs with "Left Trim Bars" for fine-tuning.
Tip: Enable for clean charts during live trading; disable for backtesting to see long-term patterns.


Left Trim Bars: An integer (default: 8, minimum: 1) specifying how many bars back from the current bar to trim lines when left trimming is enabled.

How to Use/Tweak: Set higher (e.g., 20) for more historical visibility while trimmed; lower (e.g., 4) for ultra-clean charts focusing on immediate action.
Tip: Use 8-12 for intraday trading on 15M charts; adjust based on timeframe to balance context and clarity.


Stick Labels to Right of Current Bar: A boolean toggle (default: true) to position labels at the right end of the lines.

How to Use/Tweak: Enable for labels to "stick" right, keeping them visible as the chart updates; disable for labels at the current bar position.
Tip: Keep enabled for real-time trading to avoid labels shifting left; disable for static analysis.


Delete Previous Session Lines/Labels on Market Close: A boolean toggle (default: true) to automatically delete session lines and labels at the calculated market close (17:00 NY time).

How to Use/Tweak: Enable to keep the chart clean by clearing old sessions; disable to retain historical levels for reference.
Tip: Enable for live trading to focus on active sessions; disable for educational reviews or backtesting.



Session 1 to 6 Settings
Each session has identical options, allowing independent configuration. I'll describe Session 1; replicate for others by changing the number (e.g., Session 2 uses "Session 2 Name", etc.).

Session Name: String input (default: "Asia" for Session 1) to label the session (e.g., "Asia" or "London").

How to Use/Tweak: Enter a descriptive name like "NY Open" for clarity in labels (e.g., "NY Open High").
Tip: Use short names to avoid long labels; this appears in all session labels for easy identification.


Session Time (HHMM-HHMM): Session input (default: "2000-0000" for Session 1) to define the start and end time.

How to Use/Tweak: Set the time range (e.g., "0930-1600" for NY session). Ensure start < end in 24-hour format.
Tip: Use for custom sessions like "London Kill Zone" (0800-1100); validate with the timezone setting.


Session Timezone: String selection (default: "America/New_York") from a list of options.

How to Use/Tweak: Choose the timezone matching your session (e.g., "Europe/London" for UK times).
Tip: Align with session name for accuracy; "Etc/UTC" for universal times.


Enable Session Drawings: Boolean toggle (default: true for Session 1, false for others) to activate the session's lines and labels.

How to Use/Tweak: Enable to show the session; disable to hide it without removing settings.
Tip: Enable one session at a time for focused analysis; use for multi-session overlays.


Enable EQ Line/Label: Boolean toggle (default: true) to show the EQ line and label.

How to Use/Tweak: Enable for midpoint plotting; disable to hide EQ while keeping high/low.
Tip: Useful for ICT fair value gaps; toggle off if focusing on extremes only.


Enable Labels: Boolean toggle (default: true) to show labels for high, low, EQ, and OTE levels.

How to Use/Tweak: Enable for annotated levels; disable for lines-only view.
Tip: Disable on crowded charts; customize label size for better readability.


Enable OTE Levels: Boolean toggle (default: false) to activate OTE levels (61.8%, 70%, 79%).

How to Use/Tweak: Enable for OTE plotting; disable to hide while keeping high/low/EQ.
Tip: Toggle on for entry zone identification; adjust colors for visual distinction.


Line Color: Color input (default varies by session, e.g., blue for Session 1) for lines.

How to Use/Tweak: Choose a color to differentiate sessions (e.g., green for bullish).
Tip: Use contrasting colors for multiple sessions; match your chart theme.


Line Style: String selection (default: "Dashed") from "Solid", "Dashed", "Dotted".

How to Use/Tweak: Select style for line appearance (e.g., dotted for OTE).
Tip: Use dashed for OTE to distinguish from solid high/low lines.


Label Text Color: Color input (default: white) for label text.

How to Use/Tweak: Set to contrast with background (e.g., black on white charts).
Tip: Use bright colors for visibility; match line color for cohesion.


Label Background Color: Color input (default: black) for label background.

How to Use/Tweak: Choose a semi-transparent background for readability.
Tip: Set to chart background color for subtle labels.


Label Transparency (0=opaque, 100=transparent): Integer input (default: 70) for label opacity.

How to Use/Tweak: Lower for solid labels (e.g., 0); higher for see-through (e.g., 90).
Tip: Use 50-80 for balance; 100 hides background entirely.


Label Text Size: String selection (default: "Small") from "Tiny", "Small", "Normal", "Large".

How to Use/Tweak: Choose size for label visibility (e.g., "Large" for emphasis).
Tip: "Small" for crowded charts; "Large" for main levels.


OTE 61.8% Color: Color input (default: purple) for 61.8% OTE line.

How to Use/Tweak: Customize to highlight the 61.8% level (e.g., gold for key entry).
Tip: Use distinct colors for each OTE level to differentiate (e.g., purple, orange, teal).


OTE 70% Color: Color input (default: orange) for 70% OTE line.

How to Use/Tweak: Set to a secondary color for mid-range OTE.
Tip: Coordinate with overall theme; use faded shades for less prominence.


OTE 79% Color: Color input (default: teal) for 79% OTE line.

How to Use/Tweak: Choose for the deepest OTE level (e.g., red for aggressive entries).
Tip: Make it stand out if 79% is your preferred entry zone.



Candle Open Settings
This section adds a custom open line (e.g., midnight open) with similar customization.

Use Time 1: Boolean toggle (default: true) to enable the first time setting.

How to Use/Tweak: Enable for the open line; disable to hide.
Tip: Use for midnight open in ICT setups; toggle off if not needed.


Name: String input (default: "Midnight Open") for the open line label.

How to Use/Tweak: Change to "Daily Open" or similar for context.
Tip: Keep short for clean labels.


Start Time: String input (default: "0000") for open range start.

How to Use/Tweak: Set in HHMM format (e.g., "0000" for midnight).
Tip: Ensure valid (0000-2359); pair with end time for narrow ranges.


End Time: String input (default: "0001") for open range end.

How to Use/Tweak: Set slightly after start (e.g., "0001") for precise open capture.
Tip: Use for quick ranges; start < end always.


Color: Color input (default: teal) for the open line.

How to Use/Tweak: Customize to distinguish from session lines.
Tip: Use gray for subtle open lines.


Timezone: String selection (default: "America/New_York") for the open line.

How to Use/Tweak: Choose matching your chart or session.
Tip: "Etc/UTC" for universal opens.


Enable Line/Label: Boolean toggle (default: true) for the open line/label.

How to Use/Tweak: Enable to show; disable to hide.
Tip: Use for daily opens in ICT; toggle off for session-only focus.


Enable Label: Boolean toggle (default: true) for the open label.

How to Use/Tweak: Enable for named label; disable for line-only.
Tip: Disable if labels clutter the chart.


Auto Delete at 18:00 NY: Boolean toggle (default: true) to delete at 18:00 NY.

How to Use/Tweak: Enable for cleanup; disable to retain.
Tip: Align with new day start; useful for resetting.


Stick Label to Right: Boolean toggle (default: true) for label positioning.

How to Use/Tweak: Enable for right-side labels; disable for current bar.
Tip: Keep enabled for visibility as chart updates.


Enable Left-Side Trimming: Boolean toggle (default: true) for open line trimming.

How to Use/Tweak: Enable to trim historical open line; disable for full view.
Tip: Similar to session trimming; use for clean charts.


Left Trim Bars: Integer input (default: 8) for open line trim bars.

How to Use/Tweak: Set the number of bars back to show when trimming.
Tip: Lower for more focus; higher for context.


Line Padding (Bars Beyond Current): Integer input (default: 2) for open line extension.

How to Use/Tweak: Increase for forward projection; decrease for no extension.
Tip: Match general padding for consistency.


Label Padding (Bars from Line End): Integer input (default: 3) for open label position.

How to Use/Tweak: Adjust to move label away from line end.
Tip: Higher for spaced labels; lower for compactness.


Line Style: String selection (default: "Solid") for open line style.

How to Use/Tweak: Choose "Dashed" or "Dotted" for distinction.
Tip: Use dotted for subtle opens.


Label Text Color: Color input (default: white) for open label text.

How to Use/Tweak: Set to contrast with background.
Tip: Black for light charts.


Label Background Color: Color input (default: black) for open label background.

How to Use/Tweak: Customize for visibility.
Tip: Semi-transparent for blend.


Label Transparency: Integer input (default: 70) for open label opacity.

How to Use/Tweak: 0 for opaque; 100 for transparent.
Tip: 50-80 for balance.


Label Text Size: String selection (default: "Small") for open label size.

How to Use/Tweak: "Large" for emphasis; "Tiny" for minimalism.
Tip: "Normal" for standard use.
Note di rilascio
Updated display image and changed header text in the settings

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.