OPEN-SOURCE SCRIPT
已更新

Trade by Design - v1.0.0

854
Trade by Design — NY 17:00 Session Levels (v1.0.0)

Overview

Trade by Design plots key reference levels derived from a New York–anchored trading day that resets at 17:00 America/New_York. The indicator is designed to make higher-quality context levels visible on any intraday chart by automatically drawing:

Previous Week High/Low (HoW/LoW)

Previous Trading Day High/Low (HoD/LoD)

Current Day Running High/Low (iH/iL) with the current day’s range percentage

These levels can be used as structured support/resistance references and as a framework for intraday planning.

What the indicator draws
1) Previous Week Levels — HoW / LoW

HoW (High of Week): highest price reached during the previous NY-anchored week

LoW (Low of Week): lowest price reached during the previous NY-anchored week

Week boundary: the week is treated as starting at Sunday 17:00 New York time, aligning the week definition with the same session reset concept used for daily levels.

Why it matters: prior week extremes frequently act as decision points where price can reject, consolidate, or break and retest.

2) Previous Trading Day Levels — HoD / LoD

HoD (High of Day): highest price reached during the prior trading day

LoD (Low of Day): lowest price reached during the prior trading day

Trading day boundary: 17:00 NY → 17:00 NY (America/New_York)

Why it matters: prior day extremes are commonly used for liquidity, breakout, and mean-reversion context depending on market conditions.

3) Current Day Running Levels — iH / iL

iH (Initial/Current High): running high since the selected start time

iL (Initial/Current Low): running low since the selected start time

The label displays the % range between iH and iL, helping you assess the day’s realized movement at a glance.

Optional “Gap” handling (17:00–20:00 NY)

You can choose where the iH/iL calculation begins:

Include Gap (start at 17:00 NY): iH/iL tracks the entire NY trading day from the reset.

Exclude Gap (start at 20:00 NY): iH/iL ignores the 17:00–20:00 window and begins at 20:00 NY.

This option exists because some traders prefer measuring the day’s initial range from later liquidity conditions.

Controls & Settings
Visuals

Independent colors for weekly, daily, and current-day levels

Line width, line style (solid/dashed/dotted)

Separate transparency for current vs historical lines

Label size and label offset (in bars) to improve readability

History

Choose how many prior weeks to display (older weekly levels labeled sequentially)

Toggle visibility for historical HoD/LoD and historical iH/iL

Label convention

Current: HoW / LoW, HoD / LoD, iH / iL (with % range)

Historical: sequential suffixes are used to distinguish older levels (e.g., HoD2/LoD2, HoW2/LoW2, etc.)

Practical ways to use the levels (examples)

Support/Resistance map: treat HoW/LoW and HoD/LoD as structural boundaries for reactions and invalidations.

Breakout context: a clean break and acceptance beyond HoD/LoD (or HoW/LoW) can signal continuation; failure to accept can signal range behavior.

Volatility awareness: use the iH/iL % range to judge whether the day is expanding (trend-day potential) or compressing (range potential).

Confluence: align these levels with your own confirmation tools (market structure, volume, orderflow, trend filters, etc.).

Notes & limitations

Results depend on the symbol’s session data and the chart timeframe; some markets have unique trading hours that may affect how highs/lows form.

This indicator provides reference levels only and does not generate buy/sell signals.

Always apply risk management. This is not financial advice.

Version history

v1.0.0

Stable release of NY 17:00 anchored levels

Previous Week High/Low (HoW/LoW)

Previous Trading Day High/Low (HoD/LoD)

Current Day running High/Low (iH/iL) + range %

Optional inclusion/exclusion of 17:00–20:00 NY window for iH/iL

Historical rendering controls + styling options for production charting
發行說明
Trade by Design — NY 17:00 Session Levels (v1.0.0)

Overview

Trade by Design plots key reference levels derived from a New York–anchored trading day that resets at 17:00 America/New_York. The indicator is designed to make higher-quality context levels visible on any intraday chart by automatically drawing:

Previous Week High/Low (HoW/LoW)

Previous Trading Day High/Low (HoD/LoD)

Current Day Running High/Low (iH/iL) with the current day’s range percentage

These levels can be used as structured support/resistance references and as a framework for intraday planning.

What the indicator draws
1) Previous Week Levels — HoW / LoW

HoW (High of Week): highest price reached during the previous NY-anchored week

LoW (Low of Week): lowest price reached during the previous NY-anchored week

Week boundary: the week is treated as starting at Sunday 17:00 New York time, aligning the week definition with the same session reset concept used for daily levels.

Why it matters: prior week extremes frequently act as decision points where price can reject, consolidate, or break and retest.

2) Previous Trading Day Levels — HoD / LoD

HoD (High of Day): highest price reached during the prior trading day

