CYGURUACADEMYMy learning ↗
Gold Trading / MODULE 8 / LESSON 1 OF 5

Define a hypothesis before opening a backtest

10 min read · 1905 words · practice time separate

Extended edition · 7 November 2026

Reading estimate uses 200 words per minute and excludes exercises, self-review and optional book descriptions. Earlier lesson checks are kept; revisit the expanded text if you completed the short edition.

BY THE END OF THIS LESSON

Write a versioned evaluation hypothesis specifying population, event, outcome, horizon, execution model and decision criteria before inspecting a backtest result.

Opening a backtest before defining the question invites the result to choose the story. A striking equity curve can make an ordinary pattern feel important, while an inconvenient result encourages a quiet change in trigger, sample or costs. This lesson places a research statement before the calculation. You will define what is being measured, which fictional candidates belong to the study and what a result could or could not establish. The objective is not to predict a profitable strategy. It is to make the relationship between a hypothesis and its evidence inspectable before the evidence becomes emotionally persuasive.

In this lesson · 12 sections
  1. Separate an idea from a hypothesis
  2. Define the candidate population before seeing examples
  3. Specify the event and its knowledge time
  4. Name the outcome rather than saying it worked
  5. Fix the horizon and stopping convention
  6. State execution and costs inside the hypothesis object
  7. Choose a comparison that answers the question
  8. Prewrite the handling of exclusions and missingness
  9. Define evidence that would weaken the idea
  10. Keep development freedom visible
  11. Run a protocol rehearsal on designed cases
  12. Finish with a dated research statement

1. Separate an idea from a hypothesis

An idea can be broad: perhaps a range crossing contains information about subsequent gold prices. A hypothesis narrows that idea into a statement about a population, event, measure and horizon. It might concern the average net outcome of a fixed simulated rule across all eligible candidates in a declared dataset. Those words identify several decisions that a chart impression leaves unanswered.

Write the broad idea in one sentence and the evaluable statement in another. Do not claim that the narrower statement is automatically economically important merely because it can be measured. A measurable difference may be small, sensitive to assumptions or irrelevant to an implementation. The point is to know which statement the evidence addresses. Without that boundary, a result about one horizon can be narrated as proof of a much larger claim about prediction, execution or market understanding.

2. Define the candidate population before seeing examples

Specify instrument, source, calendar window, observation frequency and the eligibility rule. For this classroom project, use a fictional set of fixed-range candidates rather than live market records. A candidate belongs because it meets the prewritten context rule, not because its later movement looks useful. Keep no-trigger, rejected and unresolved statuses available so the population does not collapse into selected simulated winners.

The population determines what any later average describes. A result over completed simulated actions is different from a description of all eligible contexts. State which one is the primary object and how the other records remain visible. If the data source cannot identify the intended population, that is a design limitation to solve before interpreting a backtest. A large result table does not repair an unclear denominator.

3. Specify the event and its knowledge time

Choose the exact recognition rule, such as the first completed close strictly above a previously frozen range boundary. Define equality, construction periods and expiry. The event becomes known only when the required information exists. A range selected using later bars or a swing confirmed after the supposed entry introduces information unavailable at the claimed decision time.

Write both event time and recognition time when they differ. This is especially important when a rule requires confirmation. The hypothesis should not depend on treating a historical turning point as known at its instant merely because a completed chart marks it clearly. A separate timeline is often enough to expose the problem. The question is what a fixed procedure could have classified from the stated information, not what a researcher can recognise after seeing the complete path.

4. Name the outcome rather than saying it worked

Worked can mean that price moved favourably at some point, that a fixed later close was higher, that a hypothetical trade earned money or that the process met an operational requirement. These are different outcomes. Choose one primary measure and define its units. For a fictional transaction study, a net USD result per simulated action under stated quantity and costs is one possible measure.

If you also inspect maximum favourable movement, label it secondary and explain that it is not automatically a realised return. A later high does not establish an achievable exit at that high. Keep each quantity tied to its own observation rule. This prevents the research conclusion from shifting to whichever statistic looks best after the test. A study can fail its primary question while producing an interesting secondary observation, but the report should preserve that distinction.

5. Fix the horizon and stopping convention

An outcome requires an endpoint or exit rule. A fixed number of completed periods, a specified condition or a documented combination can define it. State what happens if several events appear within one coarse candle and their order cannot be resolved. Do not let the eventual favourable move determine how long the hypothetical position was supposedly held.

For the classroom hypothesis, choose a fixed three-period observation horizon after recognition and a separate transaction-exit convention if monetary results are calculated. This number organises the exercise; it is not a recommended trading horizon. Record whether a candidate whose follow-up is incomplete remains pending or is excluded under a prewritten rule. The horizon should create a boundary against indefinite searching for a later success. Changing it after seeing outcomes creates a new version, not clarification of the old one.

6. State execution and costs inside the hypothesis object

A transaction result depends on assumed entry, exit, quantity and charges. Recognition at a completed close does not establish a fill at that exact price. Define the hypothetical price source and the next eligible action time. State whether spread effects are embedded in transaction prices and which charges remain additional. Without those assumptions, the word net is not reproducible.

Link the research statement to a named execution model rather than hiding it in a later calculation sheet. A favourable result under ideal fills may answer a classroom accounting question while saying little about actual implementation. The model's limits should constrain the hypothesis's interpretation from the start. Missing quotes or unresolved event order belong in the protocol, because deleting difficult cases after their outcomes are visible can materially change what the result appears to support.

7. Choose a comparison that answers the question

