I Replaced the Entry Rule With a Clock. The Strategy Still Made $706.
TL;DR: Post #18 ended with a pre-commitment: same script, same trailing exit, same 2×ATR stop — but entries on a fixed schedule with no price information at all, every 83rd bar, 49 entries, the same count as the RSI stream. The clock made +$706.11, Profit Factor 1.092, in our testing — against the RSI's +$2,530.24 and 1.302. So the RSI crossover is doing something: $1,824.13 of the net, three extra wins, and a better win rate. But the clock also made money, and both runs are still one trade deep — take away each run's biggest winner and the RSI is +$168.70 while the clock is −$2,110.71. The entry is a problem. It isn't the problem either.
| RSI entries (#18) | Clock entries (#19) | |
|---|---|---|
| Closed trades | 48 | 48 |
| Trail exits / stop exits | 29 / 19 | 25 / 23 |
| Net profit | +$2,530.24 | +$706.11 |
| Profit Factor | 1.302 | 1.092 |
| Win rate | 19 / 48 (39.6%) | 16 / 48 (33.3%) |
| Gross profit / gross loss | +$10,908.26 / −$8,378.02 | +$8,389.21 / −$7,683.10 |
| Avg win / avg loss | $574.12 / −$288.90 | $524.33 / −$240.10 |
| Avg hold | 17.04 bars | 15.17 bars |
| Max hold | 64 bars | 60 bars |
| Median trade | −$163.07 | −$136.87 |
| Top-5 winners' share | 63.7% | 73.6% |
| Net minus biggest winner | +$168.70 | −$2,110.71 |
| Max equity drawdown | $1,881.50 (18.82%) | $2,325.22 (23.25%) |
The contract: one question, chosen before I looked
Post #18 pre-committed this test, word for word: same trail exit, same 2×ATR stop, entries on a fixed schedule with no price information at all — every 83rd bar (bar_index % 83 == 0, from bar 83), 49 entries, same count as the RSI stream. The question it was built to answer was also fixed in advance: if the clockwork entries land anywhere near +$2,530, the RSI crossover is not doing the work.
Three questions, in order:
- Does the clock make money at all — and if so, how much of the RSI's edge is the entry, and how much is the exit machinery?
- Is the comparison actually clean — did all 49 ticks fire, and did anything else change?
- If the RSI wins, where does it win — in the big trades, or in the middle of the distribution?
The script is post #18's fixed RSI mean-reversion strategy, byte-identical apart from the entry line and the title string. Same 4,089 daily bars of CSI 300 (2010-01-04 → 2026-11-06), same $10,000, same PyneCore patched runtime, no commission, no slippage. The RSI is still computed — and still plotted — so the script is identical except for the one line that decides when to buy. Nothing in the entry decision reads it.
A clock that buys every 83rd bar is the cheapest possible placebo. If your entry rule can't beat it, it isn't a rule — it's a ritual.
The one-line change, in Pine — the crossover out, the clock in:
// THE CONTROL: entries carry no price information at all. Every 83rd // bar, from bar 83 — 83, 166, ..., 4067 — 49 ticks on 4,089 bars, the // same count as the RSI entry stream in #15–#18. RSI is still computed // (and plotted) so the script is byte-identical apart from this line, // but nothing in the entry decision reads it. longSignal = bar_index >= 83 and bar_index % 83 == 0 And the compiled Python, verbatim from the local compiler (node bin/pine2pyne.mjs, zero diagnostics) — the only line that differs from the #18 run:
longSignal: Series[bool] = ((bar_index >= 83) and ((bar_index % 83) == 0)) The compiled .py diffs clean against the #18 base except for that line, the title string, and the bar_index import. Zero diagnostics.
The one line that matters is bar_index % 83 == 0. Everything this post claims about "the entry" lives in that one line: no price, no indicator, no memory — just the calendar. If the RSI's $1,824 advantage survives this control, it survives because the crossover reads something the calendar doesn't. If it doesn't, the whole series has been measuring the exit.
Probe 1: the headline — the clock makes money, the RSI makes more
48 closed trades each, same exits, same stops. The clock: net +$706.11 (+7.06% on $10,000), PF 1.092, 16 wins out of 48. The RSI: +$2,530.24, PF 1.302, 19 wins out of 48.
The gap is $1,824.13 — 72% of the RSI's net. The RSI's edge is real in the sense that it exists on this data: three more wins, a win rate of 39.6% against 33.3%, and $574.12 average wins against $524.33. But the gap is also small in the sense that matters: one average losing trade is $240–$289, so the whole RSI advantage is about seven losing trades' worth of money on 48 trades. And the clock's net is positive, which is the uncomfortable part — a strategy that buys on a calendar and exits on a trailing stop still ends 16 years up 7%. Whatever the RSI is doing, it is not the difference between a working strategy and a broken one. It is the difference between a barely-working strategy and a slightly-less-barely-working one.
One more number from the table, before the probes: the median trade loses money in both runs — −$136.87 for the clock, −$163.07 for the RSI. The typical trade in this strategy, whichever way you enter, is a loser. The net is positive only because the right tail is fat. Keep that in mind for everything below: this is a strategy where the average experience is losing, and the profit lives in a handful of trades.
Probe 2: the tick that never fired — a $26.73 shortfall, silently
The comparison is not perfectly clean, and the reason is worth a probe of its own — because it is the same species of silent failure this whole series is about.
49 ticks were scheduled: 83, 166, …, 4067. Only 48 entries fired. The missing one is bar 1660 (2016-11-07). I checked it three ways before writing this:
- The signal itself fired: a probe run plotting
longSignalshows1at bar 1660, and the position was flat (position_size = 0) — the entry call definitely executed. - A minimal repro — a script that does nothing but
strategy.entryon bar 1660 — fills fine at the next open, 2 contracts, +$5.80. The bar is not the problem. - The arithmetic is the problem. Equity before the tick was $10,076.37. The signal bar's close was 3,356.59, so 100%-of-equity sizing computed 3 contracts — $10,069.77 at the signal close, inside equity by $6.60. But entries fill at the next bar's open, and the next open was 3,367.70: 3 contracts would cost $10,103.10 — $26.73 more than the account held. PyneCore dropped the order. No diagnostic, no trade row, no note in any CSV. The tick just never happened.
So the control ran on 48 entries, not 49 — the same count as the RSI's 48 closed trades, by accident rather than by design. (For completeness: the RSI stream's 49th entry was still open at the last bar, −$63.57 unrealized, and is excluded from both tables, same as in #18.)
Two things follow. First, the missing trade is a $26.73 affordability artifact, not a price-information leak: it removes one random calendar entry, and it removes it for a reason that has nothing to do with what the market did next. It does not bias the comparison toward the RSI. Second, the mechanism is not specific to the clock — the same sizing, the same runtime, the same fill-at-next-open rule ran every RSI entry in #15–#18. Any RSI signal whose fill gapped up past affordability would have vanished the same way, just as silently. I did not re-audit the RSI stream for dropped signals; that is listed under what I couldn't verify.
Probe 3: the two biggest trades — one the RSI never saw, one they shared
Trade #14 — the clock's best case, and the RSI's blind spot. Entry 2014-10-24 @ 2,397.85. Exit 2015-01-20 @ 3,336.79, 60 bars, trail exit, +$2,816.82 — the biggest winner in either run, bigger than the RSI's best by $455.28. It rode the start of the late-2014 bull run, gave back 307.00 points from the highest close, and still banked the most money in the series. And the RSI stream had no trade overlapping that window at all — not one entry between 2014-10-24 and 2015-01-20. The market was rising through that whole stretch, so the RSI never crossed down through 30, so the crossover never fired. The clock bought the uptrend because the calendar said so; the RSI sat out because the market wasn't oversold. This is the control's sharpest point: the entry rule that is supposed to find value missed the best four months in the sample, and a clock caught them.
Trade #42 vs #45 — the same move, one contract apart. The clock's #42 entered 2024-09-11 @ 3,187.05 and exited 2024-10-10 @ 3,979.61, 14 bars, +$1,585.12. The RSI's #45 entered 2024-09-20 @ 3,192.43 and exited the same day, at the identical price 3,979.61, +$2,361.54. Same spike, same exit day, same trail. The $776.42 gap between them is not timing — the clock actually entered nine days earlier — it is one contract: the clock ran 2 contracts, the RSI ran 3, because the clock's equity was lower at entry after its own drawdown. When the two runs catch the same move, the difference is the equity path, not the entry rule.
So the two biggest trades cut in opposite directions: #14 says the clock can catch what the RSI misses entirely; #42/#45 says that when both catch the same move, the entry doesn't decide the profit — the position size does. Neither fact flatters the RSI.
Probe 4: the middle of the distribution — where the RSI actually wins
If the story ended at the biggest trades, the clock would look better than the RSI: its best trade is bigger, and its net-minus-biggest is worse only because its biggest trade is its net. The honest check is to remove the biggest trade from each run and look at what's left:
| RSI (#18) | Clock (#19) | |
|---|---|---|
| Net | +$2,530.24 | +$706.11 |
| Net minus biggest winner | +$168.70 | −$2,110.71 |
| Net minus top 5 winners | −$4,418.88 | −$5,468.56 |
| Trades over +$500 | 9 | 4 |
| Trades under −$400 | 5 | 4 |
Removing the biggest trade widens the gap — from $1,824.13 to $2,279.41. The RSI's advantage is not in catching the one big move: ex-biggest, the RSI is barely above breakeven (+$168.70) while the clock is deep underwater (−$2,110.71). The RSI wins in the middle: 9 trades over +$500 against the clock's 4, with the same number of bad losers (5 vs 4 under −$400). The crossover's work is to produce a few more medium winners, not to find the jackpot — the jackpot, #14 shows, belongs to the calendar.
But the same table caps the celebration: net minus the top 5 is negative in both runs (−$4,418.88 and −$5,468.56). Five trades carry each strategy, and the RSI's five carry 63.7% of its gross profit against the clock's 73.6%. The RSI is less concentrated than the clock — and still, without its top five, it loses $4,418.88. The entry rule improves the concentration. It does not fix it.
And the exits, for the record, behaved the same way under both entries: trail exits 25 vs 29, stop exits 23 vs 19, median give-back on trail exits 119.00 points for the clock against 156.60 for the RSI, average stop-exit loss −$281.18 against −$338.32. The exit machinery is not entry-dependent in any way that changes the conclusion.
What I couldn't verify
- Whether any RSI signal was silently dropped the way tick 1660 was. The $26.73 shortfall mechanism applies to #15–#18 as well — same sizing, same runtime, same fill-at-next-open. Counting dropped RSI signals needs a signal-level probe of the #18 run, which I haven't done.
- Whether 49 entries are enough to call this. They aren't, really: the gap between the runs is $1,824.13 and the standard error on a 48-trade mean with this variance swallows it. The honest statement is that the RSI looks better on this sample, and the clock looks like it makes money — both claims are one big trade away from reversing.
- Costs. No commission, no slippage, same as every post in this series. The clock trades 48 times in 16 years, so costs would bite less here than on a fast strategy — but "less" is not a number, and I haven't run it with costs. That is the next post.
- Out of sample. Same 4,089 bars as every post in the series. Nothing here has been tested on data the script hasn't already seen.
FAQ
49 entries — is that enough to say anything?
No, not really, and the post says so above. 48 trades is a small sample; the gap is $1,824 and one trade is worth $2,816. What 48 trades can say is that the clock makes money on this sample and the RSI makes more of it — and what it can't say is whether either would repeat. Treat the numbers as a measurement of this sample, not a property of the rules.
Why 83 bars?
Because 4,089 ÷ 49 ≈ 83.4. The point was to match the RSI stream's entry count (49), so the two runs differ in when they buy, not how often. Any nearby spacing (80, 85) would test the same question; 83 is the one that lands the count. The result is a statement about "a clock with the same trade count", not about the number 83.
Does this prove the RSI entry is useless?
No — it proves the opposite, within this sample: the RSI beat the clock by $1,824.13, and the gap grows to $2,279.41 once you remove each run's biggest trade. What it proves is that the RSI is not load-bearing: the strategy makes money without it, and stays one-trade-deep with it. An entry rule can be worth $1,824 and still not be the thing that makes the strategy work.
Bottom line
The clock made +$706.11, PF 1.092, in our testing — the RSI made +$2,530.24, PF 1.302, on the same exits, same stops, same data. The RSI crossover is doing real work: $1,824.13 of net, three extra wins, nine medium winners against four, and a gap that survives removing the biggest trade from each run. But the control also made money, caught the best trade in the sample that the RSI never saw, and both runs are still carried by five trades — without them, both lose over $4,400. The answer to #18's question is: the RSI is doing the work, and the work isn't enough. The entry was a problem, not the problem. The strategy is still one trade deep, whichever way you enter.
The next post is already fixed, same as this one was: same script, same trailing exit, with costs — 0.1% commission per round trip, to see whether +$2,530.24 survives contact with the one thing every real trade pays. If the net collapses, the exit was never the story either.
Have you ever run a placebo control on your own entry rule — and had the placebo make money? I read every comment — the control experiments are what the next posts are built from.
This conversion work was done by Pine2Py, the tool I build for exactly this job: paste a Pine script, get PyneCore-flavored Python back, diagnostics included when something can't be translated. The runtime is the open-source PyneCore project, with a patched build we ship for the two constructs stock PyneCore doesn't handle — details are on the site. It's free to try — every account gets 3 conversions, no card — and Pro is $12/month if you end up converting a whole library. No return promises, ever: a translator moves your logic, it doesn't make it profitable.