LoD (Low of Day): lowest price reached during the prior trading day

Trading day boundary: 17:00 NY → 17:00 NY (America/New_York)

Why it matters: prior day extremes are commonly used for liquidity, breakout, and mean-reversion context depending on market conditions.

3) Current Day Running Levels — iH / iL

iH (Initial/Current High): running high since the selected start time

iL (Initial/Current Low): running low since the selected start time

The label displays the % range between iH and iL, helping you assess the day’s realized movement at a glance.

Optional “Gap” handling (17:00–20:00 NY)

You can choose where the iH/iL calculation begins:

Include Gap (start at 17:00 NY): iH/iL tracks the entire NY trading day from the reset.

Exclude Gap (start at 20:00 NY): iH/iL ignores the 17:00–20:00 window and begins at 20:00 NY.

This option exists because some traders prefer measuring the day’s initial range from later liquidity conditions.

Controls & Settings
Visuals

Independent colors for weekly, daily, and current-day levels

Line width, line style (solid/dashed/dotted)

Separate transparency for current vs historical lines

Label size and label offset (in bars) to improve readability

History

Choose how many prior weeks to display (older weekly levels labeled sequentially)

Toggle visibility for historical HoD/LoD and historical iH/iL

Label convention

Current: HoW / LoW, HoD / LoD, iH / iL (with % range)

Historical: sequential suffixes are used to distinguish older levels (e.g., HoD2/LoD2, HoW2/LoW2, etc.)

Practical ways to use the levels (examples)

Support/Resistance map: treat HoW/LoW and HoD/LoD as structural boundaries for reactions and invalidations.

Breakout context: a clean break and acceptance beyond HoD/LoD (or HoW/LoW) can signal continuation; failure to accept can signal range behavior.

Volatility awareness: use the iH/iL % range to judge whether the day is expanding (trend-day potential) or compressing (range potential).

Confluence: align these levels with your own confirmation tools (market structure, volume, orderflow, trend filters, etc.).

Notes & limitations

Results depend on the symbol’s session data and the chart timeframe; some markets have unique trading hours that may affect how highs/lows form.

This indicator provides reference levels only and does not generate buy/sell signals.

Always apply risk management. This is not financial advice.

Version history

v1.0.0

Stable release of NY 17:00 anchored levels

Previous Week High/Low (HoW/LoW)

Previous Trading Day High/Low (HoD/LoD)

Current Day running High/Low (iH/iL) + range %

Optional inclusion/exclusion of 17:00–20:00 NY window for iH/iL

Historical rendering controls + styling options for production charting
發行說明
Trade by Design — NY 17:00 Session Levels (v1.0.0)

Trade by Design plots key reference levels from a New York–anchored trading day that resets at 17:00 (America/New_York), making higher-quality context levels visible on any intraday chart.

Levels plotted

Previous Week High/Low (HoW/LoW)
Prior NY-anchored week (week starts Sunday 17:00 NY).

Previous Trading Day High/Low (HoD/LoD)
Prior trading day (17:00 NY → 17:00 NY).

Current Day Running High/Low (iH/iL)
Running high/low from the selected start time, plus the day’s range %.

Optional Gap handling (17:00–20:00 NY)

Include Gap: iH/iL starts at 17:00 NY

Exclude Gap: iH/iL starts at 20:00 NY

Settings
Customize colors and line styles, label size/offset, and how many historical weeks/days to display (older levels use suffixes like HoD2/LoD2, HoW2/LoW2).

Notes
Reference levels only — no buy/sell signals. Results can vary by symbol sessions/timeframe. Risk management required.

v1.0.0
Initial release: HoW/LoW, HoD/LoD, iH/iL + range %, gap option, and historical/styling controls.
v1.0.1
Update the script description as the older one was lengthy and has duplicated block of text.
發行說明
**Trade by Design — NY 17:00 Session Levels (v1.0.2)**

Trade by Design draws key reference levels based on a New York–anchored trading day that resets at **17:00 (America/New_York)**, so you can see higher-quality context on any intraday chart.

**Levels**

* **Previous Week High/Low (HoW/LoW)** (NY week starts **Sunday 17:00 NY**)
* **Previous Trading Day High/Low (HoD/LoD)** (**17:00 NY → 17:00 NY**)
* **Current Day Running High/Low (iH/iL)** + **day range %**

**Gap option (17:00–20:00 NY)**
Choose whether iH/iL starts at **17:00** (include gap) or **20:00** (exclude gap).

**Customization**
Adjust colors, line style/width, label size/offset, and how much history to display (older levels use suffixes like **HoD2/LoD2**).

**v1.0.2 note**
This release **updates the description only** (no indicator logic or feature changes).

Reference levels only — no trade signals. Always use risk management.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。