MQT_TodaysDailyRange

Today's True Range — Time‑Window Accurate

MQT_TodaysDailyRange tracks the current day's high, low, and total range inside a user‑defined trading window. It supports overnight sessions, real‑time tick updates, smart label placement, and optional window shading.

Back to Indicators

Key Features

Custom Time Window

Measure daily range only during selected session hours.

Overnight Session Support

Correct session anchoring across midnight.

Live High & Low Lines

High and low update on every tick.

Range in Price & Ticks

Displays both price range and tick distance.

Smart Label Collision Avoidance

Prevents labels from overlapping candles.

Optional Time Window Shading

Visual session window with adjustable opacity.

Chart Examples

Intraday Window Range

High and low tracked inside the active session

Full Session Context

Range, labels, and session boundaries

Overnight Session Example

Correct handling of overnight trading windows

How It Works

1

Set Window

Choose start and end times for the range.

2

Anchor Session

Automatically determines correct session date.

3

Track Extremes

Updates high and low inside the window.

4

Render Visuals

Draws lines, labels, and shaded window.

Indicator Settings

Setting Type Typical Values Description
Window Start Time Time HH:MM (e.g., 09:30) Defines the beginning of the daily range measurement window.
Window End Time Time HH:MM (e.g., 16:00) Defines the end of the daily range measurement window.
Overnight Session Mode Boolean On / Off Enables correct session anchoring when the window crosses midnight.
Show High Line Boolean On / Off Displays a horizontal line at the session high.
Show Low Line Boolean On / Off Displays a horizontal line at the session low.
Show Range Labels Boolean On / Off Displays text labels showing price range and tick distance.
Label Collision Avoidance Boolean On / Off Automatically adjusts label placement to prevent overlap with price bars.
Show Window Shading Boolean On / Off Adds a semi‑transparent background to visually highlight the active time window.
Shading Opacity Numeric 10–50% Controls the transparency level of the window shading.
Line Style / Width Style Solid / Dashed / Dotted Customizes the appearance of high and low lines.
Color Settings Style Default / Custom Controls colors for high line, low line, labels, and shading.

Note: The exact parameter names and defaults depend on your current build. If you paste the indicator's NinjaTrader property section (or C# code), I can convert this into exact names + default values (matching your code 1:1).

FAQ

How is this different from a standard daily high/low indicator?

Standard indicators measure the entire trading day. This indicator lets you define a custom time window (e.g., 9:30–16:00) and only tracks the high/low inside that window.

Does it work for overnight sessions?

Yes—enable Overnight Session Mode to correctly anchor the window when it crosses midnight. This is essential for instruments like ES or NQ with extended hours.

Will the high and low update in real time?

Yes—the indicator uses OnEachTick calculation, so the high and low lines update continuously as new ticks arrive during the active window.

What does "smart label collision avoidance" do?

It automatically repositions labels to prevent them from overlapping with price bars, keeping your chart clean and readable.

Can I use this on any timeframe?

Yes—it works on any intraday timeframe. The window is time‑based, not bar‑based, so it will correctly track the high/low regardless of your chart's bar interval.

Does it repaint?

The high and low will update as new extremes are reached during the live session. Once the window closes, those values are fixed for that day.

What's the purpose of the window shading?

It provides a visual reference for the active measurement window, making it easier to see exactly when the indicator is tracking the high/low.

Can I display the range in both price and ticks?

Yes—when labels are enabled, the indicator shows both the price range (e.g., 50.00) and the tick distance (e.g., 200 ticks) for quick reference.

Back to Indicators