OPEN-SOURCE SCRIPT
Aggiornato

TDO & Hit Rates by Weekday (5 min)

217
Purpose
Tracks how often the next NY session “hits” the previous day’s True Day Open (TDO) level, separately for sessions that open above vs. below TDO, and breaks the statistics down by weekday (Mon–Fri) plus an overall summary.

Key Features
True Day Open (TDO) Plot

Captures the prior day’s 23:00 CT close price as the TDO.

Plots it as a continuous yellow line across your chart.

Session Labeling

At the end of each NY session (08:30–15:00 CT), places a small “TDO” label at the TDO price to confirm visually where it lay during that day.

Hit‑Count Logic

For each 5 min bar in the NY session, checks if the bar’s high ≥ TDO ≥ low (i.e. the TDO level was “hit”).

Classifies each session by whether its opening price (first 5 min bar) was above or below the TDO.

Weekday Statistics Table

Displays in the bottom‑left of your main chart window.

Rows: Header, Mon, Tue, Wed, Thu, Fri, All.

Columns:

% Hit Above: % of “above‑TDO” sessions that saw at least one hit

% Hit Below: % of “below‑TDO” sessions that saw at least one hit

Automatically updates in real time as new sessions complete.

Inputs & Settings
Data Resolution: Default = 5 min; use any intraday timeframe you like (1, 3, 15 min, etc.).

Extended Hours: Make sure your chart’s Extended Session (overnight) is enabled so the 23:00 CT bar exists.

Overlay: Draws directly on your price chart (no separate pane).

How to Use
Add to Chart: Paste the Pine v5 code into TradingView’s editor and apply to your ES (or other) futures chart.

Enable Overnight Bars: In Chart Settings → Symbol/Session → include Extended Hours.

Select Timeframe: Set the chart (or the indicator’s “Data Resolution” input) to 5 min (or your preferred intraday).

Read the Table:

Each weekday row shows how reliable TDO touches have been historically, separately for “above” and “below” opens.

The bottom “All” row summarizes combined performance.

What You Learn
Edge Analysis: Do sessions opening above TDO tend to test that level more often than those opening below (or vice versa)?

Day‑of‑Week Bias: Are certain weekdays more prone to TDO retests?

Overall Confidence: The “All” row lets you see your full-sample hit‑rate on both sides.
Note di rilascio
Purpose
Tracks how often the next NY session “hits” the previous day’s True Day Open (TDO) level, separately for sessions that open above vs. below TDO, and breaks the statistics down by weekday (Mon–Fri) plus an overall summary.

Key Features
True Day Open (TDO) Plot

Captures the prior day’s 23:00 CT close price as the TDO.

Plots it as a continuous yellow line across your chart.

Session Labeling

At the end of each NY session (08:30–15:00 CT), places a small “TDO” label at the TDO price to confirm visually where it lay during that day.

Hit‑Count Logic

For each 5 min bar in the NY session, checks if the bar’s high ≥ TDO ≥ low (i.e. the TDO level was “hit”).

Classifies each session by whether its opening price (first 5 min bar) was above or below the TDO.

Weekday Statistics Table

Displays in the bottom‑left of your main chart window.

Rows: Header, Mon, Tue, Wed, Thu, Fri, All.

Columns:

% Hit Above: % of “above‑TDO” sessions that saw at least one hit

% Hit Below: % of “below‑TDO” sessions that saw at least one hit

Automatically updates in real time as new sessions complete.

Inputs & Settings
Data Resolution: Default = 5 min; use any intraday timeframe you like (1, 3, 15 min, etc.).

Extended Hours: Make sure your chart’s Extended Session (overnight) is enabled so the 23:00 CT bar exists.

Overlay: Draws directly on your price chart (no separate pane).

How to Use
Add to Chart: Paste the Pine v5 code into TradingView’s editor and apply to your ES (or other) futures chart.

Enable Overnight Bars: In Chart Settings → Symbol/Session → include Extended Hours.

Select Timeframe: Set the chart (or the indicator’s “Data Resolution” input) to 5 min (or your preferred intraday).

Read the Table:

Each weekday row shows how reliable TDO touches have been historically, separately for “above” and “below” opens.

The bottom “All” row summarizes combined performance.

What You Learn
Edge Analysis: Do sessions opening above TDO tend to test that level more often than those opening below (or vice versa)?

Day‑of‑Week Bias: Are certain weekdays more prone to TDO retests?

Overall Confidence: The “All” row lets you see your full-sample hit‑rate on both sides.

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.