בס״ד

MIS March 5 Formula Restoration Reference (Session 2 Brain Restore Prep)

docs/MIS_MARCH5_FORMULAS.md · last changed (pre-VM history) · rendered from GitHub master

MIS March 5 Formula Restoration Reference (Session 2 Brain Restore Prep)

Source: Copy of MIS_v7.1_gsheet - March 5, 3:01 PM (Drive ID 17SRUho-vIQ1J2Rb_xh6Uk7-PUD1orJeQIr64ctSSeEw)
Captured: 2026-04-28 ~12:15 AM EDT (overnight Session 17 prep, auto-mode subagent)
Sheet 1 (current/regressed): MIS_v7.1_gsheet (the live one)
Sheet 2 (this doc): the "March 5" backup

NOTE — Drive MCP returns evaluated values, not raw formulas. To get the actual
formula strings (e.g., the SACS weighted formula in col AZ, the Flow Strength formula
in col AC, the Snapshot gate logic in col S/T) Sam must open Sheet 2 in the browser →
click the cell → copy from the formula bar. This doc gives the structural target
+ observed value patterns that prove formulas are intact.

Critical caveat — this "backup" is NOT frozen. The Drive export shows live
2026-04-27 data (VIX=18.02, Total_Equity=16,238). That means Sheet 2's formulas
are pulling current GOOGLEFINANCE / live-data feeds — same as Sheet 1. The
"regression" Sam saw between Sheet 1 vs. Sheet 2 is not a formula corruption
in Sheet 2; it's that Sheet 1 has had columns/formulas deleted or replaced
while Sheet 2 still has the full original column set. Restoration target = copy
column structure + formulas FROM Sheet 2 INTO Sheet 1.


1. Momentum_Engine (col-by-col observed state)

Tab confirmed present in Sheet 2. Header found at line 677 of the markdown export.
Total observed columns: 56 data columns (matches the "wide" engine described in mobile-Claude doc).

