abyXsmart commited on
Commit
8924c48
·
verified ·
1 Parent(s): de4ca97

Upload 20 files

Browse files
Files changed (4) hide show
  1. Log.md +118 -0
  2. app.py +39 -2
  3. market.js +19 -5
  4. settings_schema.json +174 -43
Log.md CHANGED
@@ -1939,3 +1939,121 @@ the UI still drew the legacy "Conviction N%" verdict.
1939
  ### OTHER BUGS NOTICED — NOT fixed, awaiting user approval (see chat list).
1940
  STATE: requested display/settings/Dockerfile fixes COMPLETE + exported. Pending: user approval on
1941
  the "other bugs" list.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1939
  ### OTHER BUGS NOTICED — NOT fixed, awaiting user approval (see chat list).
1940
  STATE: requested display/settings/Dockerfile fixes COMPLETE + exported. Pending: user approval on
1941
  the "other bugs" list.
1942
+
1943
+ ## SESSION 19 (new agent) — Phase 0 read COMPLETE (AWAITING the user's issue list)
1944
+ Read fully this session: Log.md (S1–S18, all 1941 lines), STRATEGY_DETAILED_SPEC.txt
1945
+ (core v6.0 + v6.1/v7.0/v7.2/v7.3/v7.5 addenda), SKILL.md (v7.5.0), IMPLEMENTATION_PLAN_v7.5.md
1946
+ (WS-1…WS-8 incl. WS-7 entry-model recognition + WS-8 survival enhancements).
1947
+
1948
+ CONFIRMED understanding (no code changed yet):
1949
+ - 5-stage lock-forward SMC machine on CLOSED 15m candles (decide bars[-2], never bars[-1]):
1950
+ 0 Zone (impulse+FVG) -> 1 first-liquidity lock + BoS close -> 2 sweep close past liquidity
1951
+ -> 3 FVG interaction -> 4 PREDICTIVE confluence/entry-model screen -> 5 verified entry.
1952
+ - v7.5 stack as built S14/16/18: WS-1 _send_entry_alert (guard stage in (4,5)), WS-2 setup-
1953
+ anchored draw_chart, WS-3 single DYNAMIC structural TP (_dynamic_tp, BE arm, additive DB
1954
+ ALTER tp), WS-4 zone-anchored persisted footprint (cum delta + Min1 backbone + persisted OI),
1955
+ WS-5 confluence-STACK promotion (N-of-7 facts, adaptive confirm, no HTF/BTC hard gate),
1956
+ WS-6 REVERSIBLE guardian terminal latch (clears on reclaim), WS-7 classify_entry_model
1957
+ (6 models + grade A/B/C + model SL/entry), WS-8 cost-aware net-R + calibration (+SMT/session/
1958
+ heat/cooldown toggles default off). ENGINE_VERSION="7.5".
1959
+ - Persistence /data: SQLite fvgdelta.db (trades) + state.json (live) + footprints + trade/inval
1960
+ snapshots; additive+atomic, restart-safe. Telegram via Deno proxy TELEGRAM_API_BASE. HF Docker SDK.
1961
+ - S18 rewired the 3 display surfaces (/api/state serializer, Stage4 panel, Stage5 panel) to the
1962
+ new confluence/grade/footprint reads + added the two settings sections.
1963
+
1964
+ PROJECT FILES located at web/FVG_project/ (extracted from the user's uploaded zip
1965
+ FVG-Delta_Crypto_Signal_Core_v7.5-3.zip). app.py = 7374 lines.
1966
+
1967
+ STATUS: understanding confirmed. NOT editing yet — user will explain the specific bugs/issues
1968
+ they found ("works but little bugs don't bring the result I want"). Will record each fix here
1969
+ as I build, and paste the file path after every edit per the modular rule.
1970
+
1971
+ ## SESSION 19 — DIAGNOSIS of 3 user issues (NO code changed; awaiting go-ahead)
1972
+ Cycle cadence: scan_interval_seconds=30 (floor max(5,..)). Decisions only on closed 15m.
1973
+
1974
+ ISSUE A — "inflow drop / fewer pairs sorted to stages": FIX IS STILL PRESENT.
1975
+ - S5 had narrowed active_picks to stage 1-5 only. v7.1 DELIBERATELY re-added stage-0 zone-
1976
+ holders (current code L5822-5824: stage in (1,2,3,4,5) OR (stage==0 and zone is not None)).
1977
+ So the inflow-restoring re-inclusion is intact — NOT reverted.
1978
+ - Made safe by BARS_CACHE (L3572-3617, TTL bars_cache_ttl_seconds=75s): re-checked stage 0-3
1979
+ holders reuse a recent kline pull; only committed stage-4/5 force_fresh. Cache present + correct.
1980
+ => the throttle S5 feared is genuinely mitigated; re-inclusion is safe.
1981
+ - CONCLUSION: no bug in active_picks. A real inflow drop is driven by the UNIVERSE/EVICTION
1982
+ levers, not this logic: universe_top_n, universe_min_turnover (load_symbols L3550-3556),
1983
+ scan_shards (L107), and _prune_states(max_idle_seconds=7200) (L5850) which evicts idle
1984
+ Stage-0 states each cycle. Need user's CURRENT setting values to say which one shrank inflow.
1985
+
1986
+ ISSUE B — spot-only / non-futures-tradable pairs in scan: CONFIRMED, real gap.
1987
+ - load_symbols (L3513-3517) filters ONLY quote=="USDT" AND state==0. LIVE check of
1988
+ contract.mexc.com/api/v1/contract/detail: ALL 923 contracts have state==0 -> state filters
1989
+ NOTHING. isHidden all False, preMarket all False.
1990
+ - DISCRIMINATING FLAG FOUND: apiAllowed -> False for 18 contracts (listed as futures but NOT
1991
+ API-tradable; matches the "couldn't trade / only spot" pair). Engine currently INCLUDES them.
1992
+ - Tokenized equities/commodities: better handled by type==2 / typeLabel==2 (182 contracts:
1993
+ *STOCK_USDT, XAU, SOXL...) than the current substring universe_exclude_contains (misses XAU/SOXL).
1994
+ - RECOMMENDED FIX (not yet applied): in load_symbols require x.get("apiAllowed") is True, AND
1995
+ prefer type==1 (standard perp) to drop tokenized-stock contracts robustly. Additive, low-risk.
1996
+
1997
+ ISSUE C — "Browser Alerts toggle shows On but no notification": MECHANISM OK, behavior misleading.
1998
+ - Wiring intact: refreshDashboard calls window.maybeNotify(s.alerts) each poll (app.py L7363);
1999
+ backend emits type "stage5" (L5351/5361/5363) + lifecycle tp/sl/breakeven/be_arm (L5404/5411).
2000
+ - ROOT CAUSE 1 (by design): popup NOTIFY_TYPES = ['stage5','be_arm','tp','sl','breakeven']
2001
+ (market.js L85). Popups fire ONLY on a real Stage-5 entry + lifecycle — NOT on stage4/verdict.
2002
+ In testing with no live Stage-5 event, zero popups is expected, looks broken.
2003
+ - ROOT CAUSE 2: toggling ON when OS permission was ALREADY granted shows NO confirmation
2004
+ notification (the "Browser Alerts Enabled" toast only fires right after a fresh permission
2005
+ grant, L129). + first poll suppressed (first=!primed; if(first)return; L140-141) + localStorage
2006
+ lastKey dedup -> no immediate proof it works.
2007
+ - ROOT CAUSE 3 (possible): Notifications need a secure context and are blocked inside a cross-
2008
+ origin iframe by permissions-policy (HF direct domain = OK; embedded preview = may be blocked).
2009
+ - RECOMMENDED FIX (not yet applied): on toggle-ON (already-granted) fire an immediate confirm
2010
+ notification so the user gets instant feedback; optionally add a "Send test notification"
2011
+ action; optionally add 'stage4' to NOTIFY_TYPES if user wants a popup on Stage-4 arrival.
2012
+ STATE: diagnosis only. Awaiting user decision on B + C (and current universe settings for A).
2013
+
2014
+ ## SESSION 19 — BUILD COMPLETE: D2 + D3 + B1 + C1 (no app break; all reversible)
2015
+ Implemented + tested green. Defaults chosen so behavior is improved-but-safe; every change
2016
+ is toggleable from the Settings page (generic schema → auto-render → hot-reload).
2017
+
2018
+ B1 — futures-tradable universe (app.py load_symbols ~L3510):
2019
+ New CFG: require_api_tradable (REQUIRE_API_TRADABLE, default true),
2020
+ exclude_tokenized_stocks (EXCLUDE_TOKENIZED_STOCKS, default true).
2021
+ Skips apiAllowed==False (spot-only / non-API contracts) and type!=1 (tokenized
2022
+ equities/commodities). LIVE verified: universe 652 -> 606; 0 tokenized leaked; the
2023
+ spot-only pairs (JOTCHUA/KINS/NOCK/BUTTCOIN_USDT) are gone. Toggle off => legacy universe.
2024
+
2025
+ D3 — stale forming-setup eviction (app.py _prune_states ~L5860):
2026
+ New CFG: forming_eviction_enabled (FORMING_EVICTION_ENABLED, default true),
2027
+ forming_stale_ttl_seconds (FORMING_STALE_TTL_SECONDS, default 21600=6h).
2028
+ A Stage-1/2 setup that hasn't ADVANCED within the window is dropped so the symbol slot
2029
+ frees and the pair re-sorts from scratch next scan (can sort straight to Stage 2/3/4 via
2030
+ the existing probe-and-adopt multi-zone sort). Stage>=3 committed setups NEVER evicted.
2031
+ Note: direct-to-stage-3/4 sorting was ALREADY working (confirmed S19 live test) — no
2032
+ change needed there; eviction just gives fresh setups a chance to claim the slot sooner.
2033
+
2034
+ D2 — detection gates now tunable from Settings (settings_schema.json only; CFG already read
2035
+ these env keys, so no app.py CFG change needed):
2036
+ + universe: REQUIRE_API_TRADABLE, EXCLUDE_TOKENIZED_STOCKS (B1 toggles)
2037
+ + impulse: IMPULSE_MIN_DIR_BODY_RATIO, IMPULSE_MIN_CONSEC_DISPLACEMENT,
2038
+ RETRACEMENT_MIN_FVG_GAP_ATR, RETRACEMENT_FVG_CLEARANCE_ATR (loosen => more
2039
+ Stage 1-4 inflow; presets loose/default/strict)
2040
+ + timing : FORMING_EVICTION_ENABLED, FORMING_STALE_TTL_SECONDS (D3 controls)
2041
+ Existing ZONE_TTL_SECONDS / MAX_ZONE_AGE_CANDLES already expose the "lower Stage 1/2 TTL"
2042
+ lever; user can drop to 12h from Settings.
2043
+
2044
+ C1 — background OS notifications (market.js):
2045
+ NOTIFY_TYPES -> ['stage4','stage5','tp','sl','breakeven']. OS notification now fires ONLY
2046
+ when document.hidden (tab backgrounded / page left) — no popups while actively watching.
2047
+ Per-type body text (qualified setup / verified entry / trade closed). Toggling Browser
2048
+ Alerts ON when permission already granted now fires an instant "Enabled" confirmation so
2049
+ the user gets proof it works. Sound behavior unchanged.
2050
+
2051
+ TESTS (all green): py_compile app.py OK; node --check market.js OK; settings_schema.json valid
2052
+ JSON. Boot import OK; new CFG keys typed correctly; all 6 new schema fields present. LIVE
2053
+ load_symbols B1 verified (above). TestClient: / /api/state /settings /api/settings /trades
2054
+ /health all 200; settings SAVE (applied=2, hot-applied) + RESET (reverts to defaults) verified
2055
+ => fully reversible. Did NOT touch Stage 0-3 detection math, _rebase_indices, entry/SL/TP/BE,
2056
+ UI aesthetics, README HF metadata, flat-file rule.
2057
+
2058
+ EXPORT: output/FVG-Delta Crypto Signal Core v7.5.zip (flat files; .db/.bak/wav/pycache/source
2059
+ zip excluded).
app.py CHANGED
@@ -193,6 +193,21 @@ def build_cfg() -> dict:
193
  "NVIDIA_USDT,TSLA_USDT,AAPL_USDT,MSFT_USDT,AMZN_USDT,GOOGL_USDT,META_USDT,"
