The rest of this page is technical. This part is not. If you read nothing else, read this.
What the trade is. A stock has been going up for a while. It pauses and drifts back down to one of the average-price lines traders watch. It goes quiet there for a few days. Then it closes back above the fastest of those lines — and that is when we buy. We expect it to travel back up to the high it made before the pause.
What we tested. We wrote the rules down precisely, then had a computer apply them to 150 large US stocks over four years — about 4,100 trades. To avoid fooling ourselves, we picked the rules using the first two years only, then scored them on the last two years, which the rules had never seen. If a set of rules only works on the data used to invent it, that shows up immediately.
What we found. The trade works, but the money is made or lost after you are already in. The way we had written the exit rules gave back about half the available profit. A different set of exit rules — same buys, same risk — roughly doubles the result. That is the single finding on this page that matters.
How big is the edge. The average trade makes about 39% of whatever you risked on it, after paying commission and spread — 39 cents back for every dollar risked. That is a real edge but not a large one, and trading costs eat nearly half of it before it reaches you.
The uncomfortable part. More than half of these trades lose money. The profit comes from a minority that run a long way. That means you cannot pick and choose — skipping the one trade that becomes the big winner removes the profit for the month. It also means a run of six or eight losers in a row is completely normal and is not a sign the method has stopped working.
What we still do not know. The four years we tested contain no falling market, so we have no idea how this behaves in one. We tested it only on large, heavily traded stocks. And the computer entered trades in a slightly different way from how the desk actually enters them — close, but not identical. None of those gaps are hidden further down this page; they are listed plainly.
Read the tag before you trust the rule.
Best-tested exit ladder, out-of-sample window (2025-01 → 2026-08, n = 1,952).
| Window | Months | Mean Rmean RWhat it isThe average outcome per trade, measured in R.What it is forThe headline number for whether a rule makes money. Positive mean R means the average trade wins after wins and losses are netted.How it is derivedAdd every trade's R result and divide by the number of trades.How to read itBelow 0 — do not trade it. 0 to +0.2 — marginal, costs will eat it. +0.2 to +0.5 — a real but modest edge. +0.5 to +1.0 — good. Above +1.0 — very good for a swing strategy, and worth double-checking for data errors. Ours: +0.69 gross, +0.39 after costs — solid, not spectacular. | Raw tt-statWhat it isA “could this be luck?” score. How many standard errors the mean sits away from zero.What it is forAbove about 2 the mean is unlikely to be zero by chance; above 3 is strong. It says nothing about how good the strategy is — that is mean R.How it is derivedmean ÷ (standard deviation ÷ √n). Assumes trades are independent, which inflates it here.How to read itUnder 2 — noise, ignore it. 2 to 3 — probably real. 3 to 5 — strong. Above 5 — very strong, but only if trades are independent. Clustered trades make this number look better than it is, which is why the confidence interval below matters more. Ours: 5.65 raw on the uncorrected series — superseded by the confidence interval. | 95% CI (month-block)95% CIWhat it isConfidence interval — the range the true average is very likely to sit inside.What it is forReplaces a single point estimate with an honest range. If the range excludes zero, the edge is unlikely to be noise.How it is derivedResample the data 4,000 times and take the 2.5th and 97.5th percentiles of the resulting averages.How to read itLook at two things. Does it include zero? If yes, the edge is not established. And how wide is it? A wide range means genuine uncertainty about the size of the edge. Plan around the lower bound, not the middle. Ours: [+0.207, +1.096] gross — excludes zero, so the edge is real, but after costs the lower end sits at −0.10R. | P(mean ≤ 0)P(mean ≤ 0)What it isThe share of bootstrap draws in which the edge disappeared entirely.What it is forA direct answer to “how often would this look profitable and not be?” 0.0% means no resampled version of history lost money.How it is derivedCount the bootstrap draws whose mean was zero or below, divide by 4,000.How to read itUnder 5% — the edge is established. 5 to 10% — borderline, keep testing. Above 10% — not established, do not size up. Ours: 0.0% before costs. After costs the pessimistic tail dips just below zero. |
|---|---|---|---|---|---|
| Test 2025-01 → 2026-08 | 20 | +0.692 | — | [+0.207, +1.096] | 0.0% |
| Full 2022-10 → 2026-08 | 45 | +0.770 | — | [+0.430, +1.115] | 0.0% |
Consistency across years, and month-to-month dispersion.
| Segment | TradesnWhat it isThe number of trades in the sample.What it is forMore trades means more confidence — but only if they are independent of each other, which clustered trades are not.How it is derivedA straight count of qualifying setups in the window.How to read itUnder 100 — treat as anecdote. 100 to 500 — suggestive. Above 1,000 — solid, if the trades are independent. Clustered trades inflate n: 1,952 trades landing in 20 months is closer to 20 observations than 1,952. Ours: 1,810 tradeable trades across 20 months. | Mean Rmean RWhat it isThe average outcome per trade, measured in R.What it is forThe headline number for whether a rule makes money. Positive mean R means the average trade wins after wins and losses are netted.How it is derivedAdd every trade's R result and divide by the number of trades.How to read itBelow 0 — do not trade it. 0 to +0.2 — marginal, costs will eat it. +0.2 to +0.5 — a real but modest edge. +0.5 to +1.0 — good. Above +1.0 — very good for a swing strategy, and worth double-checking for data errors. Ours: +0.69 gross, +0.39 after costs — solid, not spectacular. | Medianmedian RWhat it isThe middle outcome — half of trades did better, half did worse.What it is forShows what a typical trade feels like. Mean and median diverging tells you the result is driven by a few big winners rather than steady gains.How it is derivedSort every trade's R result and take the middle value.How to read itCompare it to the mean. Close together means steady, repeatable gains. Far below the mean means the result depends on a few big winners and most trades disappoint. A median of −1.00 means over half the trades stop out for a full loss. Ours: +0.34 against a +0.69 mean — tail-driven. You must take every signal, because skipping the wrong one costs the year. |
|---|---|---|---|
| 2022 Q4 — the one drawdown stretch | 8 | +7.40 | +7.95 |
| 2023 — recovery rally | 1,121 | +0.953 | +0.34 |
| 2024 — continued rally | 1,447 | +1.302 | +0.58 |
| 2025 — out of sample | 1,169 | +1.279 | +0.36 |
| 2026 YTD — out of sample | 783 | +0.958 | +0.27 |
Of 45 months, 12 lose money (27%). No single year carries the result — all four full years land between +0.55R and +1.00R once untradeable stops are excluded.
Each row is one test. Ours is this strategy's result; Bad / Unremarkable / Good are the thresholds that result is judged against; Verdict is where it lands. Hover or tap any metric name for a full explanation of what the row measures and what each threshold means.
| Metric | Ours | Bad | Unremarkable | Good | Verdict |
|---|---|---|---|---|---|
| Mean R (after costs)Mean R (after costs)What this row measuresThe average profit of a single trade, after commission and spread, measured in risk units. +0.39R means the average trade returns 39 cents for every dollar risked.“Bad” meansBelow zero — the strategy loses money on average. Do not trade it.“Unremarkable” meansBetween zero and +0.3R. It makes money, but so little that a small rise in trading costs or a run of bad fills would wipe it out.“Good” meansAbove +0.5R. Comfortably profitable with room to absorb worse execution than assumed.Where we land+0.39R — between the two. Real and usable, but not a wide margin. | +0.39 | < 0 | 0 … +0.3 | > +0.5 | Solid — not spectacular |
| Out-of-sample vs fitOut-of-sample vs fitWhat this row measuresWe chose the rules using 2022–2024 data, then scored them on 2025–2026 data the rules had never seen. This row compares the two scores.“Bad” means“Collapses” — the new-data score falls to near zero or turns negative. The rules were fitted to random noise in the old data and there was never a real effect. This is exactly what happened to a VWAP entry filter we tested and discarded.“Unremarkable” means“Halves” — the new-data score is roughly half the old one. Something real is there, but a good part of the original result was over-fitting.“Good” means“Holds” — the two scores are close. The effect behaves the same way on data it was never shown, which is the strongest evidence available that it is genuine.Where we land+0.692 on new data against +0.770 on the design data — within 10%. It holds. | +0.692 vs +0.770 | collapses | halves | holds | Holds — robust |
| 95% CI excludes zero?95% CI excludes zero?What this row measuresThe confidence interval is the range the true long-run average is very likely to sit inside. This row asks whether that whole range stays above zero.“Bad” means“No” — the range straddles zero, so the data cannot rule out that the strategy has no edge at all.“Unremarkable” means“Barely” — the bottom of the range only just clears zero. A slightly worse assumption anywhere would sink it.“Good” means“Clearly” — the entire range sits well above zero.Where we landYes before costs (+0.21 to +1.10). After costs the bottom dips to −0.10, so net of trading costs it is no longer clear-cut. | gross yes / net no | no | barely | clearly | Yes gross, marginal net |
| P(mean ≤ 0)P(mean ≤ 0)What this row measuresWe rebuilt history 4,000 times by reshuffling whole months, and counted how often the strategy came out flat or losing. This is the share of those rebuilt histories that failed.“Bad” meansAbove 10% — more than one rebuilt history in ten lost money. Too fragile to rely on.“Unremarkable” means5–10% — borderline. Suggestive but not settled.“Good” meansUnder 5% — the edge shows up in essentially every version of history we can construct.Where we land0.0% before costs. No resampled history lost money gross. After costs the pessimistic tail does dip below zero. | 0.0% | > 10% | 5–10% | < 5% | Established (gross) |
| Costs survivedCosts survivedWhat this row measuresWhat proportion of the gross profit is still there after commission and spread are paid.“Bad” meansUnder 50% — costs eat most of the edge. The strategy is really a bet on execution quality.“Unremarkable” means50–70% — costs are a major drag but the edge survives them.“Good” meansAbove 70% — costs are a manageable overhead rather than the main risk.Where we land56%. Gross +0.69R becomes net +0.39R. Costs take 0.30R from every trade because the exit ladder closes the position in three separate pieces. | 56% | < 50% | 50–70% | > 70% | Acceptable, not comfortable |
| Losing monthsLosing monthsWhat this row measuresThe share of calendar months in which the strategy lost money overall.“Bad” meansAbove 45% — close to a coin flip month to month. Very hard to keep following.“Unremarkable” means35–45% — frequent losing months; expect long uncomfortable stretches.“Good” meansUnder 30% — roughly one losing month in three or better.Where we land27% — 12 of 45 months lost money. Expect roughly one losing month per quarter. | 27% | > 45% | 35–45% | < 30% | Good for this style |
| Median RMedian RWhat this row measuresThe typical trade, as opposed to the average. Half of all trades did better than this and half did worse.“Bad” meansBelow −0.5R — the typical trade is a substantial loser and the whole result depends on rare outliers. Psychologically close to untradeable.“Unremarkable” meansBetween −0.5R and +0.3R — the typical trade roughly breaks even; profits come from the tail.“Good” meansAbove +0.5R — the typical trade wins meaningfully, so results feel steady rather than lumpy.Where we land+0.34R against an average of +0.69R. The typical trade barely scratches; the profit comes from a minority of large winners. Every signal must be taken. | +0.34 | < −0.5 | −0.5 … +0.3 | > +0.5 | Weak — tail-driven |
| Independent observationsIndependent observationsWhat this row measuresNot the number of trades, but the number of genuinely separate time periods. Hundreds of trades opening in the same week across correlated stocks are effectively one bet, not hundreds.“Bad” meansFewer than 12 — a year or less of distinct conditions. Almost anything could be true.“Unremarkable” means12–36 months — enough to be suggestive, not enough to be confident about the size of the edge.“Good” meansMore than 60 months — five years of varied conditions, including at least one full cycle.Where we land20 months in the out-of-sample window. This is the real constraint on confidence, not the 1,810 trade count. | 20 months | < 12 | 12–36 | > 60 | Thin |
| Bear-market evidenceBear-market evidenceWhat this row measuresHow much of the test period covered a falling market.“Bad” means“None” — the strategy has never been observed in a decline. Its behaviour there is pure conjecture.“Unremarkable” means“One cycle” — one downturn observed. Better than nothing, but a single episode can mislead.“Good” means“Two cycles” — tested through more than one distinct decline, so the behaviour is unlikely to be specific to one event.Where we land8 trades in the only down stretch available. Effectively none. The setup needs a rising 50-day average, so it stops firing in downtrends — it should sit out rather than lose, but that has not been demonstrated. | 8 trades | none | one cycle | two cycles | Absent |
| Tests the entry actually used?Tests the entry actually used?What this row measuresWhether the backtest triggers trades the same way the desk does in practice.“Bad” means“No” — the test uses a different trigger, so the results describe a different strategy that happens to share the same setup.“Unremarkable” means“Proxy” — a closely related trigger that fires at similar times and prices.“Good” means“Yes” — the exact rule a trader follows.Where we landNo. The test enters on a break of the prior day's high. The desk's CRWD trade was entered on a VWAP pull-in four hours after that break. Resolving which is canonical is the top open item. | no | no | proxy | yes | Wrong entry |
Setup and entry.
min(vlLo, lowest(low,3)) (187.18). Every R figure on this
page depends on which one is the spec.This is the part that changed most. The recommendation below beats the ladder currently written into the swing checklist.
| Ladder | Fit mean Rfit windowWhat it isThe earlier period used to choose settings. 2022-10 to 2024-12.What it is forAny rule can be tuned to look good on the data used to build it. This window is where that tuning happens — and its results are not trustworthy on their own.How it is derivedA straight date cut at 2025-01-01.How to read itNever judge a rule on its fit-window score. A rule that looks good here and nowhere else was fitted to noise. Treat these numbers as the best case, not the expected case. | Test mean Rout of sampleWhat it isThe later period, held back and never used to choose anything. 2025-01 to 2026-08.What it is forThe only honest score. A rule that works in the fit window and fails here was fitted to noise — exactly what happened to the 1.5σ entry band.How it is derivedEvery rule is scored here after being chosen on the fit window.How to read itThis is the number that counts. If out-of-sample is close to fit, the rule is robust. If it collapses, the rule was overfitted. Ours: +0.692 out of sample against +0.770 in fit — close, which is the good outcome. | Test medianmedian RWhat it isThe middle outcome — half of trades did better, half did worse.What it is forShows what a typical trade feels like. Mean and median diverging tells you the result is driven by a few big winners rather than steady gains.How it is derivedSort every trade's R result and take the middle value.How to read itCompare it to the mean. Close together means steady, repeatable gains. Far below the mean means the result depends on a few big winners and most trades disappoint. A median of −1.00 means over half the trades stop out for a full loss. Ours: +0.34 against a +0.69 mean — tail-driven. You must take every signal, because skipping the wrong one costs the year. | Net @0.15%net of costsWhat it isMean R after subtracting an estimate of commission and spread.What it is forGross results ignore the cost of getting in and out. A laddered exit pays that cost several times.How it is derivedA 0.15% round trip ÷ the median stop distance (0.91% of price) = 0.16R, charged roughly twice for a laddered exit ≈ 0.33R per trade.How to read itCompare net to gross. If net keeps more than about 70% of gross, the strategy is robust to execution. Below 50%, it is fragile and small slippage changes will break it. Ours: +0.39 of +0.69 = 56% survives — acceptable, not comfortable. |
|---|---|---|---|---|
| A — 30 @2R / 50 @17bar / 20 @5-DMA (current checklist) | +0.674 | +0.519 | +0.94 | +0.216 |
| D — 30 trailed / 20 / 50 @5-DMA | +0.758 | +0.598 | +0.46 | +0.294 |
| D17 — 30 trailed / 20 / 50 @17-DMA (recommended) | +0.830 | +0.692 | +0.34 | +0.389 |
| D20 — …50 @20-DMA | +0.795 | +0.675 | +0.33 | +0.372 |
| D50 — …50 @50-DMA | +0.951 | +0.736 | +0.25 | +0.432 |
| 30 @2R / 70 @5-DMA (two tranche) | +0.530 | +0.450 | −0.49 | +0.147 |
Ideas that looked right and were not. Recorded so they are not re-proposed from first principles.
In priority order. Each is a specific, runnable check.
ma_state.py is already built for
exactly this and needs winners and losers at n ≥ 30 per bucket.These cannot be settled by testing. They need a ruling.
| Decision | Options | What it changes |
|---|---|---|
| Stop convention | hold low (3.235) / Pine literal (4.030) | every R figure, by 25% |
| Canonical entry | PDH break / VWAP pull-in | what the backtest should be testing at all |
| 1R overnight gate | on / off | on CRWD it would have flattened at +0.11R and missed the move |
| Per-trade risk $ | — | share sizing; the daily loss cap is separate |
| Earnings policy | hold / flat into the print | any runner spanning a report |
Every metric on this page, in full. The same text appears as a tooltip wherever the term is used — hover it, or tap it on a phone.