The trader’s journeyIntermediate25 min read

An experiment journal that lets you reconstruct a decision

Connect questions, runs, versions, data and results in trading research through a concrete, reproducible record.

You find two folders labelled “final” and “final corrected”. One contains three trades; the other contains four. You remember changing something about time, but not whether you extended the deadline for accepting quotes, corrected the reader or used another file. The figures have been saved. The decision needed to interpret them has been lost.

An experiment journal solves that problem when it connects questions, decisions and files. It does not need to narrate every minute of work. It needs to preserve the steps explaining why a result belongs to a specific question and what another person would have to do to reconstruct it.

The record begins before the output is known. It then incorporates what actually happened, including failed runs, corrections and analyses prompted by looking at the data. A note written at the end can be useful, but should distinguish reconstruction from information recorded beforehand.

We will develop a fictional investigation of a Forex entry simulator. All its dates, quotes, quantities and identifiers are educational. They represent neither Atlas evidence, robot results nor a hypothesis promoted through its scientific process. The proposed organisation can be used to study public rules and code without revealing a private generator.

The question will be small: what changes when we wait 250 milliseconds before looking for a quote while keeping a maximum deadline of one second from the signal. We will not evaluate profitability. We will see how a record preserves differences in availability, prices and denominators without turning them into unsupported conclusions.

Separate the experiment, the run and the file

We will call the set of decisions answering that question experiment E17. Its identity includes the comparison, selected inputs, measurement criteria and limits. A run is a specific attempt to apply a configuration: it can finish successfully, fail or produce an output that is later invalidated.

Files are another unit. The quote dataset, configuration, difference report and error log are artifacts. One file can participate in several runs. One run can generate several files. Confusing these relationships makes the number of folders look like the number of experiments.

In our journal, E17 will contain runs R01, R02, R03 and R04. R01 will fail while reading a column. R02 will calculate the reference without an added wait. R03 will apply the 250-millisecond wait. R04 will repeat R02 to check reproduction. These names are teaching identifiers, not results of work conducted by Atlas.

Repeating a run does not enlarge the sample. R02 and R04 will process the same four fictional signals. If they produce the same table, that provides a check of the procedure, but does not turn four signals into eight independent observations. The journal should preserve that distinction even when a tool displays each run as a row.

A simple structure connects each run to its experiment and to an identified configuration. The visible name can be descriptive, but a stable identifier avoids dependence on titles that change. “Entry delay” can serve as a label; E17 provides an unambiguous link.

States also belong to different units. A file can be available while its run is invalidated. An experiment can remain open even though several runs have finished. An idea can remain exploratory after producing a complete table. Do not use a single “complete” field to express all three things.

A run’s status and the strength of its conclusion are different decisions. This principle will guide the rest of the case.

Write the question before comparing

The journal’s first entry has a fictional date: 12 March 2025 at 08:30 UTC. Before running anything, the person responsible for the exercise writes: “Compare quote availability and the entry-price difference between zero wait and a 250-millisecond wait, using the same signals and a one-second deadline”.

The reference will seek the first quote at or after the signal’s instant. The variant will seek the first quote from signal time plus 250 milliseconds. Both reject quotes after signal time plus one second. The temporal endpoints are inclusive. That precision makes it possible to decide what happens to a quote exactly at the boundary.

Two descriptive outcomes are fixed. First, the number of signals with an admissible quote in each configuration. Second, the monetary price difference between configurations only for signals with a quote in both. Signals without a match will be preserved separately and will not be assigned a zero difference.

The teaching quantity is 1,000 EUR for each EUR/USD purchase entry. Prices are expressed in USD per EUR. No exits are simulated. The calculated amounts will therefore describe differences in entry outlay under the model, rather than a strategy’s profits or losses.

The denominator is decided beforehand too. The record states which signals form the initial set, which can be paired and how those without a quote will be presented. Choosing that criterion after seeing which trades look favourable changes the interpretation of the summary.

The Center for Open Science describes preregistration as specifying a plan before a study and submitting it to a registry, distinguishing planned from unplanned work. Our local note adopts the temporal separation, but does not by itself constitute a deposited preregistration or establish an Atlas hypothesis. Preregistration.

The entry closes with a limitation: four invented signals allow the procedure to be checked, not market behaviour to be estimated. The later run cannot erase that limit merely because it produces precise figures.

Delimit the exercise’s small world

The signal file contains D1 at 09:00, D2 at 09:05, D3 at 09:10 and D4 at 09:15 UTC on the fictional day. The quote table contains two records per signal, with times expressed as milliseconds elapsed since each signal. This relative representation keeps the comparison window visible.

