50-Minute Compression → Expansion
A plain-English guide. You do not need to know statistics. Read the DO THIS row first — that one line tells you what to do.
What this tool is trying to find
Imagine a rubber band around price.
- 01Compression (the coil) — Price gets quiet. The rubber band gets tight. The chart often turns blue.
- 02Release — Price pushes outside the quiet zone (gold dots). Direction locks: up or down.
- 03Trigger (T) — Price then clears a clear structure level. That is the entry idea.
- 04Expansion — The move gets louder (wider). That confirms hold / add — not the first entry.
- 05Deceleration — The move slows. Time to reduce risk or exit.
The only row you must read: DO THIS
The second row of the chart table is labeled DO THIS. It is one plain-English sentence. Obey it first — every other row is supporting detail.
| DO THIS says | What it means | What you do |
|---|---|---|
| CLOSED — outside regular hours | Engine is off (pre / post market) | AVOID — do not trade this tool now |
| WAIT — warming up (N bars left). No trades yet | Too early; today's average is still using yesterday | WAIT — no long, no short |
| WAIT — getting quiet (3/10). Not a full coil yet | Bands are shrinking but the coil is not old enough | WAIT |
| READY — wait for close > X (long) or < Y (short) | Coil is valid (often blue). X / Y are the gold dots | WAIT for a close past X or Y, then for the entry |
| WATCH — enter on close > X (N bars left) | Released. X is the teal line = the close needed to enter | WAIT for that close — do not guess |
| WATCH — enter on pullback to the mean (N bars left) | First break ran too far (chase). A pullback entry (T2) is still allowed | WAIT for the pullback |
| GO LONG T @ price · stop S · N sh | Long entry just fired (T = first break, T2 = retest) | GO LONG (research), stop at S |
| GO SHORT T @ price · stop S · N sh | Short entry just fired | GO SHORT (research), stop at S |
| HOLD the long / the short · stop S · open +0.8R | You are in the trade; current stop and open R shown | STAY — manage the stop |
| REDUCE risk · trail stop S | Move is slowing; stop now trails the average | CUT RISK / prepare to leave |
| EXIT now (STOP) · result −1.00R — flatten | Flat now. Reason in brackets: STOP, MEAN, OPP T, TIME, EOD, IDLE | EXIT — you should already be flat |
| NO ENTRY — ran too far (chase), no retest / entry window closed | This coil produced no usable entry | AVOID — wait for the next coil |
| STAND ASIDE — move is slowing | Deceleration with no trade on | AVOID new trades |
| No setup — stay flat | Nothing happening | WAIT |
Simple picture of a good long
- 1Blue background / READY — coil.
- 2Price closes above the upper gold dots → RELEASE ↑.
- 3Teal WATCH line — wait for a close above it → teal T↑ (not pink).
- 4DO THIS says GO LONG T @ … → go long; stop at the bottom of the coil (shown in the same line).
- 5Green background while long → HOLD; later REDUCE or EXIT.
A good short is the mirror: release down, T↓, stop at the top of the coil.
Numbers you trade (defaults)
Words like “quiet / loud / slowing” only matter when tied to these cutoffs. If you change a setting, the table and tooltips use your values — not vibes. The Stretch row prints the word and the score and the cutoff, e.g. “bands QUIET (18 ≤ 20) — wait”.
| Stretch row says | Exact rule (defaults) | What you do |
|---|---|---|
| bands QUIET (18 ≤ 20) — wait | Band-width score ≤ 20 (Compression: BW% ≤) | WAIT / READY — coil forming, not an entry |
| bands mid (35) — wait | Score between 20 and 50 | WAIT — not coil, not expansion yet |
| bands EXPANDING (62 ≥ 50) — hold only | Score ≥ 50 (Expansion: BW% ≥) | After a good entry → HOLD (E flag). Not the first entry by itself. |
| bands VERY LOUD (96 ≥ 80) — too late | Score ≥ 80 (Mature expansion) | AVOID new entries — late / stretched. Hold/trail only if already in. |
| SLOWING (−15 from peak 96) — reduce / exit | Score ≤ cycle peak − 15 (Decel drop) | REDUCE / EXIT — move is decelerating |
| Near mean (0.40σ) | |Z| < 1σ | Fine to enter if DO THIS says so |
| STRETCHED 1.60σ from mean (chase > 1.00σ) | |Z| > 1.0σ at the break | AVOID entry — wait for T2 if allowed |
The Setup row grades the coil itself:
| Setup row says | Exact rule (defaults) | What you do |
|---|---|---|
| Tight coil (shrinking vs 20m ago) · … · 14m in | Compressed and raw band width now < 20 minutes ago | Best energy — still WAIT for release + entry |
| Weak coil (quiet, not shrinking) | Compressed but band width is not lower than 20m ago | Weaker coil — prefer WAIT / be pickier |
| … mean tilting UP (coiling) · tilt was UP (released) | 50m slope > +0.15σ over 10 minutes | Helps GO LONG bias (with R↑ / T↑) |
| … mean tilting DOWN · tilt was DOWN | 50m slope < −0.15σ over 10 minutes | Helps GO SHORT bias (with R↓ / T↓) |
| … mean flat · tilt was flat | |slope| ≤ 0.15σ | No directional lean — be pickier |
| Cycle #N from tight coil (14m quiet) · tilt was UP | Summary of the coil that produced the current cycle | Judge the entry against it — a break against the tilt is weaker |
LOW = QUIET, RISE = EXPANDING, HOT = VERY LOUD, FALL = SLOWING, COIL / BASE = tightening / weaker coil; the L50 C20/10… fingerprint lives under Diagnostics → Log id.
Words you’ll see (plain English)
| Word | Meaning | Trade read |
|---|---|---|
| 50m mean | Average price over ~50 minutes | Center line. Above favors longs after ↑ release; below favors shorts after ↓ release |
| σ (sigma) | How “spread out” recent prices were | Builds the bands |
| Bands | Mean ± σ lines | Quiet inside; stretch outside |
| BW / BW% | Band width (raw %) and its percentile | Use the Numbers table: QUIET ≤20 / EXPANDING ≥50 / SLOWING = peak−15 — never trade a vague “rising” |
| Z | How many σ from the mean | |Z| > 1.0 at T = CHASE → AVOID |
| Tightening vs weaker coil | Band width still shrinking vs 20m ago — or not (Setup row) | Prefer tightening; still wait for T |
| R↑ / R↓ | Release up / down | Direction bias — still WAIT for T |
| T / T2 | Trigger / retest entry | Teal = GO LONG/SHORT. Pink = AVOID |
| E | Expansion = BW% ≥ 50 | HOLD / add — not the first entry |
| M | Mature = BW% ≥ 80 | Late for new entries |
| D / DECEL | BW% ≤ peak − 15 (or mean fail) | REDUCE / prepare EXIT |
| R (multiple) | P&L vs original risk | +1R = made 1× what you risked |
What you see on the chart
- Colored mean + bands — the 50-minute “tube.”
- Gold dots — release levels while compressed (and on the release bar).
- Teal line — armed T level. Pinkish line — armed T2 retest edge.
- Background (Action only) — blue = coiled/ready; green = research long; red = research short.
- Markers — C (coil), R (release), E (expansion), T/T2 (entry), pink T (chase), ✗ (failed release).
- Gray / red dashed plan lines — entry and stop while a research trade is open.
- Exit labels — why it flattened and the R result.
Short tooltips vs detailed tooltips
Open Settings → Visuals:
Detailed tooltips = ON
Default. Hover any table cell for a longer explanation plus:
- GO LONG
- GO SHORT
- WAIT / AVOID
- EXIT LONG
- EXIT SHORT
Detailed tooltips = OFF
Short tip only — still includes the trade meaning for that metric (go long / short / wait / exit).
Hover any table cell, including DO THIS.
How to set it up (first time)
- Use an intraday chart (1m, 2m, or 5m work well).
- Add the indicator 50m C→E v1.3.
- Leave Lock mean to 50 minutes = ON.
- Leave Engine runs in regular hours only = ON.
- Leave Warm-up after the open = 50 minutes (first real setups ~10:20 ET on US stocks).
- Leave Flatten at the close = ON if you do not want overnight research holds.
- Check the Settings row says OK — true 50-minute average, then read DO THIS.
Optional: turn Table: show diagnostics ON when you want Mean tilt, VWAP, Width (σ), Band width, Log id, etc.
Settings groups (what matters)
50-minute mean
Keep the lock ON. Wrong length = wrong coils and fake breaks → AVOID.
Session (v1.3)
- RTH only — ignore overnight noise
- Warm-up — no entries until today’s mean is honest
- EOD flatten — EXIT long and short on the last regular bar
Compression
How quiet / how long before READY. Lower threshold / longer min time = fewer, cleaner coils.
Trigger
- T level — close that must clear to enter
- Z cap — how far is “too far” (CHASE)
- Retest (T2) — pullback entry after a chase
Risk management
- One research position from T / T2
- Stop starts at the far edge of the coil
- After E → E-STOP; later may trail the mean
- Exits: STOP, MEAN, OPP T, TIME, EOD, IDLE
- R always uses original risk
Visuals / Tracking
- Background, markers, table, detailed tooltips
- One alert → condition “Any alert() function call”
- JSON log, real-time only
Cheat sheet: go long / go short / avoid / exit
GO LONG when
- Settings says OK — true 50-minute average
- Past warm-up, in regular hours
- Setup says Tight coil (prefer mean tilting UP)
- RELEASE ↑, then teal T↑ (or T2↑)
- DO THIS says GO LONG
GO SHORT when
- Same checklist mirrored
- RELEASE ↓, teal T↓ / T2↓
- DO THIS says GO SHORT
WAIT / AVOID when
- DO THIS says WAIT, READY, or WATCH
- Pink CHASE with no T2 (Entry row: Chase — too far from mean)
- DO THIS says NO ENTRY or STAND ASIDE
- Settings shows amber WARNING — average is NOT ~50 minutes
- DO THIS says CLOSED (after-hours, RTH on)
- Stop loss row says TOO WIDE (if you skip wide trades)
EXIT LONG / SHORT when
- DO THIS says EXIT now (any reason in brackets)
- DO THIS says REDUCE risk and the move keeps dying
- Stop hit, mean cross against you, opposite T, time / EOD / idle
Logging (optional)
- Create one alert on this indicator.
- Condition: Any alert() function call.
- Optional webhook to your logger.
- Each bar can send a JSON array of that bar’s events (COMP, RELEASE, TRIG, CHASE, RETEST, ENTRY, EXIT, …).
- Every payload includes the cfg fingerprint so different settings never mix in the log.
- Alerts are real-time only — they do not backfill history.
Common mistakes
- Buying the gold-dot release (R) instead of waiting for T.
- Taking a pink CHASE as a new entry.
- Trading during WARM-UP or with an amber Settings warning.
- Treating E as the entry (it is hold/add).
- Ignoring REDUCE / EXIT because the trade “feels fine.”
- Using a daily chart or unlocking the mean without knowing why.
Quick daily checklist
- Chart is intraday; Settings = OK — true 50-minute average
- Past warm-up? (DO THIS no longer says warming up)
- What does DO THIS say?
- If GO LONG / GO SHORT — where is the stop? (same line, and the Stop loss row)
- If HOLD — has it flipped to REDUCE or EXIT?
- Flat by the close if EOD flatten is on.