TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Patterns across timeframes without future leakage

Study patterns across timeframes without future leakage through mechanisms, a synthetic worked case, practice, and explained assessment.

Chart Patterns

APPLIED STUDY · ORIGINAL LESSON

Learning plan and prerequisites

Before you begin: Understand OHLC aggregation, session calendars and pattern confirmation timestamps.

Mechanism and interpretation

A pattern on a short timeframe can occur inside a different structure on a longer timeframe. A daily triangle might sit inside a weekly range, and a five-minute breakout might be a small pullback in an hourly trend. Neither description automatically overrules the other. State the role of each timeframe: one may select context, another may identify a trigger, and a third may have no role in the decision.

The central timing problem is that higher-timeframe bars are still developing while lower-timeframe bars close. At Wednesday's daily close, the current week's final high, low and close are not yet known. A backtest using Friday's completed weekly value for a Wednesday signal leaks future information. Use the last completed weekly state, or define a developing-week calculation using only the data available by Wednesday. If that developing value changes later, preserve its earlier version instead of replacing it retrospectively with the final bar.

Worked case — synthetic data

Synthetic last completed week ends with range [90,110]. During the new week, Monday's range is [100,105], Tuesday's [102,108] and Wednesday's [104,111], with Wednesday close 110.5. At that close, the developing week's range is [100,111]. A daily event can be described as closing above the old completed-week high 110. It cannot use an eventual Friday high of 116 as though that boundary had already been known.

Suppose the daily breakout and a five-minute breakout both derive from the same move through 110. Calling them two independent confirmations exaggerates the amount of evidence. A sensible dataset can retain both labels but attach a shared event or time-cluster identifier so performance summaries do not assume they represent unrelated observations.

Context and failure modes

Timezones, overnight sessions and different provider week boundaries can change aggregation. A weekly candle starting Sunday evening is not necessarily the same interval as a cash-market Monday-to-Friday week. Corporate-action adjustment should also be consistent across datasets. More timeframe filters reduce the sample and add parameter choices; they should be justified by a defined hypothesis rather than by how convincing one selected chart looks.

Practice task

The previous completed hourly high is 200. In the current hour, the first two 15-minute bars have highs 198 and 201; the second closes 200.5. The final hourly high later becomes 206. Which reference can a rule based on the previous completed hour use at the second 15-minute close? What is the developing current-hour high then?

Worked practice answer

The previous completed-hour reference is 200 and is already available. The developing current-hour high is 201 from the two observed bars. The future final high 206 is unavailable. A close of 200.5 exceeds the previous-hour reference but does not exceed the developing current-hour high; these are distinct comparisons with different purposes.

Topic assessment

Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.

1. What weekly information is available at Wednesday's close?

  1. The last completed week and the observed developing week so far
  2. The final Friday high and close
  3. Every future weekly pivot
Reveal answer and explanation

A. A live information set excludes observations that have not yet occurred.

2. Why can two timeframe labels be dependent?

  1. Their tickers must be different
  2. They may describe the same underlying price event
  3. Different bar sizes always create independent returns
Reveal answer and explanation

B. Shared prices and overlapping windows can make the evidence strongly correlated.

3. What should happen to a developing higher-timeframe value in a replay?

  1. Replace every earlier value with the final completed bar
  2. Delete the entire developing period
  3. Store its value as known at each decision time
Reveal answer and explanation

C. Timestamped versions prevent later aggregation from contaminating earlier decisions.

Primary references and scope

Original explanation and synthetic calculations. Chart thresholds are explicit research conventions, not exchange rules or proof of predictive ability.