194
  "MSTR_USDT,COIN_USDT,NFLX_USDT,AMD_USDT,SPCX_USDT,SPACEX_USDT,OPENAI_USDT",
195
  ).strip(),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  # v7.5 WS-3 SINGLE STRUCTURAL TP: one achievable, structurally-placed target
197
  # (nearest opposing liquidity beyond entry) with an RR floor so it is never sub-1R.
198
  "tp_min_rr": max(0.5, _f("TP_MIN_RR", 1.5)),
@@ -3510,10 +3525,23 @@ async def load_symbols(session: aiohttp.ClientSession) -> List[str]:
3510
  detail_syms = []
3511
  max_lev: Dict[str, int] = {}
3512
  price_scale: Dict[str, int] = {}
 
 
3513
  for x in items:
3514
  symbol = str(x.get("symbol", "")).strip()
3515
  quote = str(x.get("quoteCoin", "")).upper()
3516
  state = int(x.get("state", 1))
 
 
 
 
 
 
 
 
 
 
 
3517
  if symbol and quote == "USDT" and state == 0 and not _excluded(symbol.upper()):
3518
  detail_syms.append(symbol)
3519
  try:
@@ -5860,9 +5888,18 @@ def _prune_states(max_idle_seconds: int = 7200) -> int:
5860
  now = int(time.time())
5861
  drop = [sym for sym, s in STATES.items()
5862
  if s.stage == 0 and (now - int(s.last_update_ts or 0)) > max_idle_seconds]
5863
- for sym in drop:
 
 
 
 
 
 
 
 
 
5864
  STATES.pop(sym, None)
5865
- return len(drop)
5866
 
5867
 
5868
  def stage_buckets() -> Dict[int, List[SetupState]]:
 
193
  "NVIDIA_USDT,TSLA_USDT,AAPL_USDT,MSFT_USDT,AMZN_USDT,GOOGL_USDT,META_USDT,"
194
  "MSTR_USDT,COIN_USDT,NFLX_USDT,AMD_USDT,SPCX_USDT,SPACEX_USDT,OPENAI_USDT",
195
  ).strip(),
