Skip to content

Commit b6adf94

Browse files
committed
docs: use direct 5m intrabar replay
1 parent 95ecff2 commit b6adf94

1 file changed

Lines changed: 22 additions & 28 deletions

File tree

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Regime Trend v1 — Frozen Hierarchical Intrabar Replay Plan
1+
# Regime Trend v1 — Frozen 5-Minute Intrabar Replay Plan
22

3-
Status: **Frozen before lower-timeframe replay results are viewed**
3+
Status: **Frozen before 5-minute replay results are viewed**
44

55
Purpose: resolve the OHLC path ambiguity inside each 4-hour strategy candle and test whether an immediately executable profit target is reached before the active stop.
66

7-
The existing 4-hour strategy remains the signal generator. Lower-timeframe candles are used only to reconstruct event order and execution.
7+
The existing 4-hour strategy remains the signal generator. Five-minute candles are used to reconstruct event order and execution.
88

99
## 1. Core correction
1010

@@ -26,21 +26,15 @@ Use only:
2626

2727
The final holdout beginning 2025-01-01 remains closed.
2828

29-
## 3. Hierarchical resolution
29+
## 3. Direct 5-minute resolution
3030

31-
### Stage 1: 1-hour replay
31+
Download and hash-complete Binance Spot 5-minute candles for BTCUSDT, ETHUSDT and BNBUSDT through 2024-12-31.
3232

33-
Download and hash-complete Binance Spot 1-hour candles for BTCUSDT, ETHUSDT and BNBUSDT through 2024-12-31.
33+
Replay every frozen 4-hour baseline trade using the 5-minute candles contained inside its active lifetime.
3434

35-
Replay every frozen 4-hour baseline trade using the 1-hour candles contained inside its active lifetime.
35+
When the same 5-minute candle contains both the active stop and the tested target, classify the event as `AMBIGUOUS_SAME_5M`. Do not invent an intrabar path.
3636

37-
### Stage 2: selective 15-minute replay
38-
39-
When the same 1-hour candle contains both the active stop and the tested target, classify the event as `AMBIGUOUS_SAME_1H`.
40-
41-
Only these ambiguous 1-hour windows may be refined with 15-minute candles.
42-
43-
If the same 15-minute candle still contains both levels, retain `AMBIGUOUS_SAME_15M`. Do not invent an intrabar path.
37+
No 1-hour or 15-minute intermediate replay is used.
4438

4539
## 4. Frozen immediate-exit targets
4640

@@ -53,7 +47,7 @@ Test only full-position immediate target exits at:
5347

5448
The target is measured from the baseline entry fill.
5549

56-
A target exit occurs immediately when the lower-timeframe price first reaches the target. It does not wait for a 4-hour close.
50+
A target exit occurs immediately when the 5-minute price first reaches the target. It does not wait for a 4-hour close.
5751

5852
No additional target may be introduced after viewing the replay results.
5953

@@ -65,23 +59,23 @@ The original initial stop and 4-hour trailing-stop updates remain unchanged.
6559
- A trailing-stop update calculated from a completed 4-hour candle becomes active only at the next 4-hour candle open.
6660
- A pending trend exit remains an exit at the next 4-hour open.
6761

68-
Lower-timeframe replay must not use future 4-hour closes to update a stop early.
62+
The 5-minute replay must not use future 4-hour closes to update a stop early.
6963

70-
## 6. One-hour event ordering
64+
## 6. Five-minute event ordering
7165

72-
For each active 1-hour candle:
66+
For each active 5-minute candle:
7367

7468
1. Check opening gaps.
7569
2. If open is at or below the active stop, the stop occurs first.
7670
3. Else if open is at or above the target, the target occurs first.
77-
4. If the candle range reaches both stop and target, classify `AMBIGUOUS_SAME_1H`.
71+
4. If the candle range reaches both stop and target, classify `AMBIGUOUS_SAME_5M`.
7872
5. If only the target is reached, classify `TARGET_FIRST`.
7973
6. If only the stop is reached, classify `STOP_FIRST`.
80-
7. Otherwise continue to the next 1-hour candle.
74+
7. Otherwise continue to the next 5-minute candle.
8175

82-
If no lower-timeframe target or stop occurs before the original baseline exit, retain `BASELINE_EXIT`.
76+
If no 5-minute target or stop occurs before the original baseline exit, retain `BASELINE_EXIT`.
8377

84-
Any missing lower-timeframe interval inside the required replay window produces `DATA_GAP` rather than a guessed result.
78+
Any missing 5-minute interval inside the required replay window produces `DATA_GAP` rather than a guessed result.
8579

8680
## 7. Execution costs
8781

@@ -90,7 +84,7 @@ Use the frozen baseline costs:
9084
- commission: 0.10% per side,
9185
- adverse slippage: 0.05% per side.
9286

93-
A target touch uses the target reference with adverse sell slippage. A stop touch uses the active stop reference with adverse sell slippage. A gap through a stop uses the lower-timeframe candle open with adverse slippage.
87+
A target touch uses the target reference with adverse sell slippage. A stop touch uses the active stop reference with adverse sell slippage. A gap through a stop uses the 5-minute candle open with adverse slippage.
9488

9589
## 8. Required reports
9690

@@ -99,20 +93,20 @@ For each partition, symbol and target report:
9993
- baseline trade count,
10094
- `TARGET_FIRST` count,
10195
- `STOP_FIRST` count,
102-
- `AMBIGUOUS_SAME_1H` count,
96+
- `AMBIGUOUS_SAME_5M` count,
10397
- `BASELINE_EXIT` count,
10498
- `DATA_GAP` count,
10599
- target-first count among baseline winners,
106100
- target-first count among baseline losers,
107101
- stop-first count among baseline winners,
108102
- stop-first count among baseline losers,
109-
- lower-bound total net PnL, treating same-hour ambiguity as stop-first,
110-
- upper-bound total net PnL, treating same-hour ambiguity as target-first,
103+
- lower-bound total net PnL, treating same-5-minute ambiguity as stop-first,
104+
- upper-bound total net PnL, treating same-5-minute ambiguity as target-first,
111105
- profit-factor bounds,
112106
- win-rate bounds,
113107
- results by symbol and by calendar quarter.
114108

115-
Also report the exact 1-hour timestamps requiring selective 15-minute refinement.
109+
Also report the exact 5-minute timestamps that remain ambiguous.
116110

117111
## 9. Interpretation discipline
118112

@@ -122,7 +116,7 @@ An immediate target candidate may advance only when:
122116

123117
- its lower-bound result improves both development and validation/research,
124118
- the improvement is not carried by one symbol or one quarter,
125-
- ambiguity is low enough or resolved by selective 15-minute replay,
119+
- same-5-minute ambiguity is low enough that the conclusion is stable,
126120
- doubled execution costs do not remove the improvement.
127121

128122
This stage does not authorize live trading, Pine implementation or final-holdout access.

0 commit comments

Comments
 (0)