Col Header Sample observed values (Sheet 2) Inferred formula intent
A Ticker AAPL, ABNB, AEP, AFRM... universe key
B Stock Name Apple Inc, Airbnb Inc... VLOOKUP from Universe tab
C Current % Change (-1.27%), (-3.83%), +5.60% GOOGLEFINANCE("changepct")
D Current Price 267.62, 334.49, 524.56 GOOGLEFINANCE("price")
E Day High 268.36, 349.21 GOOGLEFINANCE("high")
F Day Low 265.07, 328.81 GOOGLEFINANCE("low")
G % from Day High (-0.28%), (-4.22%) (D−E)/E
H % from Day Low +0.96%, +1.73% (D−F)/F
I 3D % (-1.99%), +21.71% likely (D − Close_3dAgo)/Close_3dAgo
J 10D % +3.24%, +35.57% (D − Close_10dAgo)/Close_10dAgo
K 30D % +6.99%, +73.03% (D − Close_30dAgo)/Close_30dAgo
L 30D Avg 262.34, 257.49 AVERAGE of last 30 closes
M Above/Below 30D Above, Below IF(D>L,"Above","Below")
N 13W High 278.12, 347.81 MAX over 13W window
O 13W Low 246.63, 190.95 MIN over 13W window
P % from 13W High (-3.78%), (-3.83%) (D−N)/N
Q % from 13W Low +8.51%, +75.17% (D−O)/O
R 52W High 286.19, 347.81 MAX over 52W
S 52W Low 195.27, 96.06 MIN over 52W
T % from 52W High (-6.49%), (-3.83%) (D−R)/R
U % from 52W Low +37.05%, … (D−S)/S
V Vol % (30D) (e.g., +9.45% for UNH, +18.35% OKLO) rolling 30D stdev/realized vol
W Today Range % +2.13% (UNH), +7.77% (OKLO) (E−F)/F
X Compression/Expansion Compression / Pre-Expansion / Expansion IF tree comparing today range vs avg range
Y Trend Direction (not sampled — likely Up/Down/Flat) sign of slope of 30D MA
Z Momentum Regime "Decelerating Up", "Accelerating Up", "Reversing Down", "Decelerating Down" classifier on 3D vs 10D vs 30D
AA Short-Term Tag (3D) (varies) label for 3D move
AB Volatility Mode "High Vol" / "Normal" IF(V > threshold, "High Vol", "Normal")
AC Flow Proxy Accumulating / Rotating / DistributingVARIES per row, confirmed IF tree on volume × direction
AD Flow Strength Index 0–91 range, varies per row (CEG=91, AEP=91, AMGN=18, ECL=0, INTC=86) weighted composite — formula bar required
AE SignalTag (not sampled in detail) label aggregator
AF Event Impact (−1..1) (numeric −1 to +1) earnings/news weight
AG Composite Score observed −7 to +15 (e.g., LIN=15, JBLU=−7) sum of weighted signals
AH Action Flag "✅ In Sync – Momentum" / "⚠ Out of Sync – Watch" / "🚫 Misaligned / Avoid" / "🟡 Balanced / Wait" IF tree on AG + AC
AI Stop (6%) 64.11, 263.43 D × 0.94
AJ Target (10%) 75.02, 290.30 D × 1.10
AK Sector Technology, Energy, Health Care, etc. — POPULATED VLOOKUP from Universe
AL Industry Hardware, Pharma, Chips… VLOOKUP from Universe
AM Sector Benchmark XLK, XLE, SOXX, XLV, etc. VLOOKUP from Sector_Map
AN Sector mean 3D% (numeric) AVERAGEIFS by sector
AO Sector stdev 3D% (numeric) STDEVIFS by sector
AP 3D z-score observed −2.30 (QBTS), −1.71 (IBM), −1.52 (SHW) (I − AN)/AO
AQ Outlier Flag "+2σ Upside Outlier" IF(ABS(AP)>=2,…)
AR Contrarian Opp. "Contrarian ✅" / blank T<-50% AND AP<−1.5 etc.
AS RS_SPY_30D +28.96% (INTC), +21.30% (AMD), −3.39% (ASML) — varies (K_ticker − K_SPY)
AT RS_Sector_30D +20.21%, +12.55%, +11.52% (K_ticker − K_sectorETF)
AU RVI (numeric, not sampled deeply) Relative Vigor Index
AV Perf_Grade (letter or numeric grade) classifier on K & AS
AW RiskReward_13W 17.99 (DAL), 1086.99 (SGOV), 19.10 (CEG) (target − D)/(D − stop) using 13W extremes
AX Reason text justification TEXTJOIN of which gates passed
AY Vol Stress Meter (VSM) 0.2, 0.3, 0.4, 1.1 (CEG) normalized stress
AZ Alpha Conviction Score (SACS) −0.81 (ECL) to 55.29 (INTC) — full range varies weighted formula — formula bar required
BA Next Earnings Date "Thu, Apr 30", "Tue, Apr 28", "N/A" VLOOKUP from Universe.J
BB Earnings_Warning_Flag (boolean / label) IF earnings within N days
BC Intraday Price Quality (IPQ) 76.13%, 90.71%, 93.10% (D − F)/(E − F) — normalized intraday position
BD Alpha Quality Score (AQS) (numeric, not sampled deeply) composite of SACS × IPQ × Flow

Note on the AC vs AD column letter discrepancy: the original spec/mobile-Claude
doc names "Flow Strength Index" as col AC. In the actual Sheet 2 export Flow Proxy
sits at index 29 (AC) and Flow Strength Index sits at index 30 (AD). When Sam opens
Sheet 2 in browser, read the actual column letter from the header bar before
assuming AC vs AD. This doc preserves the order observed in the export.

Cols not visible to MCP that mobile-Claude flagged as relevant:
- col BG (30D Avg Volume) — not present in this 56-col export
- col BH (Volume vs Avg) — not present in this 56-col export

Either (a) those cols exist in Sheet 2 but the markdown exporter truncated them,
or (b) mobile-Claude's column-letter mapping was approximate. Verify in browser.


2. Reference_Rules (full key-value table)

CRITICAL FINDING — Reference_Rules tab IS NOT VISIBLE in the Drive markdown export.