For D1, the ask is 1.2000 at 100 milliseconds and 1.2003 at 300. For D2, it is 1.2010 at 100 and 1.2008 at 300. For D3, it is 1.1995 at 100 and 1.1997 at 1,500. For D4, it is 1.2020 at 200 and 1.2021 at 400.

Signal First quote Second quote
D1 100 ms; ask 1.2000 300 ms; ask 1.2003
D2 100 ms; ask 1.2010 300 ms; ask 1.2008
D3 100 ms; ask 1.1995 1,500 ms; ask 1.1997
D4 200 ms; ask 1.2020 400 ms; ask 1.2021

The comparison universe is fixed. We do not add a fifth signal because its result is interesting. Nor do we remove D3 because it complicates the table. If we wanted to expand the exercise, we would record a new version of the inputs and explain the new comparison.

The model assumes complete execution at the selected ask, without constraints on available quantity or impact. That simplification must appear in the record, because having a quote does not prove that a real order could be filled completely at that price. The experiment compares two simulator rules under an explicit assumption.

A common one-second window and a 250-millisecond wait; D3's second quote arrives at 1,500 milliseconds and lies outside the window.
Invented data: D3 distinguishes a quote existing in the file from a quote admissible within the deadline.

The absence of an admissible quote does not mean the market was closed or the price was impossible. It only means the small file and declared rule do not provide a valid observation for that case. The journal preserves that formulation, because an absence in a record does not automatically explain its economic cause.

Identify inputs and their provenance

A filename helps locate something; it does not demonstrate which content was used. The exercise’s manifest identifies the table of four signals, the table of eight quotes and the column dictionary. It preserves a content fingerprint calculated from the actual files, together with their size and the calculation method.

We will not write a fictional fingerprint that appears to correspond to an existing file. In the teaching record, it is enough to state that the field must be completed when the example is materialised. A label such as “quotes Q1” helps explain it, but does not replace a fingerprint when content identity needs to be checked.

W3C’s PROV model distinguishes entities, activities and agents to represent provenance. That separation helps identify which file participated, which transformation produced it and who or what was responsible. Here we use the idea to organise a readable record, without requiring the reader to implement the entire standard. PROV Model Primer.

Provenance includes transformations. If you convert times, rename columns or filter rows, preserve the relationship between the original input and the derived one. Two files with the same prices can produce different comparisons if their timestamps are interpreted differently.

The manifest should state units and meaning, not just computing types. A numeric field can represent milliseconds, seconds or an absolute timestamp. In this case, “relative time since the signal, in milliseconds” defines the operation needed to apply the deadline. “Integer” is insufficient.

Also preserve relevant rights and access conditions. If you work with data you cannot redistribute, the review package can include access instructions and references rather than copying the file without permission. In TradeAndRoll’s offer, commercial references to CSV apply only to the demo; this article does not presume that paid packages include data.

An identified copy should not change silently during an experiment. If you discover an input error, save a new version and explain which previous results depend on the replaced version. That relationship makes it possible to review the change’s effect without rewriting history.

Record the code that actually ran

The manifest also identifies the program. A branch name such as “main” can move; a specific revision makes a state locatable. Git’s documentation shows how to resolve the current revision with rev-parse, while status allows working-directory changes to be inspected. Both pieces of information matter when determining which code was present. git-rev-parse and git-status.

Saving only the revision is insufficient when unrecorded local modifications existed. In that case, also preserve the necessary differences or an identified copy of the executed files. The goal is to reconstruct the effective content, rather than demonstrate that a particular version control tool was used.

Configuration is part of the method. The wait, deadline, quantity and pairing criterion must be associated with the run. It is not enough for them to appear in a conversation or a cell edited afterwards. If the program receives values through several paths, record which ones took precedence.

The environment includes relevant versions of the language, libraries and system, alongside conditions that might affect the output. Our deterministic example does not need an invented, complex infrastructure. It does need a record of how the file was read and how its times were compared.

A run should leave its command or startup procedure, start and finish times and an identification of its outputs. Local paths can vary across machines, so it helps to distinguish an artifact’s identity from the path used to find it. A lost absolute path should not be the only evidence of what was processed.

If you use an AI to generate or correct code, preserve the accepted version and the reason for the change. The full conversation history may help, but does not replace the executed files. It can also contain rejected proposals or information you do not want to share. The journal identifies the decision you adopted, with its checks.

