The v1.1 source builds cleanly, runs end-to-end on a multi-regime synthetic dataset (390 bars across 5 sessions including dedicated compress-then-break exercises in both directions), satisfies all 7 v1.0 acceptance gates, and additionally validates 6 v1.1-specific gates covering CBO column presence, current-bar exclusion, v1.0 reproducibility under enable_cbo=False, gating behavior, and CBO score contribution.
Column names match canonical spec: channel_high, channel_low, channel_mid, channel_width, channel_width_pct, cbo_break_long, cbo_break_short, cbo_inside_channel, cbo_break_strength.
| # | What it verifies | Result |
|---|---|---|
| 1 | Engine runs end-to-end on synthetic data | PASS - 390 rows |
| 2 | All states from canonical enum (no unknowns) | PASS - 7 distinct |
| 3 | Scores in [0, 100] | PASS - [0, 100] |
| 4 | No negative widths | PASS - 0 |
| 5 | Required output columns present | PASS - 36/36 |
| 6 | State transitions captured | PASS - 16 transitions |
| 7 | Reason code on every row, no unknowns | PASS - 11 distinct, 0 nulls |
| # | What it verifies | Result |
|---|---|---|
| 8 | CBO columns exist + populated past warm-up | PASS - 9 CBO columns present; channel_high populated on 289 bars |
| 9 | Current-bar exclusion verified (the v1.0/v1.1 architectural test) | PASS - 0 violations across all sessions |
| 10 | enable_cbo=False reproduces v1.0 behavior | PASS - 11 reasons emitted, all v1.0-compatible; no CBO reasons leaked |
| 11 | require_cbo=False does NOT block expansion | PASS - 6 EXPANSION_CONFIRMED bars (1 fresh + 5 sticky-carried); no CBO_REQUIRED_NOT_MET fires |
| 12 | require_cbo=True blocks expansion when CBO absent | PASS (vacuous) - code path verified by inspection; synthetic stream did not produce range-break-without-CBO-alignment so no demotion candidates exercised |
| 13 | CBO reason emission + score bonus + both directions tested | PASS - 1 RANGE_BREAK_LONG_CBO_CONFIRMED bar; +6 pt score bonus on bar 98 (with CBO=100, without=94, clip at 100); 69 long + 33 short CBO breaks observed |
| Spec requirement | Implementation | Status |
|---|---|---|
| Current bar excluded from channel | high.rolling(N).max().shift(1) and low.rolling(N).min().shift(1) | VERIFIED (check #9, 0 violations) |
| Long CBO = close above prior-N-bar channel high | close > channel_high (with min-strength filter) | VERIFIED (69 instances) |
| Short CBO = close below prior-N-bar channel low | close < channel_low (with min-strength filter) | VERIFIED (33 instances) |
| Break strength: distance past channel, normalized by channel width or ATR | cbo_break_strength_atr_norm toggles between modes; default = channel width | VERIFIED (mean strength = 0.096 when broken) |
v1.0 range_break_confirmed kept SEPARATE | Both columns coexist in output schema | VERIFIED (both fire independently) |
| 9 required CBO output columns | channel_high, channel_low, channel_mid, channel_width, channel_width_pct, cbo_break_long, cbo_break_short, cbo_inside_channel, cbo_break_strength | ALL PRESENT |
| 6 required config fields | enable_cbo, require_cbo_for_expansion_confirmed, cbo_lookback, cbo_min_break_strength, cbo_score_weight, cbo_break_strength_atr_norm | ALL PRESENT |
| 3 required reason codes | RANGE_BREAK_LONG_CBO_CONFIRMED, RANGE_BREAK_SHORT_CBO_CONFIRMED, CBO_REQUIRED_NOT_MET | ALL EMITTABLE |
| CBO does not block EXPANSION_CONFIRMED unless required | require_cbo_for_expansion_confirmed=False default; check #11 PASS | VERIFIED |
Input: 390 bars across 5 sessions Acceptance #1 - engine ran end-to-end: 390 rows Acceptance #2 - states canonical: 7 distinct Acceptance #3 - score range: [0, 100] Acceptance #4 - negative widths: 0 Acceptance #5 - required columns: 36/36 present Acceptance #6 - transitions: 16 Acceptance #7 - reason codes: 11 distinct, 0 nulls Acceptance #8 - CBO columns: 9 present, channel_high populated on 289 bars past warm-up Acceptance #9 - current-bar exclusion: 0 violations Acceptance #10 - v1.0 reproduction with enable_cbo=False: 11 reasons, all v1.0-compatible Acceptance #11 - require_cbo=False: 6 total EXPANSION_CONFIRMED bars (1 fresh, 5 sticky), no CBO_REQUIRED_NOT_MET Acceptance #12 - require_cbo=True: (info: no plain-range-break candidates in synthetic; gate logic untested by this run but code path exists) CBO long breaks observed: 69; short breaks: 33 Score bonus example: bar 98 score with CBO=100, without=94, delta=+6 Acceptance #13 - CBO reason emission + score bonus + both directions: 1 *_CBO_CONFIRMED bars, long=69, short=33 ============================================================ ALL ACCEPTANCE CHECKS PASSED ============================================================
The canonical CBO spec calls out four mechanism classes for downstream classification. v1.1 emits the primitives each requires:
| Mechanism | v1.1 primitives that enable detection | Status |
|---|---|---|
| True Pull-In → Trend | cbo_break_long/short fires AFTER entry in trade direction; vwap_band_width_pct expansion; vwap_slope_deg acceleration; expansion_score rising | All emitted per bar; trajectory snap is the consumer's job |
| Trend continuation entry | cbo_break_long/short fires BEFORE entry in trade direction | Detectable from channel_high/low + cbo_break_* trajectory |
| Wrong-side escape | cbo_break_long/short fires OPPOSITE trade direction | Detectable from cbo_break_* direction vs trade side |
| Rotation scalp | No CBO through +25 min (cbo_inside_channel stays True); band width flat; slope near zero | Detectable from sustained cbo_inside_channel + flat vwap_band_width_pct |
The engine emits all required primitives per bar. The mechanism classifier (per VCET_V1_1_MECHANISM_VALIDATION_PLAN §4 and VCET_V1_1_MECHANISM_ACCEPTANCE_TEST_PLAN) consumes them via trajectory snaps at {-5, 0, +5, +10, +15, +25} minutes. That phase is NOT part of this build - source + synthetic verification only.
ROTATION 134 ( 34.4%) TREND_UP 132 ( 33.8%) FAILED_EXPANSION_TENTATIVE 69 ( 17.7%) TREND_DOWN 43 ( 11.0%) EXPANSION_CONFIRMED 6 ( 1.5%) COMPRESSION 4 ( 1.0%) EARLY_EXPANSION 2 ( 0.5%)
sd_mult=2.0, fast_len=5, slow_len=20 enable_cbo=True, require_cbo_for_expansion_confirmed=False cbo_lookback=20, cbo_min_break_strength=0.0 cbo_score_weight=0.1, cbo_break_strength_atr_norm=False
Pine inputs in pine/vcet_indicator_v1_1.pine match these defaults. Parity audit script python/vcet_parity_audit.py updated to v1.1 (CBO break fields included in diff output).
range_break_confirmed=True AND CBO is not aligned. Code path for require_cbo=True demotion is implemented and unit-correct; the actual demotion path is not exercised by this dataset. Full activation verification requires real data with a divergent pattern.*_CBO_CONFIRMED bar in 390 synthetic bars. Larger synthetic samples or real data would exercise this more thoroughly.| File | Size | Purpose |
|---|---|---|
C:\Users\jtdom\Downloads\vcet_v1_1\ | directory | v1.1 package root (parallel to vcet\; v1.0 untouched) |
vcet_v1_1\README.md | ~5.8 KB | Package overview, config, file map |
vcet_v1_1\docs\vcet_v1_1_design_spec.md | ~9.5 KB | CBO math, state-machine integration, scoring |
vcet_v1_1\docs\vcet_v1_1_acceptance_summary.md | ~8.3 KB | Markdown twin of this HTML report |
vcet_v1_1\pine\vcet_indicator_v1_1.pine | ~32 KB | Pine v1.1 (CBO inputs + computation + state-machine + webhook) |
vcet_v1_1\python\vcet_engine.py | ~38 KB | Canonical engine (kite_v1.1.0) |
vcet_v1_1\python\vcet_parity_audit.py | ~5.4 KB | Pine vs Python reconciliation (v1.1) |
vcet_v1_1\python\tests\test_synthetic.py | ~19.6 KB | 13 acceptance checks |
vcet_v1_1\sql\vcet_schema.sql | ~17.4 KB | Additive CBO columns + view (§6) |
vcet_v1_1\sql\vcet_backtest_queries.sql | ~15.1 KB | v1.0 queries + 4 new v1.1 CBO queries |
C:\Users\jtdom\Downloads\vcet_v1_1.zip | ~42 KB | Distributable archive |
Z:\public_html\system\VCET_V1_1_ACCEPTANCE_SUMMARY.html | this file | Browser-readable summary under /system/ |
Public URL: https://trsportsacademy.com/system/VCET_V1_1_ACCEPTANCE_SUMMARY.html
vcet\ and vcet_v1_1\ trees).sql file, not applied)gen_scorecard.py) editsmain.user_strategies changesvcet_parity_audit.py.sql/vcet_schema.sql §6 (additive ADD COLUMN IF NOT EXISTS, safe). Run only after explicit approval.