Learning objectives
- Construct a weekly OHLC reference from the sessions that actually occurred.
- Explain why averaging daily pivots does not reproduce a weekly pivot.
Prerequisites: Read session calendars and aggregate highs, lows and closes chronologically.
Mechanism and interpretation
A completed weekly bar uses the maximum eligible session high, the minimum eligible session low and the final eligible close. A holiday-shortened week does not need invented sessions to reach five observations. Its weekly pivot is calculated from that aggregated OHLC, not from the average of its daily pivots. These operations differ because taking an extreme is not the same as averaging.
The calendar determines period membership. A market holiday, an overnight session labeled by trade date and a missing file are different situations. Document whether the week closes on the last scheduled trading session and how a genuine missing session affects eligibility. A partially observed week should not be silently treated as complete merely because the available file ends.
Worked case · synthetic data
A synthetic three-session holiday week has highs 101,104,103; lows 95,96,97; closes 99,103,102. WeeklyH=104, L=95, C=102, soP=301/3≈100.3333. The daily pivots are 98.3333,101,100.6667; their average is 100. The 0.3333 difference comes from different aggregation, not rounding. The closing observation is 102 even though 103 was a higher earlier close.
Failure modes and context
Holiday calendars can differ across linked markets. An exchange trade date may not match a UTC calendar date. Missing data on a scheduled session should trigger a gap policy, not fabricated zero-range bars. Comparing shortened weeks with ordinary weeks may also change range distributions, so keep a session-count field for later analysis.
Practice assignment
Three eligible sessions have highs 212,216,214; lows 204,208,206; closes 210,215,211. Calculate weeklyOHLC andP. If a fourth scheduled session is absent from the vendor file rather than a holiday, explain how the data-quality status changes.
Worked answer
WeeklyH=216, L=204, C=211 andP=631/3≈210.3333. A missing scheduled session makes the weekly aggregation incomplete unless recovered or handled by a declared exclusion rule. It is not equivalent to a legitimate three-session calendar week.
Check your understanding
Question 1
Which close enters a completed weekly bar?
- The average daily close
- The final eligible session close
- The highest daily close
Reveal answer and reasoning
B. The final eligible session close
OHLC close is chronological, not an extreme or average.
Question 2
Must a holiday week contain five invented daily bars?
- No
- Yes
- Only for pivots
Reveal answer and reasoning
A. No
Aggregation follows actual eligible sessions and the market calendar.
Question 3
Does averaging daily pivots always equal the weekly pivot?
- Yes
- Only if prices are positive
- No
Reveal answer and reasoning
C. No
Weekly extremes and final close differ from averages of daily inputs.