196
+ # ---- B1: only scan pairs that are genuinely FUTURES-TRADABLE via API. MEXC lists
197
+ # some contracts that are spot-only / not API-tradable (apiAllowed=False) and a whole
198
+ # tokenized-equity/commodity family flagged type==2 (XAU, *STOCK, SOXL...). These are
199
+ # excluded by exchange metadata (robust) rather than by name substrings (which miss
200
+ # XAU/SOXL). Toggle off to revert to the legacy name-only universe.
201
+ "require_api_tradable": _b("REQUIRE_API_TRADABLE", True),
202
+ "exclude_tokenized_stocks": _b("EXCLUDE_TOKENIZED_STOCKS", True),
203
+ # ---- D3: stale FORMING-setup eviction. A symbol holds ONE zone; a pair stuck at
204
+ # Stage 1/2 occupies that slot until it invalidates or hits zone TTL (24h), so a
205
+ # fresher, better setup on the SAME pair can't surface. When enabled, a Stage-1/2
206
+ # setup that has NOT advanced a stage within this many seconds is dropped so the
207
+ # symbol re-sorts from scratch next scan (possibly straight into Stage 2/3/4).
208
+ # Committed setups (Stage >= 3) are NEVER evicted. Set 0 / toggle off to disable.
209
+ "forming_eviction_enabled": _b("FORMING_EVICTION_ENABLED", True),
210
+ "forming_stale_ttl_seconds": max(0, _i("FORMING_STALE_TTL_SECONDS", 21600)), # 6h
211
  # v7.5 WS-3 SINGLE STRUCTURAL TP: one achievable, structurally-placed target
212
  # (nearest opposing liquidity beyond entry) with an RR floor so it is never sub-1R.
213
  "tp_min_rr": max(0.5, _f("TP_MIN_RR", 1.5)),
 
3525
  detail_syms = []
3526
  max_lev: Dict[str, int] = {}
3527
  price_scale: Dict[str, int] = {}
3528
+ require_api = CFG.get("require_api_tradable", True)
3529
+ drop_stocks = CFG.get("exclude_tokenized_stocks", True)
3530
  for x in items:
3531
  symbol = str(x.get("symbol", "")).strip()
3532
  quote = str(x.get("quoteCoin", "")).upper()
3533
  state = int(x.get("state", 1))
3534
+ # B1: skip contracts that are listed but not actually API/futures-tradable.
3535
+ if require_api and (x.get("apiAllowed") is False):
3536
+ continue
3537
+ # B1: skip tokenized equities/commodities (MEXC flags these type==2; standard
3538
+ # perps are type==1). Robust where the name substring filter misses XAU/SOXL.
3539
+ if drop_stocks:
3540
+ try:
3541
+ if int(x.get("type", 1)) != 1:
3542
+ continue
3543
+ except Exception:
3544
+ pass
3545
  if symbol and quote == "USDT" and state == 0 and not _excluded(symbol.upper()):
3546
  detail_syms.append(symbol)
3547
  try:
 
5888
  now = int(time.time())
5889
  drop = [sym for sym, s in STATES.items()
5890
  if s.stage == 0 and (now - int(s.last_update_ts or 0)) > max_idle_seconds]
5891
+ # D3: stale FORMING-setup eviction. A Stage-1/2 setup that hasn't ADVANCED a stage
5892
+ # within forming_stale_ttl_seconds is dropped so its symbol slot frees up and the
5893
+ # pair re-sorts from scratch next scan. Committed setups (Stage >= 3) are protected.
5894
+ if CFG.get("forming_eviction_enabled", False):
5895
+ stale_ttl = CFG.get("forming_stale_ttl_seconds", 0)
5896
+ if stale_ttl > 0:
5897
+ for sym, s in STATES.items():
5898
+ if s.stage in (1, 2) and (now - int(s.stage_since_ts or 0)) > stale_ttl:
5899
+ drop.append(sym)
5900
+ for sym in set(drop):
5901
  STATES.pop(sym, None)
5902
+ return len(set(drop))
5903
 
5904
 
5905
  def stage_buckets() -> Dict[int, List[SetupState]]:
market.js CHANGED
@@ -82,7 +82,11 @@
82
  // v7.0: popup browser notifications fire for Stage 5 (verified entry) + its trade
83
  // lifecycle. The alert SOUND additionally fires on Stage 4 arrival (qualified setup),
84
  // so the audio cue covers Stage 4 -> Stage 5 -> Trade History outcomes.
85
- var NOTIFY_TYPES=['stage5','be_arm','tp','sl','breakeven'];
 
 
 
 
86
  // v7.4: sound fires ONLY on the transitions the user asked for — a pair reaching
87
  // Stage 4, Stage 4 -> Stage 5, Stage 5 -> Trade History (terminal SL/TP/Break-even),
88
  // and whenever the Stage 4 OR Stage 5 verdict chip changes. The break-even arm (an intermediate
@@ -126,8 +130,12 @@
126
  Notification.requestPermission().then(function(p){
127
  if(p!=='granted'){NOTIF=false;localStorage.setItem('fvg_notif','0');}
128
  paintNotif();
129
- if(p==='granted'){try{new Notification('FVG-Delta · Browser Alerts Enabled',{body:'You will be notified on Stage 5 verified entries.'});}catch(e){}}
130
  });
 
 
 
 
131
  }
132
  };
133
  window.maybeNotify=function(alerts){
@@ -143,10 +151,16 @@
143
  // Sound fires for Stage 4 / Stage 5 / trade-history outcomes whenever sound is on
144
  // (independent of the popup opt-in), per the configured Browser Alert Sound setting.
145
  playAlertSound();
146
- // Popup notification stays Stage 5 + lifecycle only and needs the user opt-in.
147
- if(NOTIF && NOTIFY_TYPES.indexOf(ttype)>=0 && ('Notification' in window) && Notification.permission==='granted'){
 
 
 
 
 
 
148
  try{new Notification('FVG-Delta · '+titleWords(top.type)+' · '+(top.symbol||''),
149
- {body:normDir(top.dir)+' verified entry — open the dashboard for full details.'});}catch(e){}
150
  }
151
  };
152
 
 
82
  // v7.0: popup browser notifications fire for Stage 5 (verified entry) + its trade
83
  // lifecycle. The alert SOUND additionally fires on Stage 4 arrival (qualified setup),
84
  // so the audio cue covers Stage 4 -> Stage 5 -> Trade History outcomes.
85
+ // C1: OS notifications fire for a new qualified setup (Stage 4), a verified entry
86
+ // (Stage 5) and trade-history outcomes (TP/SL/Break-even). They are shown ONLY when
87
+ // the dashboard tab is hidden/backgrounded (document.hidden) — no popups while you
88
+ // are actively watching the live board.
89
+ var NOTIFY_TYPES=['stage4','stage5','tp','sl','breakeven'];
90
  // v7.4: sound fires ONLY on the transitions the user asked for — a pair reaching
91
  // Stage 4, Stage 4 -> Stage 5, Stage 5 -> Trade History (terminal SL/TP/Break-even),
92
  // and whenever the Stage 4 OR Stage 5 verdict chip changes. The break-even arm (an intermediate
 
