You are also optimizing when you change a robot by hand
Reconstruct manual searches, separate exploration from evaluation and understand what statistics can correct when you choose a robot from many attempts.

On Tuesday, you change a threshold because the curve loses too much during one week. On Wednesday, you remove Fridays. On Thursday, you return to the previous threshold and shorten the exit. On Friday, you save the version you prefer and delete three temporary files. You have not pressed an optimization button, but you have used results to choose rules.
That process can generate useful ideas. The problem appears when you present the last version as though it had been the only question asked of the historical data. The absence of an automatic optimizer does not mean an absence of selection. Your decisions, your charts and the suggestions you accept from an AI assistant can all belong to the procedure that finds the winner.
We will reconstruct that search, understand an elementary multiplicity calculation and design a way of working that preserves what was learned without overstating its evidence. Every case, quantity and record in this article is an original, hypothetical teaching proposal. None describes Atlas results, available robots or probabilities of winning in Forex.
We are not going to treat every modification as misconduct. We will distinguish what we knew beforehand, what we discovered afterward and which comparison still needs evaluation. That distinction allows freedom to investigate while keeping communication precise.
1. The researcher is also part of the algorithm
A search algorithm does not have to be written entirely in code. It can begin with a run, continue with someone inspecting losses and end with an additional condition. If the next condition depends on what was observed, the complete process uses historical data to decide what to retain. The final rule does not tell that whole story on its own.
Imagine two researchers receiving the same file. One applies a previously fixed rule and reports its result, whether favorable or unfavorable. The other tests the rule, modifies features that seem to explain the losses and reports a favorite version. Even if both eventually deliver ten lines of code, their figures do not come from the same selection procedure.
The unit we need to audit is the process that produced the rule. This includes rejection criteria, charts consulted, preferred metrics and decisions to stop. A comparison between visible versions can be incomplete if several alternatives disappeared before reaching the report.
Gelman and Loken describe how data-dependent analytical decisions create multiplicity problems even without a conscious search through many p-values. Their argument concerns the procedure that would have changed in response to different data, rather than only the number of results eventually published. Gelman and Loken, The garden of forking paths.
The practical application here is straightforward: when a loss suggests an explanation, record it as an idea arising from exploration. You do not need to pretend that you expected it beforehand. You can formulate a more precise prediction and prepare another test. What an elegant description cannot restore is your earlier lack of knowledge about the episode that inspired the idea.
Nor does it help to attribute all selection to an AI assistant. If you show it the worst trades and accept its proposed filter, that filter depends on those results. The model can help you write code or compare alternatives; the origin of the idea remains part of the investigation.
2. Six attempts do not equal six independent tests
Let us build a fictional record for a rule on one Forex pair. We keep the same quantity per trade and express aggregate results in pips. These are teaching sums used to compare decisions. They are not percentage returns, a complete simulation or evidence that the trades could be reproduced using actual market data.
The first version, R01, produces 120 trades and 180 gross pips. We apply a hypothetical cost of 0.8 pips per completed trade: 96 pips of costs and 84 net. After inspecting where it loses, the researcher changes a threshold. R02 generates 100 trades, 190 gross pips, 80 in costs and 110 net.
Starting from R02, R03 excludes Fridays because several observed losses happened on that day. That leaves 80 trades, 168 gross pips, 64 in costs and 104 net. R04 permits Fridays again and modifies R02’s exit: 100 trades, 210 gross pips, 80 in costs and 130 net. R05 tries a restricted time window: 70 trades, 150 gross pips, 56 in costs and 94 net.
| Version | Change observed during the search | Trades | Gross | Cost | Net |
|---|---|---|---|---|---|
| R01 | Initial rule | 120 | 180 | 96 | 84 |
| R02 | Modified threshold | 100 | 190 | 80 | 110 |
| R03 | R02 without Fridays | 80 | 168 | 64 | 104 |
| R04 | R02 with another exit | 100 | 210 | 80 | 130 |
| R05 | Restricted time window | 70 | 150 | 56 | 94 |
| R06 | R02 with reduced costs | 100 | 190 | 50 | 140 |
R06 repeats R02’s trades but changes the cost to 0.5 pips. The net result becomes 140 pips. No signal has improved: the additional thirty pips come entirely from reducing an assumption. If the authorized common cost remains 0.8, R06 cannot compete with the other versions using that figure. Under that contract, R04 ranks first among the alternatives shown.
This record lets us check arithmetic, but it does not automatically let us calculate a p-value. We do not have the complete paths, the dependence between trades or a null model. The attempts also share data and several rules. Counting versions is necessary for reconstructing the search, but it does not turn their results into independent tests.
The specific lesson is not that R04 is useless. It is that its 130 pips were observed after consulting alternatives. To evaluate the claim we want to make about R04, we need to preserve how it came to be selected.
3. Decisions that never appear in a grid
When we think about optimization, we often imagine a list of indicator periods. Manual selection has more places to hide. You can change the beginning of the historical sample, the eligibility criteria for a trade, the way losses are summarized or the unit used to present the result. Some decisions leave the entry code unchanged while completely changing the conclusion.
In the record above, excluding Fridays changes which opportunities belong to the procedure. Changing costs changes how the same activity is valued. Preferring net pips per trade over total net pips changes the comparison criterion. These changes should not be bundled together under the vague description of “minor adjustments.”
For R01, dividing 84 by 120 gives 0.7 net pips per trade. For R03, 104 divided by 80 gives 1.3. For R04, 130 divided by 100 also gives 1.3. R04 wins under the net total; under that average, R03 and R04 tie. The tie cannot be resolved by inventing another metric after seeing it and presenting that metric as though it had always been primary.
Choosing how to measure can also select the winner. The record therefore needs to include the objective of each comparison. Reducing activity, increasing the net total and improving an average are different questions. You can study all three, but the final claim needs to say which one guided the choice.
Another easily overlooked decision is when to stop. If you planned to examine six variants, stopping after the first attractive figure changes the procedure. If you keep trying only when everything disappoints, the amount of search depends on the result. There is no universal number of attempts that makes this adaptation harmless.
A decision map helps more than an endless list of theoretical combinations. Describe which features could change, which observation would motivate the change and which claim you would try to support afterward. Do not mechanically multiply every imaginable option to manufacture a supposedly exact number of tests. The aim is to reveal dependence on the data and design a procedure that can be evaluated.
4. A small calculation for understanding opportunities for error
Now isolate a mathematical experiment that does not represent the Forex record. Assume twenty independent tests, each with a true null hypothesis, and a procedure that rejects each one with probability exactly 0.05. This calibration and independence are explicit assumptions of the example.
With one test, the probability of a false rejection is five percent. With five tests, the probability that none rejects is 0.95 raised to the fifth power. Its complement, one minus that value, is approximately 22.6 percent. With twenty tests, one minus 0.95 raised to the twentieth power is approximately 64.2 percent.
The formula answers the question of “at least one false rejection within the set.” It does not answer “the probability that my robot is false” or “the probability of losing money.” Nor does it say that 64.2 percent of the twenty tests will reject. The expected number of false rejections in this example is twenty times 0.05, which equals one. An expectation and a probability of at least one are different quantities.
More opportunities to select an extreme change the statistical question. An individual figure may be correctly calculated for a fixed test while poorly describing a practice that reports only the smallest value found. The publication or selection procedure is part of the problem.
The American Statistical Association’s statement explains that a p-value is not the probability that a hypothesis is true and does not, by itself, measure an effect’s size or importance. It also requires context about the analyses performed and how they were selected. ASA statement on p-values.
We will not transfer the 64.2 percent figure to the six variants in the earlier section. There, we have neither calculated valid statistical tests nor assumed independence. The calculation teaches why one isolated opportunity and a selected collection should not be interpreted in the same way. Turning it into a specific robot failure rate would introduce information we do not have.
5. Dependence does not erase selection
Two versions sharing almost all their trades will have related results. If both suffer during the same episode, seeing one provides information about the other. You should therefore not automatically insert the number of saved files into the preceding formula. But you cannot conclude that there was only one question simply because the curves look similar.
Consider the extreme case of twenty identical tests: the same statistic, the same data and the same decision. Under the five-percent assumption in the preceding section, the probability of at least one rejection remains five percent. Repeating exactly the same calculation does not create twenty independent opportunities. Many possible structures lie between that extreme and independence.
In R02 and R03, removing Fridays changes some of the observations. R02 and R04 share entries, but their exits can change outcomes and holding periods. R06 retains R02’s trades and changes their valuation. The relationship between results cannot be adequately summarized by saying that “they all belong to the same family of robots.”
Economic similarity does not provide an effective number of tests. To justify reducing the count, you would need a statistical procedure representing the relevant dependence and its assumptions. Retrospectively choosing a number that makes a result look appealing adds another decision to the search.
This also explains why correlation between curves cannot resolve the entire audit. It may describe common movements and help answer another question, but it does not reconstruct rejection criteria, stopping decisions or omitted alternatives. The structure of the process and the structure of the data complement one another; they are not interchangeable.
If you cannot adequately model the previous search, an honest response is to limit conclusions from that sample to exploration and prepare a clearly defined later evaluation. This does not make the problem simple or guarantee that enough data exist. It at least avoids manufacturing a numerical correction from an incomplete history.
6. A selection record you can reconstruct
A useful record is written while you investigate, rather than only when preparing a convincing explanation. Its purpose is to preserve which comparison was underway and what you knew when it changed. It does not require a sophisticated platform: it can begin with text files and a stable index, provided versions and results remain traceable.
For each attempt, save an identifier, its parent version, the authorized data, the specific modification and the reason for it. Separate a reason recorded before running from an explanation formulated afterward. Add the primary metric, the constraints that must be met and the version’s eventual disposition, including when it is discarded.
For R03, “exclude Fridays to reduce losses already observed on Fridays” is an informative record. “Improve weekly robustness” does not preserve which evidence triggered the decision. The second phrase could serve as a general objective, but it hides the relationship between the chosen filter and the sample that suggested it.
A later explanation can be useful without becoming an earlier prediction. Preserve both dates and their contents. This allows an observation to become a new question without rewriting the experiment’s history. It also helps another person distinguish a planned decision from a retrospective justification.
Do not delete attempts that produced no trades or ended with a technical error. Classify them. A run that fails before calculating results is not equivalent to an alternative evaluated with an unfavorable result. A filter that removes every trade does tell us something about the specification’s behavior. That distinction improves the record without artificially inflating a statistical count.
The record must also preserve what you did not choose. Save comparable outputs, reasons for rejection and open questions. A collection of screenshots from the winning version cannot reconstruct selection. For more detail on linking questions, runs and artifacts, continue with the trading experiment journal.
7. Fixing an error and choosing a rule are different decisions
Suppose you discover a commission charged twice. Repairing that duplication differs from lowering a cost because the net figure is disappointing. In the first case, there is a verifiable discrepancy between specification and calculation. In the second, you change the economic assumption. Both actions need to be recorded, but they require different reasons and conclusions.
To document the repair, preserve the minimal example in which one trade should have borne one charge but received two. Explain which version produced the old figures and rerun the affected alternatives under the same correction. Comparing corrected R04 with uncorrected R02 mixes incompatible procedures.
The repaired result can change the ranking of candidates. That does not justify choosing which variants deserve repair according to their earlier appeal. Define the scope of the correction by which calculations depend on the fault. If all use the same cost function, every relevant comparison needs updating to preserve a common basis.
A technical correction does not create a new sample. Even if it invalidates earlier figures, the researcher has still seen patterns and outcomes. Some knowledge may have arisen from an error, while other knowledge remains informative. Renaming files cannot automatically return the historical sample to a state in which it was never consulted.
Sometimes it is unclear whether there is a fault or an ambiguity in the rule. For example, an exit executed within a candle may depend on a sequence that aggregate data cannot reveal. Choosing a new convention revises the simulation model. It needs justification through its meaning, rather than through which variant improves.
The practical response is to maintain a repair branch, describe which results are no longer comparable and formulate the evaluation again. You can retain what you learned without treating the new figures as independent confirmation. This caution is especially useful when an AI assistant mixes proposed repairs with optimizations: ask it to distinguish a change restoring a specification from one introducing a new preference.
8. Choosing the metric after seeing the winner
Return to the sums in the record. R04 offers 130 net pips and R03 offers 104, but both produce 1.3 per trade. Imagine that the researcher, disappointed that the Friday filter did not win on the total, decides to emphasize only the average and the reduced activity. The report can contain correct figures while concealing a change of objective.
There is nothing inherently wrong with valuing lower activity. It may reflect constraints on execution, review or availability. The problem is presenting that preference as a prior criterion when it appeared to rescue a favorite version. The solution is to make the change explicit and subject the new decision to the corresponding evaluation design.
A reasonable specification can establish one primary metric and several secondary diagnostics. It can also define constraints before ranking candidates. For example, it can require complete records and a shared cost convention before any result is compared. The specific choice depends on the question; no universal metric resolves every dimension simultaneously.
A secondary diagnostic should not silently become the winning objective. If you decide to promote it, preserve the reason and acknowledge that you have opened another comparison. This rule prevents every variant from retrospectively finding the measure on which it appears most attractive.
Flexibility can also enter through how you summarize periods. Highlighting the best quarter, removing the worst episode or changing the starting date alters the evidence shown. Examining those parts can help explain vulnerabilities, but favorably selecting an interval does not independently estimate a complete rule’s behavior.
A useful exercise is to write two conclusions using the same figures: “R04 achieved the highest total under the common cost among the evaluated versions,” and “R04 is superior.” The first preserves scope and criterion. The second omits uncertainty, selection and conditions. If the record supports only the first, improving the wording cannot give it the scope of the second.
9. What Bonferroni corrects, and what remains outside it
Construct another separate example, this time with a family of four hypotheses fixed for a formal analysis. Assume that each test produces a valid p-value under its own null hypothesis and that the family represents the claims we want to control. We receive 0.012, 0.019, 0.041 and 0.20. These values are invented for practicing the procedure; they were not calculated from R01–R06.
To limit the probability of at least one false rejection within that family to 0.05, Bonferroni compares each value with 0.05 divided by four: 0.0125. Only 0.012 falls below it. Equivalently, we can multiply each p-value by four and cap it at one, obtaining 0.048, 0.076, 0.164 and 0.80.
The principle follows from a bound on the probability of a union of events. If each individual false rejection has probability at most 0.0125, the probability that any occurs does not exceed their sum, 0.05. This guarantee does not require independence between the four events, but it does require valid individual probabilities and a correctly defined family.
The NIST handbook presents Bonferroni’s inequality and its use in maintaining joint coverage in multiple comparisons. Here, we use the same elementary bound to explain false-rejection control for our hypothetical family. NIST, the Bonferroni method.
A correction cannot repair a poorly defined question. If the four values were selected because they were the smallest among one hundred omitted analyses, multiplying by four does not represent the complete search. If each test assumes independent observations while trades have unaccounted dependence, adjusting multiplicity does not repair that individual calibration.
Nor does the adjustment guarantee economic importance. A tiny difference can cross a statistical threshold at certain sample sizes while remaining insufficient relative to costs or operational uncertainty. The analysis needs magnitude, units, conditions and an explicit economic question in addition to any formal rejection decision.
The adjustment belongs to a family of claims and a procedure, not to an isolated figure. Other methods have different objectives and conditions. Retrospectively choosing whichever method retains a candidate introduces selection again. Instead of seeking a seal of approval, first specify which error you want to control and what information is needed to justify the procedure.
10. Preserve a moment before you have chosen
Separating exploration from evaluation protects a specific question: how does a fixed procedure behave on data that did not guide its selection? You need to establish that boundary before consulting the reserved portion. Creating a holdout means more than saving another file with a reassuring name.
Before opening it, identify the code, rules, parameters, transformations, costs, primary criterion and treatment of ambiguous situations. Also record which decision the researcher will make after evaluation. If every unfavorable result leads to further modifications and another consultation of the same holdout, the actual procedure includes that cycle.
Freezing a version also means freezing how you will judge it. An unchanged robot can receive different assessments if you change the period, metric or exclusion policy after looking. Those changes should be treated as new research decisions even if they do not alter a single line of strategy code.
The holdout can be temporal and must respect data availability, labels and relevant dependencies. A visual split is insufficient if a transformation learned from the entire history or if some trades’ outcomes cross the boundary. The article on future information in imputation develops one specific part of this problem.
A favorable later result provides evidence under the evaluated conditions; it does not establish that the behavior will persist. An unfavorable result may indicate variability, a changed environment, a weak idea or an error requiring diagnosis. None of those possibilities is automatically resolved by the direction of a single figure.
If you open the holdout to discover how to improve R04, preserve that work as further exploration. Its former label does not have to disappear from the history, but its function has changed. The honest response is not to stop learning: it is to acknowledge which information has already influenced selection and which claims remain unresolved.
11. Evaluating the whole search requires being able to repeat it
Sometimes the object of interest is not a frozen rule, but a procedure that periodically selects among candidates. You then need to describe how selection works, which information it uses and which decisions are permitted. A retrospective list of winners is not equivalent to historically running that procedure.
Suppose three fixed exits are compared before each new segment, a defined metric is applied and ties are resolved through a stable rule. That search can be repeated using only data available at each date. If, instead, someone examines every future segment and decides which candidates they would have tried, the exercise incorporates later knowledge.
Cawley and Talbot study how variability in the selection criterion can produce overfitting during model selection and bias in its evaluation. This supports distinguishing selection of a candidate from evaluation of the procedure that selects it. Cawley and Talbot, On Over-fitting in Model Selection.
The application does not require immediately automating every intuition. It requires recognizing which part can be reconstructed and which part is known only through an incomplete human history. You can investigate how to formalize a manual decision without claiming that you already have a faithful historical evaluation of that process.
Resampling methods also need a definition of what gets repeated. Recalculating R04’s metric while always keeping it selected answers a question about that candidate. Repeating a specified search within each sample answers another question and can change which version wins. No approximate reproduction automatically captures human decisions that were never recorded.
Repeating the winner is not equivalent to repeating selection. Before trusting a distribution of outcomes, write down which operations happen inside each repetition and which remain fixed. Include the data model’s limitations. This description often reveals more about the test’s scope than the advertised number of simulations.
12. Communicating uncertainty without hiding exploration
A reviewable report can be brief without being reduced to a favorite curve. Identify the question, the sample used for investigation, the variants considered and the selection criterion. Then show the selected result with its conditions and evaluation limitations. The reader must be able to distinguish an interesting observation from confirmation that the design does not yet permit.
In our record, we could report that R04 achieved 130 net pips in an exploratory comparison with a common cost of 0.8 per completed trade. We would also explain that R06 produced a higher figure solely by changing that cost, making it incomparable under the chosen contract. Neither statement would need to attribute an invented probability of success to the winner.
Discarded alternatives help interpret the selected candidate’s evidence. This is not because a long list demonstrates failure, but because it shows which opportunities existed to choose a favorable figure. Also document changes of objective, excluded data and repairs. If the earlier history is incomplete, state the limitation and avoid a statistical correction that depends on knowing it exactly.
A report can distinguish descriptive results from pending decisions. “R03 and R04 have the same net average in this exercise” is descriptive. “We need to evaluate whether R03’s reduced activity has value under another constraint” is a new question. Confusing those statements turns an observation into a conclusion that has not yet been tested.
When reviewing someone else’s rules and code, you may not have access to every previous attempt. That does not authorize reconstructing an imaginary history or assuming none existed. Evaluate the evidence actually available and define what you could check independently. Reproducing a figure checks a calculation; on its own, it does not explain why that rule was chosen.
At TradeAndRoll, the initial scope is Forex, and market CSV files belong exclusively to the demo, which is in preparation. When available, this material can support practice in traceability and testing. It does not imply access to the private generator or its complete research history. The article’s questions help examine evidence without assuming undocumented capabilities or results.
13. A practical session that ends with a better question
To apply the method, begin with a rule and a narrow question. Write down which part you want to understand and which observable result would help answer it. If you intend to explore a different exit, preserve the entry, data and costs wherever that comparison allows. If you change more elements, declare that you are studying a combined modification.
Before running, record the modification and the criterion. Afterward, save the result even if it is unfavorable. If an unexpected explanation emerges, add it as a later observation. You can open a new branch from it, but do not retrospectively insert it into the plan that produced the run.
At the end of the session, review which candidates remained comparable. In the fictional case, R06 needs to return to the common cost before entering the original economic ranking. R03 may remain relevant to another question about activity even though it does not lead on the total. Organizing the record prevents the discussion from depending exclusively on whichever chart was opened last.
Then prepare a short list of uncertainties that still change the decision. You may lack an execution convention, a result under previously unseen information or a test ruling out a code error. Prioritize the uncertainty that would prevent everything else from being interpreted. Adding variants before resolving it can increase the work without increasing useful knowledge.
You do not need to end every session with an accepted robot. Sometimes the most valuable outcome is discovering that two alternatives were not compared under the same cost, or that an improvement came entirely from excluding an episode you had already seen. That conclusion supports a better-designed investigation and prevents continued refinement of a misunderstood figure.
Before showing the winner, reconstruct what had to happen for you to choose it. If another person can follow that route, identify its decisions and understand which information remains reserved, you have created a reviewable basis. The final question is concrete: what future observation, under a procedure fixed before seeing it, could change your preference for the current version?



