{
 "title": "Rules note",
 "about": "Every rule idea we talk about goes here, with the exact wording, where it came from, and its status. Status: IDEA = written down, not tested; TESTING; NO EDGE = tested, did not hold; WORKS = held on 2 years (both halves) and beats cost; LIVE = in a bot. Tests run on the 30 days first; the 2 years only when you say so. Nothing here is live unless it says LIVE.",
 "rules": [
  {
   "id": "RN-20",
   "name": "Re-cross after a deep V counts as the same deep V",
   "from": "User 11/14, ASST 2025-05-21: 'around 11:03-05 we should have a buy signal at that cross'. The 10:46 deep-V cross was asleep, its reclaim wait was cancelled when EMA9 dipped under at 11:00; the 11:05 cross was only 5 bars under = shallow, so nothing fired.",
   "rule": "If EMA9 dips back under EMA20 for 10 bars or fewer right after a deep-V cross, the next cross counts as part of the same deep V (same waits RN-14 / RN-15 / RN-19).",
   "open": "10 bars is my first setting.",
   "result": "Charts 11/14 (RN-16 off): 5 re-cross buys - ASST 11:06 +2% (the user's mark), REPL 13:05 +2%, ACHR 14:01 -2%, SOUN 11:21 -2%, APLD 2/7 12:46 neither. Not tested on the 30 days yet.",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-19",
   "name": "Never buy while the stock is ASLEEP",
   "from": "User 11/14, APLD 2025-03-11 buy #3 (12:37, shallow + asleep): 'state was asleep, so we should add the rule - dont buy as state is asleep'.",
   "rule": "The bar that triggers a buy must not have the ASLEEP flag. Waits go on while EMA9 stays above EMA20.",
   "open": "Clashes with RN-17 (which waits for a reclaim after a long sleep): with RN-19 on, the RECLAIM bar must also be awake.",
   "result": "Charts 11/14: removed APLD 3/11 12:37 (-2%), UUUU 11:57 (neither) and CRML 11:54 (+2%, asleep the whole reclaim). APPS ~12:20 mark kept: the 12:16 cross bar was already RECLAIM and awake, buy 12:17 (+2%).",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-18",
   "name": "Opening style: after the first 5 bars, RUNNING and EMA9 > EMA20 > EMA50 = buy",
   "from": "User 11/14, UPXI 2025-07-21: no deep V at the open, but right after the first 5 bars state is running and EMA9 > EMA20 > EMA50. A separate entry style.",
   "rule": "The first bar from 9:34 to 9:59 with state RUNNING and EMA9 above both EMA20 and EMA50: buy the next bar open. One per day.",
   "open": "11/14 change (user, APLD 2025-03-11: 'first buy should happen at 9:38, next open after the cross'): was EMA9 > EMA20 > EMA50; EMA20 was still a hair under EMA50 at 9:37, so now only EMA9 has to be above both. UPXI still buys 9:38. Cut-off 10:00 is my choice.",
   "result": "Charts 11/14 on the 20 deep-V days: 16 opening buys - 3 hit +2% first (UPXI 9:38, QUBT 9:35, FJET 9:45), 11 hit -2% first, 2 neither. Not tested on the 30 days yet.",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-17",
   "name": "Shallow cross after 11+ asleep bars: wait for RECLAIM, then buy",
   "from": "User 11/14.",
   "rule": "At an EMA9/EMA20 cross that is not a deep V, if the stock was asleep 11+ bars in a row during the dip, wait for state RECLAIM (no time limit while EMA9 stays above EMA20), buy the next bar open.",
   "open": "'Asleep for >10 bars' read as 11+ asleep bars in a row inside the dip (from EMA9 going under EMA20 to the cross). 11/14 fix: the cross bar itself counts for the reclaim wait.",
   "result": "Charts 11/14 (with RN-19): 2 buys - APPS 12:17 +2% (user's ~12:20 mark), FJET 12:59 -2%.",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-16",
   "name": "At the cross EMA50 must not be falling",
   "from": "User 11/14.",
   "rule": "At the cross, block the buy when EMA50 is lower than 5 bars ago.",
   "open": "'Not falling' read as EMA50 now >= EMA50 5 bars ago.",
   "result": "Charts 11/14 on the 20 deep-V stock-days: deepv_new_rules_entries.pdf (all rules) and deepv_new_rules_entries_no_ema50.pdf (RN-16 off). Not tested on the 30 days yet. Blocks almost every cross: 59 of 72 deep-V / shallow-asleep crosses blocked, winners and losers alike (a deep V almost always has EMA50 still falling at the cross). With it on, almost only the opening entries are left.",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-15",
   "name": "Asleep at the cross: wait for RECLAIM",
   "from": "User 11/14.",
   "rule": "If the stock is ASLEEP at the deep-V cross, wait until the state changes to RECLAIM, buy the next bar open. Cancel if EMA9 drops back under EMA20.",
   "open": "If the cross is both BASING and ASLEEP, this rule wins over RN-14.",
   "result": "Charts 11/14 on the 20 deep-V stock-days: deepv_new_rules_entries.pdf (all rules) and deepv_new_rules_entries_no_ema50.pdf (RN-16 off). Not tested on the 30 days yet. Removed the APPS 14:11 fire (EMA9 went back under before any reclaim) - one of the user's 'should never happen' marks. Also removed SOUN 4/9/25 12:07 (a winner in the old charts).",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-14",
   "name": "BASING at the buy signal: green candle confirm, else wait for 2 green bars",
   "from": "User 11/14.",
   "rule": "If the state is BASING at the deep-V cross: if the cross candle is green, buy the next bar open; if not, wait for 2 green bars in a row, then buy the next bar open. Cancel if EMA9 drops back under EMA20.",
   "open": "'2 green bars' read as 2 in a row.",
   "result": "Charts 11/14 on the 20 deep-V stock-days: deepv_new_rules_entries.pdf (all rules) and deepv_new_rules_entries_no_ema50.pdf (RN-16 off). Not tested on the 30 days yet.",
   "date": "2026-11-14",
   "status": "IDEA"
  },
  {
   "id": "RN-13",
   "date": "2026-11-14",
   "name": "Deep-V restart: main entry = EMA9 crosses EMA20 after a deep V",
   "status": "IDEA",
   "from": "User 11/14: 'lets start the deep-V rules over, the main entry is: enter when the ema9 cross ema20 after a deep v'. Replaces RN-1 as the base; further deep-V rules get added on top one at a time.",
   "rule": "Buy at the next bar open after EMA9 crosses above EMA20 after a deep V. Deep V for now = v1 values: EMA9 under EMA20 for 20+ bars and a dip (60-bar high to the low) of 8+ own candles. Buy window 9:35-15:00. Guards on. No other filters.",
   "open": "Deep-V definition kept at v1 (20 bars, 8 candles) until you change it.",
   "result": "Charts rebuilt 11/14 (deepv_restart_all_signals.pdf, 20 stock-days, every signal marked). Moving the window to 9:35 added no fires on these 20 days: a 20-bar deep V cannot finish much before 10:00. 2-year result for the same rule is RN-1: about random."
  },
  {
   "id": "RN-12",
   "date": "2026-11-13",
   "name": "After a shallow cross, buy when the state changes to RUNNING",
   "status": "TESTING",
   "from": "QUBT 2025-01-24: crosses at 9:59 and 10:12 were too shallow for the deep-V rule (12 and 1 bars under, 4.4 and 4.3 own candles) and nothing bought; price then ran 11.60 to 12.18 by 10:26.",
   "rule": "When EMA9 crosses above EMA20 but the cross is shallow (not a deep V: under 20 bars below, or a dip under 8 own candles), do not buy on the cross itself unless the state is RUNNING. Buy at the next bar open on the first bar where the state is RUNNING (close above VWAP) - the cross bar itself counts. No time limit after the cross, as long as EMA9 stays above EMA20; if EMA9 drops back under EMA20, wait for a new cross. Buy window 9:35-15:00 (at least 5 bars to see how the stock behaves).",
   "open": "Read 'drop below EMA20' as EMA9 going back under EMA20 (the thing that needs a new cross).",
   "result": "30 days (10/5-11/13), first shallow-cross buy per stock-day, guards on: 686 buys, +2% first 32.5% / -2% first 28.4% (diff +4.1), hold60 net +0.00 vs random -0.30. 9:35-10:00: 512 buys diff +1.2 vs random same slot -5.4. 10:00-10:30: 51 buys diff +29.4, net +0.51 (small sample). 10:30-15:00: 123 buys +5.7, net -0.20. Waited 6+ bars after the cross: +13.3; RUNNING on the cross bar: -1.6. QUBT 1/24/25: would buy 9:35 (+2%), 10:06 (-2%), 10:13 (+2%), 11:29 (-2%). 2-year run waits for the user."
  },
  {
   "id": "RN-11",
   "date": "2026-11-13",
   "name": "Looser deep V for the morning",
   "status": "IDEA",
   "from": "QUBT 2025-01-24 10:12 and APPS 9:53: fast morning Vs the deep-V rule is too strict to catch.",
   "rule": "Before about 10:30, accept a cross after 10+ bars under and a 4+ own-candle dip (instead of 20 bars and 8 candles).",
   "open": "Exact morning cut-off and numbers.",
   "result": "Not tested."
  },
  {
   "id": "RN-10",
   "date": "2026-11-13",
   "name": "Price vs EMA50 at the buy",
   "status": "IDEA",
   "from": "Losers PDF with EMA50: all 40 winners and losers bought with EMA50 falling and EMA9 under EMA50, so those cannot block. Cross-during-reclaim losers were a little further above EMA50 (+0.87% vs +0.52%).",
   "rule": "Block cross-during-reclaim buys when the close is more than X% above EMA50.",
   "open": "X to sweep.",
   "result": "20 charts only - hint, not tested."
  },
  {
   "id": "RN-9",
   "date": "2026-11-13",
   "name": "Skip cross-during-reclaim buys before 10:30",
   "status": "IDEA",
   "from": "Cross-during-reclaim charts: 7 of 10 losers bought 10:00-10:22, only 3 of 10 winners before 10:30.",
   "rule": "Cross-during-reclaim entry, buy window 10:30-15:00 instead of 10:00-15:00.",
   "open": "",
   "result": "20 charts only - not tested."
  },
  {
   "id": "RN-8",
   "date": "2026-11-13",
   "name": "Block when resistance is far above (2%+)",
   "status": "IDEA",
   "from": "2-year resistance test: buys with the nearest resistance 2%+ above were the worst group in both years (hold60 net -0.54 / -0.33).",
   "rule": "Reclaim rule, block the buy when the nearest resistance above is 2% or more away.",
   "open": "",
   "result": "Seen inside RN-7 test, not tested on its own."
  },
  {
   "id": "RN-7",
   "date": "2026-11-13",
   "name": "Block the buy if the gap to resistance is under 0.8%",
   "status": "NO EDGE",
   "from": "User rule on top of the reclaim rule.",
   "rule": "Reclaim rule, block when the nearest resistance above (swing levels, open, first-15-min high/low) is under 0.8% away.",
   "open": "",
   "result": "30 days looked good (kept + cross last +13.5 diff). 2 years: kept buys diff +0.8 / +1.5, hold60 net -0.32 / -0.25 = worse than no block (-0.22 / -0.21); the blocked ones held better. Near resistance = smaller moves both ways."
  },
  {
   "id": "RN-6",
   "date": "2026-11-13",
   "name": "Cross during reclaim",
   "status": "NO EDGE (best tilt so far)",
   "from": "Inside the reclaim rule (RN-5): the EMA9/EMA20 cross happens during the reclaim run, not before it.",
   "rule": "RN-5, and the EMA cross bar is at or after the first bar of the run above VWAP.",
   "open": "Exit not built (stop under base low, +1/+2% target, time stop).",
   "result": "2 years: diff +6.0 / +3.2 (+2% first minus -2% first), hold60 net -0.20 / -0.18. Best entry tilt we have, still under the 0.2% cost on a 60-min hold. Charts: cross_during_reclaim_winners_losers.pdf."
  },
  {
   "id": "RN-5",
   "date": "2026-11-13",
   "name": "Reclaim after 6+ basing/asleep bars",
   "status": "NO EDGE",
   "from": "User: 'the state should be reclaim, after it been in an asleep or basing for more the 5 bars', v1 values (SOUN pages).",
   "rule": "State RECLAIM (close above VWAP, first 5 bars of the run, 15 of the 20 bars before under VWAP), at least 6 BASING-or-asleep bars right before, EMA9 > EMA20. Buy next bar open 10:00-15:00. Guards on.",
   "open": "",
   "result": "2 years: diff +1.9 / +1.5, hold60 net -0.22 / -0.21 (random -0.30 / -0.26)."
  },
  {
   "id": "RN-4",
   "date": "2026-11-13",
   "name": "EMA cross with BASING as the gate",
   "status": "NO EDGE",
   "from": "User: use the EMA cross to fire and the basing state to allow the buy.",
   "rule": "EMA9 crosses above EMA20 while the state is BASING; settings swept (EMA gap, range, asleep).",
   "open": "",
   "result": "2 years: quiet bases best (EMAs together <= 0.3 candles: diff +3.5 / +2.7, net -0.10 / -0.17), all below cost. 30 days alone showed nothing."
  },
  {
   "id": "RN-3",
   "date": "2026-11-13",
   "name": "Steep V rises, flat V fades",
   "status": "NO EDGE",
   "from": "User: 'the vs with more vertical angle usually rise, the vs with less angle if rises it will take longer otherwise it fades'.",
   "rule": "Judge deep-V fires by the V angle (own candles per minute).",
   "open": "",
   "result": "2 years: half true - steep Vs move faster both ways (+2 first and -2 first both ~27-30%), flat Vs slower; no edge."
  },
  {
   "id": "RN-2",
   "date": "2026-11-12",
   "name": "APPS marks: first cross 9:53, second ~12:20, never buy with EMAs + VWAP sloping down",
   "status": "IDEA",
   "from": "User marks on APPS 2025-06-25: 9:53 and the 12:16 cross are the right buys, 11:45 is not, the 14:11 fire should never happen.",
   "rule": "Block a cross buy when EMA9, EMA20 and VWAP are all sloping down; allow early (before 10:00) Vs.",
   "open": "3 tests offered, not run.",
   "result": "Not tested."
  },
  {
   "id": "RN-1",
   "date": "2026-11-11",
   "name": "Deep-V EMA cross (core)",
   "status": "NO EDGE (base replaced by RN-13)",
   "from": "Per-stock logic study.",
   "rule": "Buy next bar open after EMA9 crosses above EMA20, EMA9 under EMA20 for 20+ bars, V dip 8+ own candles, 10:00-15:00, guards on.",
   "open": "",
   "result": "2 years: about random; only cross-above-VWAP tilt, below cost."
  }
 ]
}