130
  Notification.requestPermission().then(function(p){
131
  if(p!=='granted'){NOTIF=false;localStorage.setItem('fvg_notif','0');}
132
  paintNotif();
133
+ if(p==='granted'){try{new Notification('FVG-Delta · Browser Alerts Enabled',{body:'You will be notified when the tab is in the background.'});}catch(e){}}
134
  });
135
+ } else if(NOTIF && ('Notification' in window) && Notification.permission==='granted'){
136
+ // Already-granted: give instant proof the toggle works (the only feedback the
137
+ // user gets, since real alerts fire only when the tab is hidden).
138
+ try{new Notification('FVG-Delta · Browser Alerts Enabled',{body:'You will be notified when the tab is in the background.'});}catch(e){}
139
  }
140
  };
141
  window.maybeNotify=function(alerts){
 
151
  // Sound fires for Stage 4 / Stage 5 / trade-history outcomes whenever sound is on
152
  // (independent of the popup opt-in), per the configured Browser Alert Sound setting.
153
  playAlertSound();
154
+ // OS notification: needs opt-in + permission, AND only fires when the tab is hidden
155
+ // (you asked to be notified when you've left the page, not popped at while watching).
156
+ if(NOTIF && NOTIFY_TYPES.indexOf(ttype)>=0 && document.hidden
157
+ && ('Notification' in window) && Notification.permission==='granted'){
158
+ var b;
159
+ if(ttype==='stage4') b=normDir(top.dir)+' qualified setup — screening for entry.';
160
+ else if(ttype==='stage5') b=normDir(top.dir)+' verified entry — open the dashboard for full details.';
161
+ else b=normDir(top.dir)+' '+titleWords(top.type)+' — trade closed, see Trade History.';
162
  try{new Notification('FVG-Delta · '+titleWords(top.type)+' · '+(top.symbol||''),
163
+ {body:b});}catch(e){}
164
  }
165
  };
166
 
settings_schema.json CHANGED
@@ -359,12 +359,26 @@
359
  "type": "text",
360
  "default": "STOCK",
361
  "help": "Comma-separated substrings; any symbol containing one is excluded (catches the whole tokenized-equity family in one rule)."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  }
363
  ]
364
  },
365
  {
366
  "id": "impulse",
367
- "title": "Strategy · Impulse & FVG",
368
  "summary": "Strictness of the impulse, fair-value-gap and liquidity detection that opens a setup.",
369
  "fields": [
370
  {
@@ -479,13 +493,101 @@
479
  "value": 10
480
  }
481
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
482
  }
483
  ]
484
  },
485
  {
486
  "id": "timing",
487
- "title": "Strategy · Stage Timing",
488
- "summary": "How long forming setups live before they expire. Stages 3, 4 and 5 never expire on age — only on invalidation or trade outcome.",
489
  "fields": [
490
  {
491
  "key": "ZONE_TTL_SECONDS",
@@ -530,6 +632,35 @@
530
  "value": 192
531
  }
532
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
533
  }
534
  ]
535
  },
@@ -684,15 +815,15 @@
684
  },