Do not save secrets in that manifest. A credential is unnecessary for explaining a simulator parameter. If a dependency needs access, document its configuration mechanism without copying keys, tokens or private information into the record.

Preserve the failure and the rerun

At 08:45 on the fictional day, R01 begins. The program looks for a column called “price”, but the file defines “ask”. Reading fails before any metrics are produced. The record preserves the relevant message, the configuration used and the status “failed”. The number of evaluated signals is not reported as zero: evaluation never occurred.

The column mapping is corrected and a new reader version, C2, is identified. E17’s contract remains unchanged. The change does not fit a strategy to observed results, because R01 produced no comparison; it corrects an execution obstacle. It must nevertheless remain visible.

A rerun receives its own identity. R02 preserves its relationship to R01 through “retry after reading correction”, but does not overwrite its folder. If the second attempt also failed, we would need to distinguish both errors and the states that produced them.

At 09:00 on the fictional research clock, R02 runs the reference over the complete file already defined. That time describes the research activity, not real-time data availability: we are working with a teaching file constructed beforehand. The journal distinguishes the two clocks to avoid pretending this is a prospective test.

R03 runs the variant using C2 and the same inputs. Between R02 and R03, only the wait changes from zero to 250 milliseconds. If we also changed the reader or data filter, the comparison would need to justify those additional differences.

A fictional history of failed R01, reference R02, variant R03 and repeated R04, with their relationship to experiment E17.
Failed attempts are preserved. The correction does not turn the first attempt into a valid run.

When a problem is discovered after results have been obtained, the record needs another status: invalidated. The run did finish and generate files, but a later check calls their use into question. Those artifacts can be retained to investigate the error, clearly separated from results accepted for the comparison.

It is also necessary to check that an output belongs to the attempt that claims to have produced it. Imagine a failure different from R01’s: a program stops while writing a table and leaves an earlier report in the folder. If the later summary simply opens the file called “result”, it could present old data as the new run’s output.

To avoid that ambiguity, each attempt identifies its outputs and records whether they were completed. The final report checks that relationship before using a table. An existing file does not mean a run finished. If a cache is reused, the record preserves which run or transformation produced its content and why it remains compatible with the current inputs.

The completion check can include the expected count of processed signals and the list of identifiers present. That does not validate all the arithmetic, but can reveal a truncated or mixed output. The journal thus separates physical availability, file integrity and analytical acceptance, three conditions that should not be inferred from one another.

Compare without hiding missing signals

R02 finds an admissible quote for D1, D2, D3 and D4. R03 finds one for D1, D2 and D4. D3’s second quote appears at 1,500 milliseconds and exceeds the common 1,000-millisecond deadline. The record presents that availability difference first: four versus three.

It then compares prices only for the three paired signals. For D1, the variant uses 1.2003 instead of 1.2000. The difference of 0.0003 USD per EUR, multiplied by 1,000 EUR, represents an additional outlay of 0.30 USD. For D2, 1.2008 versus 1.2010 produces minus 0.20 USD. For D4, 1.2021 versus 1.2020 produces an additional 0.10 USD.

The sum of paired differences is 0.20 USD. There are three comparable entries, not four. D3 remains unpaired and is not added to the sum with a zero. Nor is the sum divided by four to obtain an apparently smaller average.

Signal Reference 250 ms wait Difference for 1,000 EUR
D1 1.2000 1.2003 +0.30 USD
D2 1.2010 1.2008 −0.20 USD
D3 1.1995 No admissible quote Unpaired
D4 1.2020 1.2021 +0.10 USD

A comparison must preserve its members. A sum alone does not reveal that D2 partly offsets D1 and D4. Save the table by identifier and the rules that produced each pairing. That level of detail allows join errors or changes in the comparison universe to be reviewed.

Paired differences of plus 0.30, minus 0.20 and plus 0.10 dollars; D3 remains unpaired and the total is plus 0.20 USD across three entries.
The example's arithmetic result, not an estimate of real slippage or profitability.

The provisional conclusion says exactly that: under the declared inputs and rules, waiting reduces the signals with admissible quotes from four to three and adds 0.20 USD of outlay across the three pairs. It does not claim that waiting always makes things worse, or that the difference is stable in another historical dataset.

Keep the cost model visible

The journal contains a small cost ledger separate from the price table. The exercise fixes an invented commission of 0.10 USD per executed entry. There are no exits, financing, impact or other charges. The commission is not presented as an available fee schedule.