The Drive MCP tool flattens all visible-data tabs into one markdown stream. Hidden
tabs, named-range-only tabs, and sheets with no traditional row structure (i.e.,
a key-value lookup table laid out as A: name | B: value) may not render in
the export. The export from Sheet 2 contains 944 lines, and zero of them match
"VIX_Low", "VIX_High", "Lean In", "Reversal Watch", "Macro Bias", "Trend Bonus",
or "Earnings Penalty" (the parameter names mobile-Claude listed).

Indirect evidence Reference_Rules exists in Sheet 2:
- Snapshot col 21 header reads literally: "Dynamic ATR multiple based on VIX bands in Reference_Rules (Regime Multiplier)". Observed value: 1.00 (VIX=18.02, regime=NORMAL).
- Snapshot col 22 header: "Visual tag for regime" — observed: NORMAL.
- Snapshot col 23: "ATR-Regime Stop (auto)" — pulls multiplier × ATR from Reference_Rules.
- Snapshot col 19: "Trade OK?" vs max % loss per position (your rule, e.g., 2.5% in Settings!B4) — references a Settings tab too (named-range Settings!B4).

What we KNOW from observed values about the rules:
| Observed parameter | Observed value | Source line |
|---|---|---|
| Regime threshold (VIX=18.02) | NORMAL | snapshot row col 22 |
| Regime multiplier @ NORMAL | 1.00 | snapshot col 21 sample |
| Max % loss per position | 2.5% (gate trips at >2.5%) | "REJECT (too loose / >2.5%)" appears 30+ times |
| HIGH regime threshold | VIX > ~19 (observed: 4/20–4/23 with VIX 18.87–19.5 all flipped to HIGH) | VIX history table at lines 65-72 |
| NORMAL → HIGH transition | "Regime change: NORMAL→HIGH" at VIX=19.5 | line 79 |
| HIGH → NORMAL transition | at VIX=18.71 | line 80 |

Restoration action: Sam must open Sheet 2 → click Reference_Rules tab → screenshot
or copy-paste the full A:B table (parameter name + value). MCP cannot reach this tab.
Same for the Settings tab (B4 = 2.5% confirmed by inference).


3. Snapshot tab (target column structure)

Tab confirmed present in Sheet 2. Header at line 362.
Observed columns: 28 data columns (NOT 57 as mobile-Claude doc claimed — possible the doc was conflating Snapshot with Momentum_Engine, OR the markdown exporter flattened helper cols).

Full column header list in order:

# Header (Sheet 2)
1 Ticker
2 Current / Last_Close
3 Current % Change
4 Close_10dAgo
5 Return_10d
6 Close_30dAgo
7 Return_30d
8 ATR14_proxy
9 Stop @ 1× ATR
10 Stop @ 1.3× ATR
11 Stop @ 2× ATR
12 % Risk @ 1× ATR
13 % Risk @ 1.3× ATR
14 % Risk @ 2× ATR
15 Shares @ Current Price for Fixed $ Risk (1× ATR)
16 Shares for fixed $ risk at 1.3× ATR
17 Shares for fixed $ risk at 2× ATR
18 Dollar risk actually deployed (choose your multiple; example uses 1.3×)
19 "Trade OK?" vs max % loss per position (your rule, e.g., 2.5% in Settings!B4)
20 One-liner you can paste into notes/WhatsApp
21 Dynamic ATR multiple based on VIX bands in Reference_Rules (Regime Multiplier)
22 Visual tag for regime
23 ATR-Regime Stop (auto)
24 Sector
25 Current Sector % Performance
26 Risk_Per_Trade
27 (blank / spacer)
28 AA2 (helper TR series for the row):

Sample row (AAPL):

