Evaluating LLM Engineering Usability: A Trading Backtesting System in Practice
Release hype is not the same as engineering usability. This article stress-tests a large language model inside a complete, small-scale engineering project that turns raw trading records into a backtestable, attributable, and reproducible analysis report. It proposes a four-dimension evaluation framework (instruction following and task decomposition, file and long-context parsing, tool use and code generation quality, and runtime stability and recoverability), walks through the project step by step, and shares the typical failures observed in practice along with practical mitigation strategies. Readers get a reusable checklist for judging whether a model can handle real, end-to-end engineering work.
1. The Problem: Release Hype Is Not Engineering Usability
Every time a new generation of large language models ships, the community fills up with “first-hand experience” posts. But this kind of experience usually stays at the level of single-turn Q&A, copywriting, or algorithm puzzles. It rarely answers a more important question: can the model take on an end-to-end engineering task with real data and real failure costs?
This article takes a different angle: it puts the model inside a complete, small-scale engineering project and stress-tests it. The project topic comes from a common pain point—individual investors’ trading records are usually only used to review profit and loss, and are rarely analyzed in a structured way. The goal is to turn historical trade logs into a backtestable, attributable, and reproducible analysis report. This task happens to cover every critical stage of putting engineering into practice: unstructured data parsing, external data API calls, database design, long-workflow code generation, progress observability, and failure recovery.
2. Evaluation Framework: Four Dimensions, Not a Single Score
Only by breaking “how usable is it” into observable behaviors can you form reproducible conclusions.
- Instruction following and task decomposition: Faced with a multi-stage task, does the model do its own thing, or can it advance stage by stage under the given constraints?
- File and long-context parsing: Can it read every row and column of a tabular file completely, rather than sampling and “getting the gist”?
- Tool use and code generation quality: Do the API wrappers, exception handling, and database design follow engineering conventions?
- Runtime stability and recoverability: How does it behave when a long task stalls, times out, or goes silent, and how costly is the retry?
3. Breaking Down the Practical Project
3.1 Data Preparation: Turn Unstructured Input into Structured Text First
Most trading software exports results as spreadsheet files. In practice, when the model is asked to read the spreadsheet binary format directly, rows and columns are easily truncated and fields get misaligned, which distorts the downstream statistical basis. A more reliable approach is to first convert the data into a lightweight structured text (for example, converting the table into plain-text markup) and then let the model parse it. The conversion step pays off twice: it reduces parsing ambiguity and makes intermediate artifacts easy to verify manually.
3.2 Collaboration Style: Issue Instructions Step by Step, Not All Requirements at Once
One repeatedly confirmed lesson: handing all requirements to the model at once often produces output that “looks done but is actually unusable.” A more reliable way is to think the workflow through yourself first, then break it into small, acceptance-testable steps:
- Step 1: Extract only the list of symbols from the trade logs, and confirm it manually;
- Step 2: Pull daily and intraday data per symbol and store it in the database;
- Step 3: Implement buy-sell pairing and holding-period calculation;
- Step 4: Generate backtest metrics and an attribution report.
Each step has a clear acceptance artifact, so errors do not accumulate downstream.
3.3 Data Layer Design: Prioritize Conventions and Extensibility
When asking the model to build the database, explicitly require extensibility and avoid “one giant wide table does it all.” A minimal viable design idea:
CREATE TABLE trade_record (id BIGINT PRIMARY KEY AUTO_INCREMENT,symbol VARCHAR(16) NOT NULL,trade_date DATE NOT NULL,direction TINYINT NOT NULL, -- 1 = buy, 0 = sellprice DECIMAL(10,3) NOT NULL,volume INT NOT NULL,fee DECIMAL(10,3) DEFAULT 0,INDEX idx_symbol_date (symbol, trade_date));CREATE TABLE daily_bar (symbol VARCHAR(16) NOT NULL,trade_date DATE NOT NULL,open DECIMAL(10,3),high DECIMAL(10,3),low DECIMAL(10,3),close DECIMAL(10,3),volume BIGINT,PRIMARY KEY (symbol, trade_date));
Separating market data from trade data, and using symbol plus date as a composite primary key, is the prerequisite for later extending to multiple accounts and multiple strategies.
3.4 Progress Observability: Long Tasks Must Be “Visible”
Pulling from an external market data API is a time-consuming step, so you must require the model to emit observable progress rather than wait in silence:
def fetch_with_progress(symbols, total_steps):for i, sym in enumerate(symbols, 1):bars = client.daily(sym) # external market data APIdb.upsert_many(bars)print(f"[{i}/{total_steps}] {sym} done, {db.count()} rows total", flush=True)
At the same time, require checkpoint resume and failure retry, so that a mid-way failure does not force a restart from zero.
4. Typical Problems Exposed in Testing and Mitigation Strategies
- Long-task silent stall: Shows up as no output for a long time. Mitigate by limiting the granularity of each step, forcing log flushes, and setting timeouts with automatic retries—rather than waiting.
- Incomplete table reading: Prioritize format conversion and manual spot checks, and require in the prompt to “first output the field list and row count, then proceed to computation.”
- Out-of-control one-shot requirements: Switch to step-by-step delivery, with manual acceptance at each step.
- Explicit expression of risk conclusions: When the backtest shows the strategy has a long-term negative expectation, the model gives a clear negative judgment. This is actually a point worth praising in the evaluation—it did not beautify the conclusion to please the reader.
5. Conclusion and Selection Advice
Evaluating models with real engineering tasks gets closer to production truth than any leaderboard. The reusable judgment checklist is: can it fully parse the input, can it advance step by step under constraints, does the generated code include exception handling and an extensible data model, are long tasks observable and recoverable, and are the conclusions honest?固化—turn this checklist into a small benchmark task and rerun it every time a new model ships, and you get your own reproducible basis for model selection.