R02 has four entries, making the exercise’s total commission 0.40 USD. R03 has three, totalling 0.30 USD. Across the three paired signals, each configuration pays 0.30 USD. That equality allows the price difference to be isolated within that subset.

Lower charges do not mean a better result. R03 pays one fewer commission because it obtains no entry for D3. We do not know the subsequent evolution of that hypothetical position or its opportunity cost. Subtracting the aggregate charge difference of 0.10 USD from the paired price difference of 0.20 would mix different sets and suggest an incomplete economic comparison.

The cost ledger identifies which charge belongs to which event. A commission per request, per partial fill or per complete order requires a different rule. If a model changes convention, create another cost-model version and explain which outputs must be recalculated.

It also separates prices observed in the file from prices assumed by the simulator. In this exercise, we use the selected ask as the execution price under an assumption of complete filling. That decision must accompany any report using the calculated outlay.

The article on slippage reference prices develops why a price difference needs a precise reference. In the journal, that connection takes a concrete form: both prices, their instants and the rule selecting them are preserved.

A cost change alters the economic question even when the signals remain unchanged. If you later add a minimum commission or an impact rule, the new result needs its own configuration. Reusing the earlier label would make it appear that the method had not changed when it had.

Distinguish repetition from random variation

R04 repeats R02 with the same inputs, reader and configuration. It obtains the same identifiers and prices in the teaching scenario. The record classifies it as reproduction of a run, not a fifth signal or a new experiment about the market.

Reproduction can be compared at different levels. Perhaps the file includes a generation time that changes on every attempt; demanding byte-for-byte identity would be excessive if that field is not part of the analytical result. Define which fields must match and which are run metadata.

A seed does not describe the entire environment. If a future version adds randomness to the delay, record the seed, generator, call order and relevant versions. NumPy’s compatibility policy makes random-stream reproduction conditional on details including the generator, calls, build and environment, rather than just an integer seed. Compatibility policy.

Do not add a decorative seed to E17: the exercise is deterministic. A “not applicable” field explains more than a number that participates in nothing. Documentation should reflect the actual procedure rather than imitate the appearance of another kind of experiment.

If you compare stochastic variants, plan how realisations are assigned to each. Using the same realisations can help study differences under paired random inputs, but requires that correspondence to be preserved. Also changing the delay distribution would prevent the difference from being attributed solely to the variant you wanted to isolate.

Do not select the seed producing the most attractive result and present it as representative either. The journal should show how many realisations were attempted, why they were chosen and which summary was planned. Each run’s identity makes that set reconstructable, including realisations that were unfavourable.

Reproduction answers “can I obtain this output again under these conditions?”. Variation across realisations answers another question. Keeping them separate prevents many runs from looking like a large amount of independent evidence when they merely repeat the same material.

Create an exploratory branch without erasing its origin

After seeing D3, a new question appears: what would happen with a two-second deadline? That idea was not in the initial plan. Investigating it may be reasonable, but the journal identifies it as exploration prompted by E17’s result.

E18 is opened, linked to E17 through the reason “examine D3’s quote that fell outside the deadline”. The new plan keeps zero wait versus 250 milliseconds, but extends both configurations’ deadline to 2,000 milliseconds. It does not modify only the variant to make an entry easier for it.

With that deadline, D3’s quote at 1,500 milliseconds becomes admissible for the variant. Its price of 1.1997 versus 1.1995 adds 0.20 USD of outlay for 1,000 EUR. The other three pairs retain their differences. E18’s paired sum is 0.40 USD across four entries.

The record preserves that this new sum has a different denominator and rule. Comparing 0.20 and 0.40 without explaining the change could suggest that the same experiment became worse, when the window was expanded and a previously absent pair was included.

The parent–child relationship explains why the variant exists. It does not mean the child experiment automatically inherits its parent’s validity. It needs its own inputs, configurations and checks. The link reveals which observation motivated the new decision.

E17 uses a one-second deadline and three pairs; E18 is prompted by observing D3, extends the deadline to two seconds and contains four pairs.
The later exploration preserves its origin and method change. It does not rewrite E17's plan.

An explanation written after seeing the results remains a later explanation. It may guide future work, but should not be presented as a prior decision. The journal does not prevent new questions from being discovered; it preserves the moment and evidence that prompted them.

Record zeros, absences and inconclusive results

Empty fields are dangerous when different states look alike. R01 had no metrics because reading failed. In R03, D3 had no admissible quote. An additional hypothetical pair might have a price difference exactly equal to zero. Those three cases do not mean the same thing.

