You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Regime Trend v1 — Frozen Hierarchical Intrabar Replay Plan
1
+
# Regime Trend v1 — Frozen 5-Minute Intrabar Replay Plan
2
2
3
-
Status: **Frozen before lower-timeframe replay results are viewed**
3
+
Status: **Frozen before 5-minute replay results are viewed**
4
4
5
5
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.
6
6
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.
8
8
9
9
## 1. Core correction
10
10
@@ -26,21 +26,15 @@ Use only:
26
26
27
27
The final holdout beginning 2025-01-01 remains closed.
28
28
29
-
## 3. Hierarchical resolution
29
+
## 3. Direct 5-minute resolution
30
30
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.
32
32
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.
34
34
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.
36
36
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.
44
38
45
39
## 4. Frozen immediate-exit targets
46
40
@@ -53,7 +47,7 @@ Test only full-position immediate target exits at:
53
47
54
48
The target is measured from the baseline entry fill.
55
49
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.
57
51
58
52
No additional target may be introduced after viewing the replay results.
59
53
@@ -65,23 +59,23 @@ The original initial stop and 4-hour trailing-stop updates remain unchanged.
65
59
- A trailing-stop update calculated from a completed 4-hour candle becomes active only at the next 4-hour candle open.
66
60
- A pending trend exit remains an exit at the next 4-hour open.
67
61
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.
69
63
70
-
## 6. One-hour event ordering
64
+
## 6. Five-minute event ordering
71
65
72
-
For each active 1-hour candle:
66
+
For each active 5-minute candle:
73
67
74
68
1. Check opening gaps.
75
69
2. If open is at or below the active stop, the stop occurs first.
76
70
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`.
78
72
5. If only the target is reached, classify `TARGET_FIRST`.
79
73
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.
81
75
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`.
83
77
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.
85
79
86
80
## 7. Execution costs
87
81
@@ -90,7 +84,7 @@ Use the frozen baseline costs:
90
84
- commission: 0.10% per side,
91
85
- adverse slippage: 0.05% per side.
92
86
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.
94
88
95
89
## 8. Required reports
96
90
@@ -99,20 +93,20 @@ For each partition, symbol and target report:
99
93
- baseline trade count,
100
94
-`TARGET_FIRST` count,
101
95
-`STOP_FIRST` count,
102
-
-`AMBIGUOUS_SAME_1H` count,
96
+
-`AMBIGUOUS_SAME_5M` count,
103
97
-`BASELINE_EXIT` count,
104
98
-`DATA_GAP` count,
105
99
- target-first count among baseline winners,
106
100
- target-first count among baseline losers,
107
101
- stop-first count among baseline winners,
108
102
- 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,
111
105
- profit-factor bounds,
112
106
- win-rate bounds,
113
107
- results by symbol and by calendar quarter.
114
108
115
-
Also report the exact 1-hour timestamps requiring selective 15-minute refinement.
109
+
Also report the exact 5-minute timestamps that remain ambiguous.
116
110
117
111
## 9. Interpretation discipline
118
112
@@ -122,7 +116,7 @@ An immediate target candidate may advance only when:
122
116
123
117
- its lower-bound result improves both development and validation/research,
124
118
- 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,
126
120
- doubled execution costs do not remove the improvement.
127
121
128
122
This stage does not authorize live trading, Pine implementation or final-holdout access.
0 commit comments