A baseline should clarify what difference you want to examine. In a simple fictional action model, doing nothing produces no transaction profit or loss, while the simulated rule produces its specified net result. That comparison is limited to the exercise's accounting object. It does not automatically compare all possible investments, opportunity costs or uses of capital. State the scope instead of letting a convenient zero imply a universal alternative.

Another question might compare two fixed rule versions, but it needs comparable data and an explicit selection process. Do not introduce a benchmark after seeing that it makes the chosen rule look strong. Write why the comparison is relevant and what inputs both sides share. A well-defined baseline can reveal that the hypothesis concerns only a narrow incremental question rather than the complete economic merits of participating in a market.

8. Prewrite the handling of exclusions and missingness

List legitimate exclusions and the evidence needed to apply them. For example, an unavailable next-period quote can prevent reconstructing the intended simulation. Keep the candidate in the population register with a missing-data status. Do not treat the missing outcome as zero unless zero is actually the defined result of a modelled no-action decision. Those are different claims.

Also specify how incomplete follow-up is handled at the evaluation cutoff. A pending result should not be replaced by the most favourable movement observed so far. The protocol can report completed-case measures while identifying pending and unresolved counts, but it must disclose what the denominator represents. A hypothesis becomes more honest when it anticipates the ordinary messiness of records instead of assuming that every candidate will provide a clean answer to every desired calculation.

9. Define evidence that would weaken the idea

A research protocol should permit an unfavourable result. Name observations that would challenge the hypothesis or make the study uninformative: net outcomes failing the prewritten comparison, conclusions changing under plausible cost scenarios or a large unresolved subset preventing a credible interpretation. These conditions are not guarantees that any one test settles every related market question. They define what this inquiry can learn.

Distinguish rejection of a specific claim from abandonment of an entire subject. If the chosen model is unhelpful under its assumptions, record that result without searching immediately for a label that preserves the original enthusiasm. You may propose a new question later. It should receive a new version and acknowledge which evidence motivated it. A hypothesis protected from every possible disappointing observation is a story, not an evaluable research statement.

10. Keep development freedom visible

Before testing, record which examples you already inspected and which settings you considered. Prior exposure matters because the apparent first hypothesis may already reflect many informal trials. A polished final specification can conceal a long search if that history is omitted. The protocol should identify known development information rather than pretending the idea arrived independently of every attractive chart that inspired it.

Exploration remains useful. You can study alternative horizons or triggers as development work while labelling that work accurately. What changes is the strength of the later claim: evidence used to choose a rule should not also be portrayed as untouched confirmation of the selected rule. Keeping the search visible allows a reviewer to understand how the hypothesis was formed and what separated evaluation would need to examine before a stronger conclusion could be considered.

11. Run a protocol rehearsal on designed cases

Use a few fictional cases to test the procedure, not to estimate market performance. Include one ordinary completed result, one no-trigger expiry, one missing quote and one ambiguous event sequence. Apply the written membership and outcome rules. If two readers disagree, locate the missing convention before collecting a larger dataset. A rehearsal can improve the protocol while remaining clearly distinct from evaluation.

Do not count these designed examples as independent support for the hypothesis. They were constructed to expose definitions and may have influenced revisions. Save the original and revised wording with the reason for each change. The rehearsal succeeds when it shows how the system handles uncertainty and contradiction consistently. It need not produce a favourable result. A protocol that cannot survive a simple awkward case is not ready to support a confident interpretation of a complex backtest.

Add a denominator challenge to the rehearsal. Suppose five contexts meet the population rule, three produce triggers, two of those have complete hypothetical fills and one remains unresolved. The protocol should identify five candidates, three recognised events and two completed simulated actions. A mean based on those two actions must not be described as an average of all five candidates without a separately defined treatment. This exercise tests the measurement object before any attractive total can distract from it. Write the different counts beside the relevant measures, not only in a distant note. If the primary research question requires complete outcomes for every trigger, the unresolved case may limit the conclusion. The purpose of the rehearsal is to discover that limitation early, rather than make a small completed subset appear comprehensive.

12. Finish with a dated research statement

Your final page names population, event, recognition time, outcome, horizon, execution model, baseline, missing-data rules and review criteria. Add a version and date before opening the evaluation output. Another reader should be able to explain what result would answer the question and what would leave it unresolved. If that explanation requires guessing your intention, revise the page first.

Conclude with an explicit limit: this protocol makes a hypothetical study interpretable; it does not establish future profitability, suitable exposure or reliable execution. The next lesson separates data used to develop the rule from data used to evaluate it. Preserve the protocol through that separation so that the question stays stable when the result becomes visible. The strongest research habit is the willingness to let a precise question receive an inconvenient answer without quietly replacing the question.

A worked example

A fictional protocol studies every eligible fixed-range candidate under version 1.0, recognises the first strictly-above completed close and measures a documented three-period outcome using a separate execution-and-cost model. A missing quote remains unresolved; a no-trigger expiry is retained. A favourable example cannot change the horizon or select the population after the test.

Put it into practice

Write a one-page hypothesis protocol before examining any new result. Define the population, event, knowledge time, outcome, horizon, baseline, execution model and missing-data handling. Add one observation that would weaken the claim and one limitation that would make the evaluation inconclusive.

Notes stay in this browser. Avoid sensitive personal information.

Compare your answer · Self-review guide

A strong protocol can be applied without outcome knowledge. It identifies what is measured and which candidates support the denominator, prewrites exclusions and distinguishes designed rehearsal cases from evaluation evidence. It permits unfavourable or inconclusive findings without retroactive changes.

This is an indicative answer, not an automatic assessment of your written work. Check your reasoning, units and assumptions.

CHECK YOUR UNDERSTANDING

What should be fixed before interpreting a backtest result?

← PreviousNext lesson →