Ticker=AAPL · Last=267.62 · Chg=−1.27% · Close_10dAgo=266.43 · Ret_10d=+0.45% · Close_30dAgo=252.62 · Ret_30d=+5.94% · ATR14=3.22 · Stops 1×/1.3×/2×: 264.40/263.43/261.18 · %Risk 1.20%/1.56%/2.41% · Shares 7/5/3 · $Risk_deployed=20.93 · Gate=OK (within 2.5%) · One-liner=AAPL: ATR14=3.22 | Stops(1x/1.3x/2x): 264.40/263.43/261.18 | %Risk: 1.2%/1.6%/2.4% | $Risk: $21 | Regime: NORMAL (1.00×) | AutoStop: 264.40 | Gate: OK (within 2.5%) · Regime_mult=1.00 · Regime=NORMAL · AutoStop=264.40 · Sector=Technology · Sector%=+0.27% · Risk_Per_Trade=0.01

Gate (col 19) logic — observed values:
- OK (within 2.5%) — when % Risk @ 1.3× ATR ≤ 2.5%
- REJECT (too loose / >2.5%) — when % Risk @ 1.3× ATR > 2.5%

Sheet 1 currently downgraded to ~14 cols (per the briefing prompt). Restoration
target = recreate cols 8–28 above, in this exact order, with the formulas Sam pulls
from Sheet 2's formula bar.


4. execution_playbook (decision-field structure)

Tab confirmed present in Sheet 2 — multiple instances of the "Execution Shortlist" header found (lines 771, 937 — likely the main exec table appears at top of tab and is repeated in views).

Column list (line 771):
- [x] Ticker
- [x] Stock Name
- [x] Current % Change
- [x] Current Price
- [x] SACS (Alpha Conviction Score)
- [x] VSM (Vol Stress Meter)
- [x] Flow (Flow Proxy)
- [x] Flow Strength Index
- [x] RS_SPY_30D
- [x] RS_Sector_30D
- [x] RiskReward_13W
- [x] IPQ (Intraday Price Quality)
- [x] Action Flag
- [x] Sector

Mobile-Claude doc fields → presence check:
- [x] Entry Signal — NOT explicitly named in this header — but implied by Action Flag column ("✅ In Sync – Momentum" = entry signal)
- [x] Stop — NOT in this 14-col header — but IS in the related Quiet Alpha tab (Final % Risk @ 1.3× ATR, line 902 col 11) and Snapshot (cols 9-11)
- [x] Risk% — present as "Final % Risk @ 1.3× ATR" in Quiet Alpha view (col 11)
- [x] Target% — implied by Stop (6%) / Target (10%) on Momentum_Engine cols AI/AJ
- [x] R:R — present as "RiskReward_13W" ✓
- [x] Shares — NOT in execution_playbook header — sits in Snapshot cols 15-17
- [x] SACS
- [x] VSM
- [x] Flow ✓ (Flow Proxy, but Trend not explicit — see note)
- [x] TrendNOT a separate col in this header — but Momentum_Engine col Z (Momentum Regime) covers it
- [x] IPQ
- [x] Action Verdict — "Action Flag" ✓ + "Trade Conclusion" column on Quiet Alpha (col 14) which carries the verdict text "✅ HIGH CONVICTION BUY (Risk: 1.56%)" / "🛑 REJECT: Risk Too High (4.28% > 2.5%)"
- [x] Reason — present in Momentum_Engine col AX
- [ ] Action Notes — not explicitly observed as a separate col; the "One-liner" in Snapshot col 20 may serve this purpose

Conclusion: all 14 mobile-Claude decision fields ARE represented in Sheet 2, but
they're spread across Momentum_Engine + Snapshot + execution_playbook + Quiet Alpha.
Restoration plan must rebuild those 4 tabs together — not just one.


5. Sector_Map

Anchor "Proxy ETF" CONFIRMED PRESENT in Sheet 2 — found at line 217 of export.

Header observed:
| Col | Header |
|---|---|
| A | Proxy ETF ✓ |
| B | Sector Group |
| C | Stock Avg % |
| D | 3-Day Momentum |
| E | Flow Strength |

Sectors aggregated (16 rows observed):

