OPEN-SOURCE SCRIPT

Market Mood | Session Range

238
Market Mood | Session Range helps traders understand how much a market has moved during each trading session, how that movement compares with previous sessions, and whether today’s range is expanding faster or slower than usual.

The indicator combines session boxes with a compact dashboard covering Frankfurt, London, New York, Sydney, and Tokyo. Each session is calculated independently, including when sessions overlap.

The dashboard presents four core readings:

• MOVE SO FAR — The distance between the highest and lowest prices recorded since the session opened. This measures the session’s range so far, rather than the net change from its opening price or the total distance traveled by price.

• AVG. MOVE — The average range of previous completed sessions of the same type. London is compared with previous London sessions, New York with previous New York sessions, and so on. The default averaging period is 20 completed sessions and can be adjusted.

• AVG. USED — The current session’s movement divided by its historical average, expressed as a percentage. For example, a current movement of 15 pips against an average of 30 pips produces a reading of 50%. Readings above 100% mean the session has exceeded its average range.

• TODAY’S ACTIVITY — A comparison with historical movement at the same elapsed time within the session. This adds time context to the current range.

For example, suppose London has moved 20 pips after its first hour, while previous London sessions averaged 12 pips at that same point. Today’s movement is approximately 167% of the usual first-hour movement.

The activity column classifies this comparison as:

• Slower — Below 80% of the usual movement at that time.
• Usual — Between 80% and 120%, inclusive.
• Faster — Above 120% of the usual movement at that time.

These thresholds are configurable. They describe relative range expansion; they are not probabilities, trend signals, or measures of trading profitability.

Activity assessment starts after 15 minutes by default and updates on confirmed candle closes. “Starting” appears during the initial waiting period. “Learning” appears when there are not enough historical observations at the matching elapsed time. The comparison requires five completed sessions, or the selected averaging period if it is shorter than five. Hovering over an activity value reveals the supporting comparison.

Movement units adapt to the instrument:

• Forex pairs use pips, with an optional custom pip-size setting.
• Non-forex instruments, including metals, indices, energy markets, and cryptocurrencies, use percentages.

For non-forex instruments, session movement is calculated as:

Session Movement (%) = (Session High − Session Low) ÷ Session Opening Price × 100

Each historical session is measured against its own opening price before the percentage average is calculated. A 0.50% movement against a historical average of 1.00% therefore represents 50% of the average used.

Session schedules are configurable in each city’s local time. Location-based timezones automatically account for daylight-saving changes where applicable. The clock display timezone can be set separately.

Display settings include session colors, boxes, opening lines, historical drawings, text size, and dashboard position. The default dashboard shows active sessions. Detailed view also includes closed sessions and their available averages. Hiding a session’s chart drawings does not disable its calculations.

Optional alerts notify users when a session reaches 80%, 100%, or 120% of its average range. Each enabled threshold triggers once per session, on a confirmed candle close. If several thresholds are reached on the same candle, they can appear together in the alert.

The indicator uses completed sessions for historical averages and excludes incomplete sessions from those averages. The current session’s reference average remains fixed throughout that session. Available chart history determines how many past sessions can be included.

Use standard time-based candles from 1 to 60 minutes, with candle boundaries aligned to the configured session times. Missing bars or misaligned boundaries can cause a session to be marked as partial. The optional live-update mode allows movement readings to change during the forming candle; activity assessments and alerts remain close-confirmed.

Market Mood | Session Range provides context for session movement. An average is not a maximum: exceeding 100% does not imply that price must stop or reverse. Faster activity also does not indicate whether price will rise or fall.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.