The first describes a procedural failure. The second is a valid model output for one particular signal. The third would be numerical equality between two selected prices. Saving all three as zero would allow summaries that mix observed values with things never calculated.

The reason for an absence is part of the experiment’s data. Preserve a status and, where appropriate, a verifiable reason. “No quote within the deadline” is more precise than “bad trade” or “missing data”. If you do not know the cause of an absence in the original file, do not invent it.

An inconclusive result also needs a concrete explanation. Information needed to check execution may be missing, an error may remain unresolved or the method may have changed during the comparison. Do not use “inconclusive” to avoid recording a result that simply failed to support your expectation.

In our case, the descriptive sum can be calculated under the declared assumptions. What cannot be inferred is a trading advantage or a real cost distribution from four invented signals. Separating those claims preserves the exercise’s result without exaggerating its scope.

If a real comparison fails to find the difference you expected, still record the evaluated set, the measure and the relevant uncertainty. The absence of a detected difference does not demonstrate universal identity between methods. The journal should make it possible to review the check’s resolution and scope.

These distinctions also help retrieve earlier work. Filtering by “reading failed”, “no quote” or “no observed difference” retrieves different situations. A vague label such as “did not work” loses information that could prevent an error from being repeated or a result from being misinterpreted.

Prepare a review with visible discrepancies

Before E17 is closed, another person receives the plan, both input tables, configurations and comparison by identifier. They are asked to reconstruct D1 and D3. D1 checks the arithmetic; D3 checks the absence criterion. The review has a concrete object.

If the reviewer finds a difference, they record it as a separate observation. For example, they might notice a report dividing the sum by four although only three pairs exist. The correction modifies the report and preserves the earlier version as invalidated for that calculation. It does not retrospectively change the inputs or plan.

Every approval should state what was reviewed. An arithmetic review does not establish execution realism. A provenance check does not demonstrate a market advantage. Editorial status does not authorise orders either. The journal can record reviewers and review dates without turning them into a universal seal of validity.

Later revisions are added with their reasons. If a description needs correcting, preserve which claim changed and what evidence justifies it. Errors need not remain prominent in the main reading, but a history should explain why different earlier results exist.

When sharing the package, check that it contains only authorised materials. A record can link to private artifacts without including them in a public copy. Identifiers help preserve relationships, but do not justify publishing someone else’s data, code or secrets.

The article on independent verification of AI-generated code provides methods for checking the procedure’s implementation. The journal records which version was checked and with what evidence. This avoids automatically attributing tests performed on one version to another that was modified afterwards.

The review ends with a bounded decision: E17 is closed as a reproducible descriptive exercise under its assumptions; E18’s exploratory question retains its own record. Neither decision promotes an idea to an Atlas hypothesis or scientific result.

Deliver the minimum needed for reconstruction

The final package includes an entry page explaining the question, where materials are located and how to repeat the comparison. It adds the prior plan, identified inputs, configurations, code version, necessary environment and results by signal. The history of attempts is linked.

The Turing Way presents research compendia as organised collections of data, code and texts, with methods, inputs and outputs distinguished and the environment documented. Our package applies that organisation to the example, without requiring a specific platform or publication of materials that should remain private. Research Compendia.

A minimal reproducible package does not mean the smallest number of files. It means preserving what the question needs. Removing the per-signal table and leaving only a sum saves space, but prevents pairing from being reviewed. Keeping hundreds of screenshots without identified inputs does not guarantee reconstruction either.

The exercise package contains the plan, inputs, method, runs, per-signal results and review; each part answers a specific question.
A small, connected collection makes a decision easier to reconstruct than outputs without context.

Test the package from a new session. Follow the instructions and check that you can identify the four signals, reproduce four and three admissible quotes and obtain the paired sum of 0.20 USD. If you must remember a step that is not written down, the record still depends on your memory.

The journal is useful when it allows precise disagreement. Another person should be able to point to a row, rule or transformation and explain why they question the conclusion. That opportunity for review contributes more than a perfectly ordered narrative concealing the files and decisions.

Closing an experiment means fixing what was done and what it permits you to conclude. New questions can open other records. Later errors can invalidate part of the work. Closure does not require defending the first interpretation forever; it makes that interpretation revisable without losing its provenance.

When you return to a folder months later, the goal is to stop guessing what “final corrected” meant. Could someone else reconstruct your latest comparison today, including failed runs and decisions made after seeing its results?

The difference between an experiment, a run and an artifact, illustrated with identifiers from a fictional case.
One question can require several runs; repeating a run does not create another market observation.
Back to the Blog