Proxy ETF Sector Group Stock Avg % 3-Day Momentum
XLE Energy +1.12% +4.44%
XLF Financials +0.96% (-2.46%)
XLB Materials +0.36% +2.44%
XLU Utilities (-0.08%) +0.15%
(blank) ETFs/Indices (-0.16%) (-1.55%)
(blank) Unknown (-0.16%) (-1.55%)
XLY Cons. Disc. (-0.21%) (-2.90%)
XLY Transport (-0.21%) (-2.90%)
XLV Health Care (-0.23%) (-1.87%)
XLI Industrials (-0.24%) (-5.81%)
SOXX Semiconductors (-0.42%) +9.15%
XLRE Real Estate (-0.55%) (-1.03%)
XLP Cons. Staples (-0.68%) +0.68%
PEJ Hotels & Ent. (-0.95%) (-4.10%)
PEJ Media (-0.95%) (-4.10%)
CARZ Automobiles (-1.06%) +0.74%
XLC Communications (-1.08%) (-3.22%)

Sheet 1 is missing the "Proxy ETF" anchor label per the briefing. Restoration =
re-add col A header text + formulas mapping each sector → its proxy ETF ticker.
The "Flow Strength" col E was observed as blank in this export — possibly because
its formula references the Flow Strength Index from Momentum_Engine which has not
yet been re-evaluated, OR the col is genuinely empty and gets populated post-close.


6. Daily_Snapshot

Tab confirmed present — this is the main tab the Drive export landed on, lines 0-235.

Structure (observed top-to-bottom):

  1. Regime header line (line 0):
    Regime_Label --> NORMAL | VIX Range (7d): 2.02 pts | Last Regime: NORMAL
  2. Date/time stamp (line 2): 4/27/2026 | 10:20 PM
  3. VIX block (lines 3-4): VIX price + VIX Day Hi
  4. Index block (lines 5-7): DJI / IXIC / INX with % change
  5. Equity block (lines 8-9): Total_Equity=16,238 | Daily_PnL=0 | Exposure%=blank
  6. 🧠 Smart Reversal Opportunity table (lines 11-22, 10 rows): Ticker, Name, Price, %DayLow, 10D%, %DayHigh, RR_13W, Stop(6%), Target(10%)
  7. Top 10 table (lines 24-35): Ticker, % Change, Live_Price, Sector, Name
  8. Bottom 10 table (lines 37-48)
  9. 3D % gainers + Compression flags + Momentum Regime (lines 50-61, 10 rows)
  10. VIX history mini-table (lines 63-72): Date, VIX_Close, Max regime touched, Δ vs Prev Day
  11. Regime Change log (lines 74-83)
  12. Top 10 Strongest Upward Momentum view (lines 85-96)
  13. Top 10 High-Scoring High Risk/Reward (lines 98-109)
  14. Top 10 High-Scoring with outlier flags (lines 111-122)
  15. Top 10 highest Vol % (30D) (lines 124-135)
  16. 💥 Final Breakout Formula (lines 137-148)
  17. 🚀 Sector Alpha Breakout (lines 150-161)
  18. 🧘 Quiet Alpha Accumulation (lines 163-174)
  19. 🥇 The Ultimate View (lines 176-187)
  20. Low Volatility Reversal (lines 189-200)
  21. Quiet Alpha (executable trade conclusion) table (lines 202-215)
  22. Sector_Map block embedded (lines 217-235) — YES, sector table IS embedded inline in Daily_Snapshot
  23. Compression Watch (lines 237-255)
  24. more views below

Sector table embedded? YES. The Sector_Map content sits inline within
Daily_Snapshot at lines 217-235 as a ranked-by-perf table.

Top 10 / Bottom 10 structure: present (lines 24-35 / 37-48), 5-col layout:
Ticker, % Change, Live_Price, Sector, Name.


7. Restoration plan for Session 2

