# Team 4 — Live Test Audit Log (`docs/live-test.md`)

**Date:** Monday, 2 Nov 2026  
**Auditor (R4):** Axel Howard Wijaya (Student ID: 14925353)  
**Evaluated Team:** Team 4 (Self-Audit)  
**Execution Mode:** Local Server (`python -m http.server`) with live data script (`engine/dashboard_data.py`)

---

## 1. Step A Audit Checklist (Sprint 7 Catch-Up Checks)

| # | Check Description | Status | Evidence / Line of Reason |
| :-: | :--- | :-: | :--- |
| **1** | Seven tiles, each showing its own Summary rating | **PASS** | R5 clicked all 7 tiles (`1m`, `5m`, `15m`, `30m`, `1h`, `4h`, `1d`); each tile updates its own Summary rating dynamically on screen. |
| **2** | Summary gauge = all 23 votes (11 indicators + 12 moving averages; ATR non-voting) | **PASS** | Verified on `1h` timeframe: 11 technical indicators + 12 moving averages = 23 total votes. ATR(14) is correctly marked non-voting. |
| **3** | Needle points at score (−1 far left, +1 far right) | **PASS** | Needle angle correctly aligns with calculated score ($\text{Score} \times 72^\circ$). The visual gauge needle and pill display agree. |
| **4** | Price, change, and % change from previous daily close | **PASS** | Evaluated live against Investing.com benchmark; price close and daily change match within normal futures spread. |
| **5** | Bar time = time of last completed bar in SGT | **PASS** | Bar timestamp reflects the last completed candle in SGT (not the script execution time). |
| **6** | Every indicator row opens working; MAs show Buy/Sell | **PASS** | Clicking any technical indicator row toggles its formula working box; moving average table displays explicit Buy/Sell actions for all 6 periods. |
| **7** | `docs/verify.md`: 30m, 1h, 1d screenshots & mismatches explained | **PASS** | `docs/verify.md` documents 30m, 1h, and 1d timeframes at identical bar times; the Daily price delta ($0.20) between Yahoo Finance and Investing.com is explained. |
| **8** | `ui/index.html` is team dashboard and links to `ui/gold.html` | **PASS** | R5 launches `ui/index.html` first, displaying team overview panels, and uses navigation link to open `ui/gold.html`. |

---

## 2. Step B Audit Checklist (Price & Volume Panel)

| Feature | Status | Evidence / Line of Reason |
| :--- | :-: | :--- |
| **60 Completed Bars (Candles)** | **PASS** | Renders 60 completed candles for the selected timeframe (green for price up, red for price down). |
| **Volume Bars** | **PASS** | Volume bars are positioned under the candles with matching colors per bar. |
| **20-Bar Moving Average Line** | **PASS** | Dashed line correctly plots the 20-bar simple moving average of volume preceding each bar. |
| **Time Axis (SGT)** | **PASS** | X-axis formatted in SGT timestamps (HH:MM for intraday; dates for 4 Hours and Daily). |
| **Relative Volume Display** | **PASS** | Displays formatted ratio for the last completed bar (e.g., `1.62×`). |
| **Volume Conviction Label** | **PASS** | Assigns one of four mandatory labels (`Confirmed`, `Warning`, `Thin`, `Normal`) following the relative volume and Summary direction rule. |

---

## 3. Teamwork Evidence & First Fix for Sprint 9

* **Overall Evaluation:** All 8 Step A checks and Step B Volume requirements **PASSED**.
* **First Fix for Sprint 9:** Implement an automated local background task to periodically execute `engine/dashboard_data.py`, keeping `ui/data.json` refreshed without manual terminal execution.
