PROTECTED SOURCE SCRIPT

ICT Sessions [TradeWithRon]

42

ICT Sessions [TradeWithRon] and killzones maps three intraday sessions on your chart (Asia, London, NY), tracks each session’s live high/low, draws optional session range boxes, and projects ICT OTE zones in real time—with granular styling, touch/mitigation logic, and alerting.

What it does
תמונת-בזק
*Live Session high/low tracking.
Historical session lines:
  • When a session ends, its final High/Low are preserved as tracked lines (with optional labels) for a configurable number of recent sessions.


Session boxes (ranges):
  • Draws a shaded box from session start to end that expands with new highs/lows. Limit how many recent boxes remain on chart.


ICT OTE zones (live):
תמונת-בזק
  • For the currently active session, projects user-defined Fibonacci OTE levels (e.g., 61.8%, 70.5%, 78.6) between the session’s running high and low. Zones update tick-by-tick and can show labels. You can retain a history of recent sessions’ OTE levels.


תמונת-בזק

Break visualization (mitigation):
  • Optionally color the bar when price breaks a stored session High/Low. You can:
  • Require a body close through the level (vs. any touch)
  • Auto-remove the line and/or label on touch/close
  • Use custom break colors per session and side (high/low)


Timestamps:
  • Add up to two recurring vertical timestamp markers (e.g., 08:00, 09:30), plus an opening horizontal marker (e.g., 09:30) with label that extends until the next occurrence.


Alerts:
  • Built-in alerts for:
  • Touch of Session 1/2/3 High/Low (Asia/London/NY)
  • Touch of OTE levels (per session)


Key inputs:
Time & Limits
Timezone (e.g., GMT-4)
Timeframe limit: hide all drawings on and above a specified TF

Sessions
  • Session windows (default):
  • Session 1 (Asia): 18:00–00:00
  • Session 2 (London): 00:00–06:00
  • Session 3 (NY): 08:00–12:00


  • How many to keep (lines/boxes)
  • Line width, colors, and label suffixes (“High”/“Low”)
  • Labels: toggle, text (“Asia”, “London”, “NY”), size, and colors
  • Boxes: toggle per session and background colors


ICT OTE Zones
  • Toggle per session (Asia/London/NY)
  • Levels (comma-separated %s, e.g., 61.8,70.5,78.6)
  • History: number of past sessions to retain
  • Opacity, line width/style, and label size
  • Custom label text per session (e.g., “Asia OTE”)


Break/Mitigation Behavior:
תמונת-בזק
  • Enable Mitigated Candles (bar color on break)
  • Remove line on touch and/or remove label on touch
  • Require body close (vs. wick touch)
  • Custom break colors by session and side


Timestamps
  • Opening horizontal line (time, style, width, color, label text/size, drawing limit)
  • Two vertical timestamps (times, style, width, color, drawing limit)


Alerts
  • Master Enable Alerts
  • Per-session toggles for High/Low touches
  • OTE touch alerts


How it works (under the hood)
  • Detects session state via input.session() windows in the chosen timezone.
  • Live session High/Low lines and labels update in real time; on session end, final levels are stored with optional labels and tracked length.
  • OTE zones are live-computed from current session High↔Low and refreshed every bar; a compact rolling history is enforced.
  • Bar coloring reacts to break events (touch or body-close, per your setting) and uses session-specific colors when enabled.


Timestamp lines/labels are created on each occurrence and trimmed to a drawing limit for performance.

Tips:
  • To hide session lines but keep boxes, set line color opacity to 0.
  • Use Timeframe Limit to keep higher-TF charts clean.
  • Fine-tune OTE Levels and History to balance clarity and performance.
  • For stricter break logic, enable Require Body Close.


Note: The script reserves high limits for lines/labels/boxes to keep recent context visible while managing cleanup automatically. Adjust “Session Number” and “Number Of Boxes” to suit your workflow.

— © TradeWithRon

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.