AI-assisted TradingView chart analysis — connect Claude Code to your TradingView Desktop for personal workflow automation
This report presents the forensic synthetic code analysis of tradesdontlie/tradingview-mcp, a JavaScript project with 4,366 GitHub stars. SynthScan v2.0 examined 13,110 lines of code across 80 source files, recording 64 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 11.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 64 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/replay.test.js | 10 | // ── Mock helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/replay.test.js | 42 | // ── start() ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/replay.test.js | 142 | // ── step() ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/replay.test.js | 187 | // ── autoplay() ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/replay.test.js | 257 | // ── stop() ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/replay.test.js | 286 | // ── trade() ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/replay.test.js | 322 | // ── status() ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/launch.test.js | 15 | // ── Mock helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 31 | // ── Helpers ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 68 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tests/e2e.test.js | 95 | // ─── 1. HEALTH & CONNECTION (4 tools) ───────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 160 | // ─── 2. CHART CONTROL (8 tools) ────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 353 | // ─── 3. DATA ACCESS (12 tools) ──────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 663 | // ─── 4. PINE SCRIPT (12 tools) ──────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 929 | // ─── 5. DRAWING (5 tools) ───────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1022 | // ─── 6. UI AUTOMATION (12 tools) ────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1156 | // ─── 7. REPLAY MODE (6 tools) ───────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1253 | // ─── 8. ALERTS (3 tools) ────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1287 | // ─── 9. WATCHLIST (2 tools) ─────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1338 | // ─── 10. INDICATORS (2 tools) ───────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1382 | // ─── 11. BATCH (1 tool) ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1401 | // ─── 12. CAPTURE (1 tool) ───────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e.test.js | 1435 | // ─── 13. CONTEXT SIZE VALIDATION ────────────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 13 | // ── Mock helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 36 | // ── safeString() ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 89 | // ── requireFinite() ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 129 | // ── chart.js — safeString in evaluate calls ────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 229 | // ── drawing.js — safeString + requireFinite ────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 287 | // ── Source-level audit ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/sanitization.test.js | 318 | // ── Path traversal prevention ──────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | SETUP_GUIDE.md | 5 | ## Step 1: Clone and Install | COMMENT |
| LOW | SETUP_GUIDE.md | 15 | ## Step 2: Add to MCP Config | COMMENT |
| LOW | SETUP_GUIDE.md | 34 | ## Step 3: Launch TradingView Desktop | COMMENT |
| LOW | SETUP_GUIDE.md | 79 | ## Step 4: Restart Claude Code | COMMENT |
| LOW | SETUP_GUIDE.md | 87 | ## Step 5: Verify Connection | COMMENT |
| LOW | SETUP_GUIDE.md | 102 | ## Step 6: Install CLI (Optional) | COMMENT |
| LOW | skills/multi-symbol-scan/SKILL.md | 10 | ## Step 1: Define the Scan | COMMENT |
| LOW | skills/multi-symbol-scan/SKILL.md | 17 | ## Step 2: Run the Scan | COMMENT |
| LOW | skills/multi-symbol-scan/SKILL.md | 43 | ## Step 3: Compile Results | COMMENT |
| LOW | skills/multi-symbol-scan/SKILL.md | 51 | ## Step 4: Report | COMMENT |
| LOW⚡ | skills/replay-practice/SKILL.md | 10 | ## Step 1: Setup | COMMENT |
| LOW⚡ | skills/replay-practice/SKILL.md | 16 | ## Step 2: Pre-Trade Analysis | COMMENT |
| LOW⚡ | skills/replay-practice/SKILL.md | 23 | ## Step 3: Step Through Bars | COMMENT |
| LOW⚡ | skills/replay-practice/SKILL.md | 31 | ## Step 4: Execute Trades | COMMENT |
| LOW⚡ | skills/replay-practice/SKILL.md | 41 | ## Step 5: Review | COMMENT |
| LOW⚡ | skills/strategy-report/SKILL.md | 10 | ## Step 1: Gather Data | COMMENT |
| LOW⚡ | skills/strategy-report/SKILL.md | 19 | ## Step 2: Capture Visuals | COMMENT |
| LOW⚡ | skills/strategy-report/SKILL.md | 24 | ## Step 3: Analyze | COMMENT |
| LOW | skills/strategy-report/SKILL.md | 48 | ## Step 4: Generate Report | COMMENT |
| LOW | skills/strategy-report/SKILL.md | 77 | ## Step 5: Suggest Improvements | COMMENT |
| LOW | skills/chart-analysis/SKILL.md | 10 | ## Step 1: Set Up the Chart | COMMENT |
| LOW | skills/chart-analysis/SKILL.md | 16 | ## Step 2: Add Indicators | COMMENT |
| LOW⚡ | skills/chart-analysis/SKILL.md | 30 | ## Step 3: Navigate to Key Areas | COMMENT |
| LOW⚡ | skills/chart-analysis/SKILL.md | 36 | ## Step 4: Annotate | COMMENT |
| LOW⚡ | skills/chart-analysis/SKILL.md | 43 | ## Step 5: Capture and Analyze | COMMENT |
| LOW⚡ | skills/chart-analysis/SKILL.md | 50 | ## Step 6: Report | COMMENT |
| LOW⚡ | skills/pine-develop/SKILL.md | 10 | ## Step 1: Understand the Goal | COMMENT |
| LOW⚡ | skills/pine-develop/SKILL.md | 18 | ## Step 2: Pull Current Source (if modifying) | COMMENT |
| LOW⚡ | skills/pine-develop/SKILL.md | 28 | ## Step 3: Write the Pine Script | COMMENT |
| LOW | skills/pine-develop/SKILL.md | 41 | ## Step 4: Push and Compile | COMMENT |
| LOW | skills/pine-develop/SKILL.md | 49 | ## Step 5: Fix Errors | COMMENT |
| LOW | skills/pine-develop/SKILL.md | 63 | ## Step 6: Verify on Chart | COMMENT |
| LOW | skills/pine-develop/SKILL.md | 70 | ## Step 7: Iterate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/core/data.js | 216 | async function ensureStrategyTesterReady(maxWaitMs = 6000) { | CODE |