EdgeDesk.
← Research library

ES · Research methods

When can a one-minute backtest use an hourly signal?

Question and answer

When can a backtest making decisions every minute use a signal calculated from an hourly candle?

Use a completed hourly value only after its source candle has finished and that exact value is available to the decision. Finding the value in a historical file does not prove it was known earlier. When the same completed value is displayed on several minute rows, preserve its original update ID rather than counting each display as a fresh hourly observation.

This is a methods article, not a new ES backtest. Every date, clock time, value and count in the examples is invented for teaching. The supporting program checks timing and counting rules. It does not certify a private feature engine, reconstruct actual exchange sessions or measure historical trading performance.

Keep three different times visible

TimeWhat it meansWhat it does not establish
Source startThe candle’s opening label, such as 09:00That the final hourly close was known at 09:00
Source completionThe candle’s end, verified from source information or documented rulesThat data delivery and calculation were instantaneous
Value availableWhen the completed data and calculated value can first be usedThat an order filled at this time or at the candle’s closing price

A higher timeframe means a longer candle interval, such as hourly data viewed on a one-minute chart. A completed value uses a finished source candle. A developing value is a snapshot calculated while that candle is still forming. These are different definitions. A developing snapshot can be studied if its own inputs and availability are recorded, but the completed value must not be substituted for it retrospectively.

The source research specifies a necessary condition: source completion time must be no later than decision time. For these teaching examples we also record when the calculated value is available. If a feed or calculation arrives late, that later time governs use. This extra clock illustrates delivery timing. It does not change any existing private project’s availability rules or claim that its receipt timestamps have been audited.

A made-up boundary example

Invented fixed-offset clock: January 6, 2026, with an explicit −05:00 offset. H0 is an earlier observation available at 09:00 and valid until 10:00. H1 belongs to the source interval 09:00–10:00, becomes available at 10:00 and remains valid until 11:00. Its arbitrary value is True. This is not an ES signal formula or an exchange-session timetable.

Decision time in invented clockCan H1 be used?Latest legal completed observationInterpretation
09:59:59.999NoH0, with value FalseAn earlier valid False is different from no value
10:00:00.000Yes, if already availableH1, with value TrueThe completion boundary is included
10:00:00.001YesThe same H1Another display is not another source update
08:59:59.999NoNoneNo earlier eligible observation exists

Immediately before 10:00, H1 is unavailable. The selector may still show H0 because H0 has its own documented valid interval. It may not pretend H0 is H1 or extend it beyond its expiry. At 10:00 the fixture makes H1 both complete and available, so it becomes eligible for a calculation. This is an eligibility statement, not proof of an executable fill at 10:00.

The files test all three boundary times and retain the selected source ID. Comparing two displayed True values alone would not tell us whether they come from the same source update or two different ones.

Completion and delivery can differ

Separate invented case: L1 completes at 10:00 but becomes available at 10:00:02. It cannot be used at 10:00 or 10:00:01.999. It becomes eligible at 10:00:02. The two-second delay is made up, not a measured feed latency.

For a COMPLETED observation at decision time T:
  require source completion time <= T
  require value-available time <= T
  require T < the declared validity end

Then apply the strategy’s separate order and fill rules.

One safe sequence is: source completes, data is received, the feature is calculated, a decision is made, an order is sent, and a fill may occur. A delayed value available at 10:00:02 cannot justify a fill at the earlier 10:00 open. A bar’s close label or its next open does not by itself prove the processing order. A historical trading test needs its own documented execution model.

Write the availability rule explicitly

Inputs for each source observation:
  stable observation ID and feature definition
  completed/developing definition
  completion time verified from source information or documented rules
  first usable value-available time
  declared carry-forward/expiry rule
  actual value, which may be missing

For a completed-value decision at time T:
  Reject incompatible developing definitions.
  Reject missing or ambiguous completion information.
  Reject missing availability information or invalid time order.
  Keep only observations complete AND available by T.
  Keep only observations whose declared validity has not expired.
  Select the latest legal source update.
  If latest identity is unresolved, mark unavailable.
  If its value is missing, retain that identity and mark missing.
  Do not silently substitute an older non-missing value.
  Preserve valid False and numeric zero as actual values.

Carrying a known value onto later rows is often called forward-filling. Here it is permitted only within an explicit validity interval and with the same original ID. The expiry rule in the example is supplied in its inputs. It is not a proposed universal one-hour expiry. A real feature’s session, carry, warm-up and freshness rules must come from its accepted definition.