685
  {
686
  "id": "conviction",
687
- "title": "Stage 4 · Pre-Entry Conviction",
688
- "summary": "Stage-4 brain. NOTE (v7.5): promotion is now driven by the Smart Filter (confluence count + entry model) in the section below. The conviction SCORE and the weights here are DISPLAY-ONLY — they shape the conviction number/wording shown on the dashboard, NOT whether a setup promotes. The one knob that still gates is CONVICTION_ENABLED (off = revert to the Legacy Filter Stack).",
689
  "fields": [
690
  {
691
  "key": "CONVICTION_ENABLED",
692
  "label": "Predictive Conviction (Master)",
693
  "type": "toggle",
694
  "default": true,
695
- "help": "Master switch for the v7.5 Smart Filter brain. ON (default) = confluence-stack + entry-model promotion. OFF = revert to the Legacy Filter Stack (weighted score). Master switch. On (default) uses the v7.5 predictive in-zone conviction engine for Stage 4 to 5 promotion — it studies displacement, zone quality, order-flow absorption and the liquidity-sweep / reclaim before price leaves the zone. Off reverts to the legacy reactive Filter Stack below. There is no longer a hard HTF + BTC gate: HTF is a soft lean, and BTC only vetoes when it is actively impulsing against the setup on its latest closed candle."
696
  },
697
  {
698
  "key": "CONVICTION_PROMOTE_THRESHOLD",
@@ -700,7 +831,7 @@
700
  "type": "int",
701
  "unit": "score (0-100)",
702
  "default": 70,
703
- "help": "DISPLAY-ONLY (v7.5): the score at which the dashboard wording flips toward 'Promotes'. It no longer controls promotion — the Smart Filter's confluence count does. Tune only to change how the conviction number reads.",
704
  "presets": [
705
  {
706
  "label": "60 (Aggressive)",
@@ -762,15 +893,15 @@
762
  },
763
  {
764
  "key": "C_W_ALIGN",
765
- "label": "Weight · E1 HTF Lean",
766
  "type": "int",
767
  "unit": "weight",
768
  "default": 22,
769
- "help": "DISPLAY-ONLY (v7.5): weight in the shown conviction score; does not affect promotion (confluence-count driven). Relative weight of the E1 chip: higher-timeframe trend as a SOFT lean (v7.5 — no longer a hard gate). Aligned HTF (and 4H agreement) adds tailwind; opposing HTF only trims conviction so valid countertrend reactions off fresh gaps can still promote. Weights are relative and auto-normalised."
770
  },
771
  {
772
  "key": "C_W_ZONE",
773
- "label": "Weight · E2 Zone + OB + P/D",
774
  "type": "int",
775
  "unit": "weight",
776
  "default": 16,
@@ -778,7 +909,7 @@
778
  },
779
  {
780
  "key": "C_W_FLOW",
781
- "label": "Weight · E3 Order Flow",
782
  "type": "int",
783
  "unit": "weight",
784
  "default": 20,
@@ -786,7 +917,7 @@
786
  },
787
  {
788
  "key": "C_W_MONEY",
789
- "label": "Weight · E4 New Money (OI)",
790
  "type": "int",
791
  "unit": "weight",
792
  "default": 16,
@@ -794,15 +925,15 @@
794
  },
795
  {
796
  "key": "C_W_LIQ",
797
- "label": "Weight · E8 Liquidity Sweep",
798
  "type": "int",
799
  "unit": "weight",
800
  "default": 10,
801
- "help": "DISPLAY-ONLY (v7.5): weight in the shown conviction score; does not affect promotion (confluence-count driven). Relative weight of the E8 chip (v7.5): liquidity sweep / reclaim. Resting stops beyond the SL are treated as FUEL — the engine expects the stop-hunt and a wick-through-then-reclaim of the stop is the highest-confidence enter-now tell, rather than an invalidation. Weights are relative and auto-normalised."
802
  },
803
  {
804
  "key": "C_W_LTF",
805
- "label": "Weight · E6 LTF Reaction",
806
  "type": "int",
807
  "unit": "weight",
808
  "default": 12,
@@ -810,7 +941,7 @@
810
  },
811
  {
812
  "key": "C_W_VITALITY",
813
- "label": "Weight · E7 Market Vitality",
814
  "type": "int",
815
  "unit": "weight",
816
  "default": 4,
@@ -908,8 +1039,8 @@
908
  },
909
  {
910
  "id": "stage4_smart_v75",
911
- "title": "Stage 4 · Smart Filter (v7.5)",
912
- "summary": "The v7.5 promotion brain. Promotion is now driven by a COUNT of discrete leading confluence facts (of 7) plus a recognised entry model — not the blended conviction % (which is now display-only). Tune how many facts are required and how each entry model is detected.",
913
  "fields": [
914
  {
915
  "key": "CONVICTION_MIN_CONFLUENCE",
@@ -941,7 +1072,7 @@
941
  "unit": "of 7 facts",
942
  "default": 6,
943
  "step": 1,
944
- "help": "At or above this count, a decisive trigger (sweep+reclaim, strong entry model, absorption, or LTF break-of-structure) promotes IMMEDIATELY without waiting for confirmation cycles — so you ride the start of the move.",
945
  "presets": [
946
  {
947
  "label": "5",
@@ -1017,7 +1148,7 @@
1017
  "unit": "ATR",
1018
  "default": 1.0,
1019
  "step": 0.1,
1020
- "help": "Minimum candle body (in ATRs) for the impulse-reclaim entry model — the reclaim candle must show real commitment, not a weak tap.",
1021
  "presets": [
1022
  {
1023
  "label": "0.8",
@@ -1083,7 +1214,7 @@
1083
  },
1084
  {
1085
  "id": "footprint_v75",
1086
- "title": "Order Flow · Anchored Footprint (v7.5)",
1087
  "summary": "The zone-anchored footprint replaces the old ~8-second tape snapshot (the root of chip jitter). It accumulates signed Min1 delta + deals + OI at the FVG zone across the setup's life and is restart-safe. These knobs control how it samples and when its read is trusted.",
1088
  "fields": [
1089
  {
@@ -1212,15 +1343,15 @@
1212
  },
1213
  {
1214
  "id": "filters",
1215
- "title": "Filter Stack · Legacy (Stage 4→5)",
1216
- "summary": "LEGACY v6.1 promotion path. These knobs ONLY take effect when 'Pre-Entry Conviction' is turned OFF (CONVICTION_ENABLED=false). With the default v7.5 build the Smart Filter (confluence stack + entry model) decides promotion and this whole section does nothing — leave it as-is unless you deliberately revert to the old weighted-score gate.",
1217
  "fields": [
1218
  {
1219
  "key": "FILTERS_ENABLED",
1220
  "label": "Master Promotion Switch",
1221
  "type": "toggle",
1222
  "default": true,
1223
- "help": "⚠️ Master switch for ALL Stage-4→5 promotion. Turning this OFF stops EVERY promotion — no setup will ever reach Stage 5 (Verified Entry) and no entry alerts fire, regardless of the Smart Filter settings. Keep ON for live signals."
1224
  },
1225
  {
1226
  "key": "SCORE_PROMOTE_THRESHOLD",
@@ -1246,42 +1377,42 @@
1246
  },
1247
  {
1248
  "key": "FILTER_HTF_ENABLED",
1249
- "label": "Gate · Higher-Timeframe Bias",
1250
  "type": "toggle",
1251
  "default": true,
1252
  "help": "Compulsory gate: the 1H/4H trend must agree with the setup direction."
1253
  },
1254
  {
1255
  "key": "FILTER_BTC_ENABLED",
1256
- "label": "Gate · Bitcoin Correlation",
1257
  "type": "toggle",
1258
  "default": true,
1259
  "help": "Compulsory gate: Bitcoin's trend must not be fighting the setup."
1260
  },
1261
  {
1262
  "key": "FILTER_VOLUME_ENABLED",
1263
- "label": "Gate · Volume",
1264
  "type": "toggle",
1265
  "default": true,
1266
  "help": "Reward setups with supportive volume."
1267
  },
1268
  {
1269
  "key": "FILTER_PD_ENABLED",
1270
- "label": "Gate · Premium / Discount",
1271
  "type": "toggle",
1272
  "default": true,
1273
  "help": "Reward entries taken from the favourable half of the range (discount for longs, premium for shorts)."
1274
  },
1275
  {
1276
  "key": "FILTER_REGIME_ENABLED",
1277
- "label": "Gate · Volatility Regime",
1278
  "type": "toggle",
1279
  "default": true,
1280
  "help": "Reward expanding-volatility conditions where displacement is more reliable."
1281
  },
1282
  {
1283
  "key": "FILTER_CONFIRM_ENABLED",
1284
- "label": "Gate · Confirmation Body",
1285
  "type": "toggle",
1286
  "default": true,
1287
  "help": "Reject weak doji-like confirmation candles."
@@ -1309,7 +1440,7 @@
1309
  },
1310
  {
1311
  "key": "FILTER_WEIGHT_HTF",
1312
- "label": "Weight · Higher-Timeframe Bias",
1313
  "type": "int",
1314
  "unit": "weight",
1315
  "default": 30,
@@ -1317,7 +1448,7 @@
1317
  },
1318
  {
1319
  "key": "FILTER_WEIGHT_BTC",
1320
- "label": "Weight · Bitcoin Correlation",
1321
  "type": "int",
1322
  "unit": "weight",
1323
  "default": 15,
@@ -1325,7 +1456,7 @@
1325
  },
1326
  {
1327
  "key": "FILTER_WEIGHT_VOLUME",
1328
- "label": "Weight · Volume",
1329
  "type": "int",
1330
  "unit": "weight",
1331
  "default": 25,
@@ -1333,7 +1464,7 @@
1333
  },
1334
  {
1335
  "key": "FILTER_WEIGHT_PD",
1336
- "label": "Weight · Premium / Discount",
1337
  "type": "int",
1338
  "unit": "weight",
1339
  "default": 20,
@@ -1341,7 +1472,7 @@
1341
  },
1342
  {
1343
  "key": "FILTER_WEIGHT_REGIME",
1344
- "label": "Weight · Volatility Regime",
1345
  "type": "int",
1346
  "unit": "weight",
1347
  "default": 10,
@@ -1349,7 +1480,7 @@
1349
  },
1350
  {
1351
  "key": "FILTER_WEIGHT_CONFIRM",
1352
- "label": "Weight · Confirmation Body",
1353
  "type": "int",
1354
  "unit": "weight",
1355
  "default": 10,
@@ -1359,7 +1490,7 @@
1359
  },
1360
  {
1361
  "id": "guardian",
1362
- "title": "Stage 5 · Trade Guardian",
1363
  "summary": "The post-entry conviction layer. After a verified entry is live, the Guardian reads live order flow (Open Interest, funding, Cumulative Volume Delta) and lower-timeframe structure to score whether the trade still has fuel, and issues short advisory verdicts. Its only terminal verdict, Close Before Reversal, latches once and never flips.",
1364
  "fields": [
1365
  {
@@ -1467,7 +1598,7 @@
1467
  },
1468
  {
1469
  "id": "stability",
1470
- "title": "Stage 5 · Chip Stability",
1471
  "summary": "Steadies the live Stage-5 Guardian read. The Drive (D1-D5) and Risk (R1-R6) chips used to flip on every raw MEXC tick, which looked like randomness. Each chip's status now only changes after the new state holds for a set number of cycles. The terminal 'Close Before Reversal' latch also gets a retrace-vs-reversal classifier so a healthy pullback is never mistaken for a reversal.",
1472
  "fields": [
1473
  {
@@ -1504,13 +1635,13 @@
1504
  "label": "Retrace vs Reversal Guard",
1505
  "type": "toggle",
1506
  "default": true,
1507
- "help": "On (default) a shallow pullback into a defended zone on light volume with order flow still net-favourable and no lower-timeframe change-of-character is treated as continuation and can never latch the terminal 'Close Before Reversal' verdict — only a structurally confirmed reversal can. Off lets the raw latch fire."
1508
  }
1509
  ]
1510
  },
1511
  {
1512
  "id": "verdict",
1513
- "title": "Stage 5 · Verdict Stability",
1514
  "summary": "Controls how the Guardian's advisory verdict behaves over time. The Drive and Risk chips already react tick by tick; the verdict sits above them as a calmer, strategic read that tracks where price is in the trade journey (entry zone, toward the target, at the target). These settings keep that message steady when nothing meaningful changes, while still warning fast when danger rises.",
1515
  "fields": [
1516
  {
@@ -1628,7 +1759,7 @@
1628
  {
1629
  "id": "survival",
1630
  "title": "Survival Enhancements (v7.5)",
1631
- "summary": "Quant-desk additions that decide whether the engine survives live, not just looks good in screenshots. Cost-Aware Expectancy and Calibration are recommended on from day one — they turn a paper plus-R into the honest, fee-and-funding-adjusted number and learn which reads actually win. The edge gates (SMT divergence, session killzones, volatility regime, portfolio heat, per-symbol cooldown) are safety multipliers you can switch on as confidence grows.",
1632
  "fields": [
1633
  {
1634
  "key": "COST_AWARE_ENABLED",
@@ -1733,7 +1864,7 @@
1733
  "label": "SMT Divergence Gate",
1734
  "type": "toggle",
1735
  "default": false,
1736
- "help": "Require the sector leader (BTC) not to be confirming the move against you — a leading stop-grab tell. Toggleable."
1737
  },
1738
  {
1739
  "key": "SESSION_FILTER_ENABLED",
@@ -1784,7 +1915,7 @@
1784
  "label": "Portfolio Heat Throttle",
1785
  "type": "toggle",
1786
  "default": false,
1787
- "help": "Cap how many live trades — and how many in the same direction — can run at once, so one adverse BTC move cannot hit them all. Toggleable."
1788
  },
1789
  {
1790
  "key": "MAX_CONCURRENT_TRADES",
 
359
  "type": "text",
360
  "default": "STOCK",
361
  "help": "Comma-separated substrings; any symbol containing one is excluded (catches the whole tokenized-equity family in one rule)."
362
+ },
363
+ {
364
+ "key": "REQUIRE_API_TRADABLE",
365
+ "label": "Futures-Tradable Only",
366
+ "type": "toggle",
367
+ "default": true,
368
+ "help": "Only scan pairs MEXC marks as API/futures-tradable. Off includes spot-only contracts that show under futures but cannot be traded."
369
+ },
370
+ {
371
+ "key": "EXCLUDE_TOKENIZED_STOCKS",
372
+ "label": "Exclude Tokenized Stocks/Commodities",
373
+ "type": "toggle",
374
+ "default": true,
375
+ "help": "Drop tokenized equities & commodities (gold, *STOCK, SOXL...) by exchange type flag \u2014 more robust than the name-substring rule. Off includes them."
376
  }
377
  ]
378
  },
379
  {
380
  "id": "impulse",
381
+ "title": "Strategy \u00b7 Impulse & FVG",
382
  "summary": "Strictness of the impulse, fair-value-gap and liquidity detection that opens a setup.",
383
  "fields": [
384
  {
 
493
  "value": 10
494
  }
495
  ]
496
+ },
497
+ {
498
+ "key": "IMPULSE_MIN_DIR_BODY_RATIO",
499
+ "label": "Impulse Cleanliness",
500
+ "type": "float",
501
+ "unit": "ratio",
502
+ "default": 0.68,
503
+ "help": "Share of the impulse leg's total body that must be in the trade direction. Lower = accept messier impulses (more inflow); higher = only clean one-way moves.",
504
+ "presets": [
505
+ {
506
+ "label": "0.55 (loose)",
507
+ "value": 0.55
508
+ },
509
+ {
510
+ "label": "0.68 (default)",
511
+ "value": 0.68
512
+ },
513
+ {
514
+ "label": "0.80 (strict)",
515
+ "value": 0.8
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "key": "IMPULSE_MIN_CONSEC_DISPLACEMENT",
521
+ "label": "Min Consecutive Displacement",
522
+ "type": "int",
523
+ "unit": "candles",
524
+ "default": 3,
525
+ "help": "Longest run of same-direction candles the impulse must contain. Lower = more impulses qualify (more inflow).",
526
+ "presets": [
527
+ {
528
+ "label": "2 (loose)",
529
+ "value": 2
530
+ },
531
+ {
532
+ "label": "3 (default)",
533
+ "value": 3
534
+ },
535
+ {
536
+ "label": "4 (strict)",
537
+ "value": 4
538
+ }
539
+ ]
540
+ },
541
+ {
542
+ "key": "RETRACEMENT_MIN_FVG_GAP_ATR",
543
+ "label": "Min Liquidity\u2194FVG Gap",
544
+ "type": "float",
545
+ "unit": "x ATR",
546
+ "default": 0.2,
547
+ "help": "Required clean gap between the first-liquidity line and the FVG edge. Lower = more Stage-1 locks qualify (more inflow).",
548
+ "presets": [
549
+ {
550
+ "label": "0.10 (loose)",
551
+ "value": 0.1
552
+ },
553
+ {
554
+ "label": "0.20 (default)",
555
+ "value": 0.2
556
+ },
557
+ {
558
+ "label": "0.35 (strict)",
559
+ "value": 0.35
560
+ }
561
+ ]
562
+ },
563
+ {
564
+ "key": "RETRACEMENT_FVG_CLEARANCE_ATR",
565
+ "label": "FVG Clearance Buffer",
566
+ "type": "float",
567
+ "unit": "x ATR",
568
+ "default": 0.12,
569
+ "help": "Extra clearance the retracement must leave around the FVG. Lower = looser detection (more inflow).",
570
+ "presets": [
571
+ {
572
+ "label": "0.06 (loose)",
573
+ "value": 0.06
574
+ },
575
+ {
576
+ "label": "0.12 (default)",
577
+ "value": 0.12
578
+ },
579
+ {
580
+ "label": "0.20 (strict)",
581
+ "value": 0.2
582
+ }
583
+ ]
584
  }
585
  ]
586
  },
587
  {
588
  "id": "timing",
589
+ "title": "Strategy \u00b7 Stage Timing",
590
+ "summary": "How long forming setups live before they expire. Stages 3, 4 and 5 never expire on age \u2014 only on invalidation or trade outcome.",
591
  "fields": [
592
  {
593
  "key": "ZONE_TTL_SECONDS",
 
632
  "value": 192
633
  }
634
  ]
635
+ },
636
+ {
637
+ "key": "FORMING_EVICTION_ENABLED",
638
+ "label": "Evict Stale Forming Setups",
639
+ "type": "toggle",
640
+ "default": true,
641
+ "help": "Free a symbol's slot when a Stage 1/2 setup hasn't advanced within the window below, so the pair can re-sort to a fresher setup. Committed Stage 3/4/5 are never evicted."
642
+ },
643
+ {
644
+ "key": "FORMING_STALE_TTL_SECONDS",
645
+ "label": "Forming Setup Stale Window",
646
+ "type": "int",
647
+ "unit": "seconds",
648
+ "default": 21600,
649
+ "help": "How long a Stage 1/2 setup may sit without advancing a stage before it is evicted. Default 6 hours.",
650
+ "presets": [
651
+ {
652
+ "label": "3 hours",
653
+ "value": 10800
654
+ },
655
+ {
656
+ "label": "6 hours (default)",
657
+ "value": 21600
658
+ },
659
+ {
660
+ "label": "12 hours",
661
+ "value": 43200
662
+ }
663
+ ]
664
  }
665
  ]
666
  },
 
815
  },
816
  {
817
  "id": "conviction",
818
+ "title": "Stage 4 \u00b7 Pre-Entry Conviction",
819
+ "summary": "Stage-4 brain. NOTE (v7.5): promotion is now driven by the Smart Filter (confluence count + entry model) in the section below. The conviction SCORE and the weights here are DISPLAY-ONLY \u2014 they shape the conviction number/wording shown on the dashboard, NOT whether a setup promotes. The one knob that still gates is CONVICTION_ENABLED (off = revert to the Legacy Filter Stack).",
820
  "fields": [
821
  {
822
  "key": "CONVICTION_ENABLED",
823
  "label": "Predictive Conviction (Master)",
824
  "type": "toggle",
825
  "default": true,
826
+ "help": "Master switch for the v7.5 Smart Filter brain. ON (default) = confluence-stack + entry-model promotion. OFF = revert to the Legacy Filter Stack (weighted score). Master switch. On (default) uses the v7.5 predictive in-zone conviction engine for Stage 4 to 5 promotion \u2014 it studies displacement, zone quality, order-flow absorption and the liquidity-sweep / reclaim before price leaves the zone. Off reverts to the legacy reactive Filter Stack below. There is no longer a hard HTF + BTC gate: HTF is a soft lean, and BTC only vetoes when it is actively impulsing against the setup on its latest closed candle."
827
  },
828
  {
829
  "key": "CONVICTION_PROMOTE_THRESHOLD",
 
831
  "type": "int",
832
  "unit": "score (0-100)",
833
  "default": 70,
834
+ "help": "DISPLAY-ONLY (v7.5): the score at which the dashboard wording flips toward 'Promotes'. It no longer controls promotion \u2014 the Smart Filter's confluence count does. Tune only to change how the conviction number reads.",
835
  "presets": [
836
  {
837
  "label": "60 (Aggressive)",
 
893
  },
894
  {
895
  "key": "C_W_ALIGN",
896
+ "label": "Weight \u00b7 E1 HTF Lean",
897
  "type": "int",
898
  "unit": "weight",
899
  "default": 22,
900
+ "help": "DISPLAY-ONLY (v7.5): weight in the shown conviction score; does not affect promotion (confluence-count driven). Relative weight of the E1 chip: higher-timeframe trend as a SOFT lean (v7.5 \u2014 no longer a hard gate). Aligned HTF (and 4H agreement) adds tailwind; opposing HTF only trims conviction so valid countertrend reactions off fresh gaps can still promote. Weights are relative and auto-normalised."
901
  },
902
  {
903
  "key": "C_W_ZONE",
904
+ "label": "Weight \u00b7 E2 Zone + OB + P/D",
905
  "type": "int",
906
  "unit": "weight",
907
  "default": 16,
 
909
  },
910
  {
911
  "key": "C_W_FLOW",
912
+ "label": "Weight \u00b7 E3 Order Flow",
913
  "type": "int",
914
  "unit": "weight",
915
  "default": 20,
 
917
  },
918
  {
919
  "key": "C_W_MONEY",
920
+ "label": "Weight \u00b7 E4 New Money (OI)",
921
  "type": "int",
922
  "unit": "weight",
923
  "default": 16,
 
925
  },
926
  {
927
  "key": "C_W_LIQ",
928
+ "label": "Weight \u00b7 E8 Liquidity Sweep",
929
  "type": "int",
930
  "unit": "weight",
931
  "default": 10,
932
+ "help": "DISPLAY-ONLY (v7.5): weight in the shown conviction score; does not affect promotion (confluence-count driven). Relative weight of the E8 chip (v7.5): liquidity sweep / reclaim. Resting stops beyond the SL are treated as FUEL \u2014 the engine expects the stop-hunt and a wick-through-then-reclaim of the stop is the highest-confidence enter-now tell, rather than an invalidation. Weights are relative and auto-normalised."
933
  },
934
  {
935
  "key": "C_W_LTF",
936
+ "label": "Weight \u00b7 E6 LTF Reaction",
937
  "type": "int",
938
  "unit": "weight",
939
  "default": 12,
 
941
  },
942
  {
943
  "key": "C_W_VITALITY",
944
+ "label": "Weight \u00b7 E7 Market Vitality",
945
  "type": "int",
946
  "unit": "weight",
947
  "default": 4,
 
1039
  },
1040
  {
1041
  "id": "stage4_smart_v75",
1042
+ "title": "Stage 4 \u00b7 Smart Filter (v7.5)",
1043
+ "summary": "The v7.5 promotion brain. Promotion is now driven by a COUNT of discrete leading confluence facts (of 7) plus a recognised entry model \u2014 not the blended conviction % (which is now display-only). Tune how many facts are required and how each entry model is detected.",
1044
  "fields": [
1045
  {
1046
  "key": "CONVICTION_MIN_CONFLUENCE",
 
1072
  "unit": "of 7 facts",
1073
  "default": 6,
1074
  "step": 1,
1075
+ "help": "At or above this count, a decisive trigger (sweep+reclaim, strong entry model, absorption, or LTF break-of-structure) promotes IMMEDIATELY without waiting for confirmation cycles \u2014 so you ride the start of the move.",
1076
  "presets": [
1077
  {
1078
  "label": "5",
 
1148
  "unit": "ATR",
1149
  "default": 1.0,
1150
  "step": 0.1,
1151
+ "help": "Minimum candle body (in ATRs) for the impulse-reclaim entry model \u2014 the reclaim candle must show real commitment, not a weak tap.",
1152
  "presets": [
1153
  {
1154
  "label": "0.8",
 
1214
  },
1215
  {
1216
  "id": "footprint_v75",
1217
+ "title": "Order Flow \u00b7 Anchored Footprint (v7.5)",
1218
  "summary": "The zone-anchored footprint replaces the old ~8-second tape snapshot (the root of chip jitter). It accumulates signed Min1 delta + deals + OI at the FVG zone across the setup's life and is restart-safe. These knobs control how it samples and when its read is trusted.",
1219
  "fields": [
1220
  {
 
1343
  },
1344
  {
1345
  "id": "filters",
1346
+ "title": "Filter Stack \u00b7 Legacy (Stage 4\u21925)",
1347
+ "summary": "LEGACY v6.1 promotion path. These knobs ONLY take effect when 'Pre-Entry Conviction' is turned OFF (CONVICTION_ENABLED=false). With the default v7.5 build the Smart Filter (confluence stack + entry model) decides promotion and this whole section does nothing \u2014 leave it as-is unless you deliberately revert to the old weighted-score gate.",
1348
  "fields": [
1349
  {
1350
  "key": "FILTERS_ENABLED",
1351
  "label": "Master Promotion Switch",
1352
  "type": "toggle",
1353
  "default": true,
1354
+ "help": "\u26a0\ufe0f Master switch for ALL Stage-4\u21925 promotion. Turning this OFF stops EVERY promotion \u2014 no setup will ever reach Stage 5 (Verified Entry) and no entry alerts fire, regardless of the Smart Filter settings. Keep ON for live signals."
1355
  },
1356
  {
1357
  "key": "SCORE_PROMOTE_THRESHOLD",
 
1377
  },
1378
  {
1379
  "key": "FILTER_HTF_ENABLED",
1380
+ "label": "Gate \u00b7 Higher-Timeframe Bias",
1381
  "type": "toggle",
1382
  "default": true,
1383
  "help": "Compulsory gate: the 1H/4H trend must agree with the setup direction."
1384
  },
1385
  {
1386
  "key": "FILTER_BTC_ENABLED",
1387
+ "label": "Gate \u00b7 Bitcoin Correlation",
1388
  "type": "toggle",
1389
  "default": true,
1390
  "help": "Compulsory gate: Bitcoin's trend must not be fighting the setup."
1391
  },
1392
  {
1393
  "key": "FILTER_VOLUME_ENABLED",
1394
+ "label": "Gate \u00b7 Volume",
1395
  "type": "toggle",
1396
  "default": true,
1397
  "help": "Reward setups with supportive volume."
1398
  },
1399
  {
1400
  "key": "FILTER_PD_ENABLED",
1401
+ "label": "Gate \u00b7 Premium / Discount",
1402
  "type": "toggle",
1403
  "default": true,
1404
  "help": "Reward entries taken from the favourable half of the range (discount for longs, premium for shorts)."
1405
  },
1406
  {
1407
  "key": "FILTER_REGIME_ENABLED",
1408
+ "label": "Gate \u00b7 Volatility Regime",
1409
  "type": "toggle",
1410
  "default": true,
1411
  "help": "Reward expanding-volatility conditions where displacement is more reliable."
1412
  },
1413
  {
1414
  "key": "FILTER_CONFIRM_ENABLED",
1415
+ "label": "Gate \u00b7 Confirmation Body",
1416
  "type": "toggle",
1417
  "default": true,
1418
  "help": "Reject weak doji-like confirmation candles."
 
1440
  },
1441
  {
1442
  "key": "FILTER_WEIGHT_HTF",
1443
+ "label": "Weight \u00b7 Higher-Timeframe Bias",
1444
  "type": "int",
1445
  "unit": "weight",
1446
  "default": 30,
 
1448
  },
1449
  {
1450
  "key": "FILTER_WEIGHT_BTC",
1451
+ "label": "Weight \u00b7 Bitcoin Correlation",
1452
  "type": "int",
1453
  "unit": "weight",
1454
  "default": 15,
 
1456
  },
1457
  {
1458
  "key": "FILTER_WEIGHT_VOLUME",
1459
+ "label": "Weight \u00b7 Volume",
1460
  "type": "int",
1461
  "unit": "weight",
1462
  "default": 25,
 
1464
  },
1465
  {
1466
  "key": "FILTER_WEIGHT_PD",
1467
+ "label": "Weight \u00b7 Premium / Discount",
1468
  "type": "int",
1469
  "unit": "weight",
1470
  "default": 20,
 
1472
  },
1473
  {
1474
  "key": "FILTER_WEIGHT_REGIME",
1475
+ "label": "Weight \u00b7 Volatility Regime",
1476
  "type": "int",
1477
  "unit": "weight",
1478
  "default": 10,
 
1480
  },
1481
  {
1482
  "key": "FILTER_WEIGHT_CONFIRM",
1483
+ "label": "Weight \u00b7 Confirmation Body",
1484
  "type": "int",
1485
  "unit": "weight",
1486
  "default": 10,
 
1490
  },
1491
  {
1492
  "id": "guardian",
1493
+ "title": "Stage 5 \u00b7 Trade Guardian",
1494
  "summary": "The post-entry conviction layer. After a verified entry is live, the Guardian reads live order flow (Open Interest, funding, Cumulative Volume Delta) and lower-timeframe structure to score whether the trade still has fuel, and issues short advisory verdicts. Its only terminal verdict, Close Before Reversal, latches once and never flips.",
1495
  "fields": [
1496
  {
 
1598
  },
1599
  {
1600
  "id": "stability",
1601
+ "title": "Stage 5 \u00b7 Chip Stability",
1602
  "summary": "Steadies the live Stage-5 Guardian read. The Drive (D1-D5) and Risk (R1-R6) chips used to flip on every raw MEXC tick, which looked like randomness. Each chip's status now only changes after the new state holds for a set number of cycles. The terminal 'Close Before Reversal' latch also gets a retrace-vs-reversal classifier so a healthy pullback is never mistaken for a reversal.",
1603
  "fields": [
1604
  {
 
1635
  "label": "Retrace vs Reversal Guard",
1636
  "type": "toggle",
1637
  "default": true,
1638
+ "help": "On (default) a shallow pullback into a defended zone on light volume with order flow still net-favourable and no lower-timeframe change-of-character is treated as continuation and can never latch the terminal 'Close Before Reversal' verdict \u2014 only a structurally confirmed reversal can. Off lets the raw latch fire."
1639
  }
1640
  ]
1641
  },
1642
  {
1643
  "id": "verdict",
1644
+ "title": "Stage 5 \u00b7 Verdict Stability",
1645
  "summary": "Controls how the Guardian's advisory verdict behaves over time. The Drive and Risk chips already react tick by tick; the verdict sits above them as a calmer, strategic read that tracks where price is in the trade journey (entry zone, toward the target, at the target). These settings keep that message steady when nothing meaningful changes, while still warning fast when danger rises.",
1646
  "fields": [
1647
  {
 
1759
  {
1760
  "id": "survival",
1761
  "title": "Survival Enhancements (v7.5)",
1762
+ "summary": "Quant-desk additions that decide whether the engine survives live, not just looks good in screenshots. Cost-Aware Expectancy and Calibration are recommended on from day one \u2014 they turn a paper plus-R into the honest, fee-and-funding-adjusted number and learn which reads actually win. The edge gates (SMT divergence, session killzones, volatility regime, portfolio heat, per-symbol cooldown) are safety multipliers you can switch on as confidence grows.",
1763
  "fields": [
1764
  {
1765
  "key": "COST_AWARE_ENABLED",
 
1864
  "label": "SMT Divergence Gate",
1865
  "type": "toggle",
1866
  "default": false,
1867
+ "help": "Require the sector leader (BTC) not to be confirming the move against you \u2014 a leading stop-grab tell. Toggleable."
1868
  },
1869
  {
1870
  "key": "SESSION_FILTER_ENABLED",
 
1915
  "label": "Portfolio Heat Throttle",
1916
  "type": "toggle",
1917
  "default": false,
1918
+ "help": "Cap how many live trades \u2014 and how many in the same direction \u2014 can run at once, so one adverse BTC move cannot hit them all. Toggleable."
1919
  },
1920
  {
1921
  "key": "MAX_CONCURRENT_TRADES",