Component Current Sheet 1 state (per briefing) Target Sheet 2 state Effort
Momentum_Engine regressed (Flow Strength uniform, AC missing, Sector blank) 56-col full engine; Flow Strength varies 0-91; SACS varies; Sector populated; RS_SPY varies LARGE — must port col-by-col formulas from Sheet 2 to Sheet 1, including the AC/AD/AZ weighted formulas only visible in formula bar
Reference_Rules unknown (likely missing or simplified) hidden tab w/ VIX bands + Regime Multiplier + Lean In / Reversal Watch / Earnings Penalty weights — NOT visible to MCP MEDIUM — Sam must screenshot the tab & re-create it; 1 hour
Snapshot downgraded to ~14 cols 28 cols (ATR-based stops 1×/1.3×/2×, %Risk, Shares, Gate OK/REJECT, One-liner, Regime Multiplier, AutoStop, Risk_Per_Trade, helper col 28) LARGE — 14 missing cols including the One-liner concat + Gate IF + Regime VLOOKUP
execution_playbook unknown 14-col Execution Shortlist + companion Quiet Alpha + Compression Watch views, all pulling from Momentum_Engine MEDIUM — mostly a re-link to Momentum_Engine once that tab is restored
Sector_Map "Proxy ETF" anchor missing full 5-col table (Proxy ETF, Sector Group, Stock Avg %, 3-Day Momentum, Flow Strength) covering 16-17 sector rows SMALL — re-add col A label + 16 rows of mappings
Daily_Snapshot (status unclear from briefing) 24+ stacked views with regime/index/equity header, Top/Bottom 10, VIX history, regime change log, 8+ filter tables, embedded Sector_Map MEDIUM — most of this is QUERY/FILTER on Momentum_Engine; restored automatically once Momentum_Engine + Reference_Rules return

Suggested order:
1. Reference_Rules (manual, from screenshot) → unblocks Snapshot col 21-23 + regime logic everywhere
2. Universe tab integrity check (lines 466-642 export shows it intact w/ 175+ tickers)
3. Sector_Map (5-col rebuild, 16 sectors)
4. Momentum_Engine col-by-col formula port from Sheet 2 (the big one)
5. Snapshot col 8-28 formulas (ATR + risk gate)
6. execution_playbook & Quiet Alpha views (mostly QUERY())
7. Daily_Snapshot → mostly auto-rebuilds once 1-6 done


8. Open questions Sam will need to answer in Session 2 (formula bar required)

These cannot be answered from the Drive MCP markdown export — Sam must open Sheet 2
in browser and copy from the formula bar:

Question Cell to inspect Why it matters
Flow Proxy IF tree (cols AC) — what inputs decide "Accumulating" vs "Rotating" vs "Distributing"? Sheet 2 → Momentum_Engine → AC2 restoration target for Sheet 1 col AC
Flow Strength Index formula (col AD) — weighted composite of what? Sheet 2 → Momentum_Engine → AD2 drives 0-91 values; mobile-Claude flagged this as critical
SACS formula breakdown (col AZ) — full weighted formula Sheet 2 → Momentum_Engine → AZ2 the headline metric; Sam needs to know weights
VSM formula (col AY) Sheet 2 → Momentum_Engine → AY2 risk metric
AQS formula (col BD) Sheet 2 → Momentum_Engine → BD2 composite quality
Snapshot Gate logic (col 19) — full IF chain Sheet 2 → Snapshot → S2 (or wherever col 19 lands) "Trade OK?" vs Settings!B4
Regime Multiplier lookup (col 21) Sheet 2 → Snapshot → U2 (or col 21) references Reference_Rules — confirms tab exists
ATR-Regime AutoStop (col 23) Sheet 2 → Snapshot → W2 combines ATR × multiplier
Reference_Rules full A:B table Sheet 2 → Reference_Rules tab → A1:B40 (or wherever it ends) every threshold/weight Sam tunes
Settings!B4 confirmation (= 2.5%?) Sheet 2 → Settings → B4 risk-gate threshold
Composite Score formula (col AG) Sheet 2 → Momentum_Engine → AG2 drives Action Flag
Action Flag IF tree (col AH) Sheet 2 → Momentum_Engine → AH2 the verdict logic
Outlier Flag formula (col AQ) Sheet 2 → Momentum_Engine → AQ2 "+2σ Upside Outlier" trigger

Source trail

Generated by Claude Code subagent (general-purpose) for Session 17 overnight prep · Opus 4.7 (1M)

Source trail · docs/MIS_MARCH5_FORMULAS.md @ master · rendered 2026-07-02 7:23 PM EDT by scripts/build-docs.py · the .md in the repo is the truth; this page is the phone-readable view