Never invent a completion time from value presence, substitute the minute-row label for a missing hourly completion, or choose the nearest future observation. If completion can be derived, the derivation must use accepted session boundaries, time zone, daylight-saving and shortened-session rules. These examples supply explicit offset-aware times. They do not derive any actual ES calendar, holiday close or final shortened candle.

Missing, False and zero mean different things

Invented situationStored resultEffect on a completed-value comparison
No eligible completed observationUnavailable, with no selected IDExclude and report the reason
Missing source completionUnavailable completion informationDo not treat the stored value as usable
Ambiguous source completionUnavailable completion informationDo not guess a time
Missing value on selected latest observationKeep the ID and a missing valueExclude the value rather than using an older one
Completed Boolean value FalseValid FalseKeep it as the actual observed value
Completed numeric value 0Valid numeric zeroKeep it as the actual observed value
Developing snapshot in completed-value testIncompatible definitionKeep developing and completed studies separate

A Boolean is a True/False value. False is not a substitute for “not yet known.” A numeric zero is not a substitute for missing data either. The example program preserves these distinctions. Its audit reports four excluded records with missing, ambiguous or incompatible source information separately from the decision whose selected value is missing. Those counts refer only to invented input records.

Keep the original observation identity

An observation ID tells us which original update a displayed value came from. An intrabar record is tied to a smaller bar inside a longer candle. The source’s intrabar rule uses HTF, meaning higher timeframe, in base_bar_id + registered HTF filter: the base-row identity and its registered higher-timeframe filter jointly identify that observation. Identity and availability are separate checks. A unique ID does not make a future value legally available.

For a completed hourly source carried into a minute-level view, retain its original completed-source ID on every display row. Do not overwrite that ID with the viewer minute. Two different source IDs that happen to have equal values still represent different updates. Conversely, repeating one source ID does not create a new update each minute.

When comparing two features, retain both identities. A new update to feature B may create a new A/B pair while A remains unchanged. Counts of A updates, B updates, pairs and sessions therefore answer different questions.

A made-up example of repeated minute rows

Invented Boolean comparison, with no market prices: feature P has one completed True observation. Feature Q has one completed True observation followed later by one completed False observation. There are two distinct P/Q source pairs. One agrees and one disagrees.

Invented viewing scheduleMatching display rows / all display rowsMatching distinct pairs / all distinct pairsDistinct P updatesDistinct Q updates
One view of each pair1 / 21 / 212
60 views of the first pair, then one of the second60 / 611 / 212

With one view per pair, display agreement is 1 ÷ 2 = 50%. Repeating the first pair for 60 minute views changes that display-weighted agreement to 60 ÷ 61 = 98.36%. The distinct-pair agreement remains 1 ÷ 2 = 50%. No new source observation was added by repetition. The change comes from giving one pair more display weight.

This is an arithmetic illustration, not a similarity qualification or a success rate. P is constant in the example. No correlation, feature-pruning decision, probability edge or performance result follows from these agreement counts. The source project’s private type-specific metrics and thresholds are not reconstructed or certified here.

Choose the counting unit before interpreting a result

For this two-feature comparison:
  key = session ID + source observation ID of A + source observation ID of B

Sort eligible viewer rows by decision time.
For each key, keep the earliest eligible row.

Report separately:
  number of displayed decision rows
  distinct A source updates
  distinct B source updates
  distinct source-observation pairs
  distinct sessions

The source comparison rules use distinct source pairs to prevent repeated displays from inflating support. Keeping the first row preserves the earliest legal comparison time. Session ID stays in the key. Two sessions with the same local source IDs are not silently merged. Equal displayed values alone are never enough to identify repeated source updates.

Distinct does not mean statistically independent. Consecutive updates can share prices, time windows and market conditions. Distinct source pairs are a count of identified observations, not an estimate of independent trials. Dependence, session weighting and uncertainty need separate treatment appropriate to the research question.

If the intended quantity is minute-by-minute exposure, counting minutes can be deliberate. It estimates a time-weighted quantity. If the intended quantity is a comparison across source updates, repeated minute displays give a different weighting. Neither question should be silently substituted for the other. A trade backtest must also define entries, exits and overlapping positions instead of treating every displayed row as a new trade.

Inspect all invented decision checks

The package contains 13 invented source observations and 18 decision checks. All dates below belong to the fixed-offset teaching example. The last two columns show the exact selected identity and stored value. An ID shown as “none” means no eligible source observation, while null is an explicit missing value.

All 18 invented timing and missing-value checks
Invented checkDecision timestampFeatureSelected source IDStatusValue
before2026-01-06T09:59:59.999-05:00HH0VALIDfalse
at_completion2026-01-06T10:00:00-05:00HH1VALIDtrue
after_completion2026-01-06T10:00:00.001-05:00HH1VALIDtrue
no_previous2026-01-06T08:59:59.999-05:00HnoneNO_AVAILABLE_OBSERVATIONnull
delayed_at_close2026-01-06T10:00:00-05:00LnoneNO_AVAILABLE_OBSERVATIONnull
delayed_before_ready2026-01-06T10:00:01.999-05:00LnoneNO_AVAILABLE_OBSERVATIONnull
delayed_ready2026-01-06T10:00:02-05:00LL1VALIDtrue
missing_completion2026-01-06T10:00:00-05:00UnoneNO_AVAILABLE_OBSERVATIONnull
ambiguous_completion2026-01-06T10:00:00-05:00AnoneNO_AVAILABLE_OBSERVATIONnull
missing_value2026-01-06T10:00:00-05:00MM1MISSING_VALUEnull
valid_numeric_zero2026-01-06T10:00:00-05:00ZZ1VALID0
developing_rejected2026-01-06T10:00:00-05:00DnoneNO_AVAILABLE_OBSERVATIONnull
missing_known_time2026-01-06T10:00:00-05:00KnoneNO_AVAILABLE_OBSERVATIONnull
next_completion2026-01-06T11:00:00-05:00HH2VALIDfalse
expired2026-01-06T12:00:00-05:00HnoneNO_AVAILABLE_OBSERVATIONnull
target_before2026-01-06T09:59:59.999-05:00HnoneNO_AVAILABLE_OBSERVATIONnull
valid_false2026-01-06T09:00:00-05:00HH0VALIDfalse
equivalent_utc2026-01-06T15:00:00+00:00HH1VALIDtrue

The status labels mean: VALID is an eligible actual value; NO_AVAILABLE_OBSERVATION means no source passed the time/definition rules; MISSING_VALUE means an identity was selected but its value is missing. The separate exclusions CSV explains missing completion, ambiguous completion, missing availability and incompatible developing mode.

What was checked and what remains untested

The checker confirms 76 explicit output and fraction comparisons, plus 15 groups of boundary and change tests. These include before/at/after completion, late arrival, changing a future value without changing past decisions, equivalent UTC and offset clocks, input reordering, missing-value handling, valid False/zero, expiry, duplicate identities, unresolved latest-source ties and unchanged distinct pairs after repeating display rows.

The source conversation supplied timing and counting requirements. Reading a requirement is not evidence that a private implementation passed it. This article runs a small standalone teaching program only. It does not reopen private checkpoints, inspect protected feature snapshots, change trading logic, launch a similarity study or certify existing live signals.

There is no historical market sample, licensed vendor dataset, actual feed-latency measurement, statistical confidence estimate or predictive validation in this article. There are no entries, fills, costs, profit figures or performance claims. An exchange-specific clock, fully recorded developing snapshots, target definitions and a validated execution model remain required for any later empirical study.

This topic complements the signal-check-frequency article: checking less often changes when decisions update, while availability determines what information is legal at each check. It also complements the overlapping-minute-evidence article: repeated source values and overlapping future-price windows are different forms of reused information. Removing duplicate source pairs alone does not solve outcome overlap or statistical dependence.

Practical meaning

For every decision, be able to answer: which source update supplied the value, when did its candle finish, when could that value first be used, and how long was it valid? Then count the observations appropriate to the question. If any required timing cannot be established, keep the value unavailable instead of turning uncertainty into a convenient number.

Reproduce the teaching examples

python -B reproduce.py
python -B verify.py

Tested with Python 3.12.14 and the standard library. No market file, feed, package install or credentials are required. The research-only files contain the invented inputs and their hash, exact timing/counting configuration, both programs, all 18 decision rows, source exclusions, repetition counts and actual check results. Private engine code, vendor data, raw chats, machine paths and credentials are excluded.

Change history: November 3, 2026 — prepared the timing and repeated-view methods demonstration from inspected source requirements. All example values are invented. The matching article, study-design card and research files await owner review.

Study dates, sample and method
Data period
No historical market sample · all January 6, 2026 clock times are invented fixed-offset examples
Eligible sample
13 invented source updates; 18 timing checks; two viewing schedules; no historical trades
Method
Use values after source completion and availability; count original updates separately from repeated minute displays.

JUMP TO ANYWHERE

Keep moving.