Practical Evaluation of Multimodal AI Coding Tools for Quantitative Trading System Development

    A hands-on evaluation of multimodal AI coding tools applied to a web-based quantitative trading system. This article covers the gap between benchmark scores and real engineering experience, five assessment dimensions, findings on UI generation, domain knowledge, code correctness, and iteration cost, plus a reproducible human-AI collaboration workflow for factor selection and parameter optimization with safeguards against overfitting.

    1. The Problem: From Leaderboards to Real Projects

    There is a systematic gap between benchmark scores and real-world engineering experience. Benchmark problems typically feature short contexts, single files, and clean boundaries—in other words, algorithmic puzzles. A quantitative trading system, by contrast, is a long-horizon, multi-file engineering effort with strong domain constraints: data ingestion and price adjustment, factor computation, label generation, model training, backtesting, risk controls, parameter configuration, and a visualization interface. Each component carries implicit conventions of the trade. So evaluating such multimodal coding tools cannot rest on whether a single generation “looks right”—the real test is whether it converges over many rounds of iteration.

    The subject of this evaluation is a web-based quantitative trading system the author has been building recently. Two reasons motivated the choice: first, the UI involves heavy workload but little creativity, making it a good fit for tool delegation; second, finance demands strict terminology and consistent conventions, which is a good way to probe the tool’s “world knowledge” boundary.

    2. Evaluation Dimensions

    Breaking subjective impressions into five observable dimensions is a prerequisite for avoiding vague conclusions like “feels good” or “doesn’t work”:

    1. UI fidelity: Can the tool generate a well-structured, interactive frontend from a natural-language description in one shot, and can edits be made precisely where pointed?
    2. Domain world knowledge: Does it correctly understand concepts like the triple-barrier method, momentum and reversal factors, limit-up/limit-down features, and price adjustment methods?
    3. Communicable reasoning: When disagreements arise, can the tool be talked through them, rather than repeatedly emitting the same wrong code?
    4. Code correctness: How much manual error-fixing is required, and can it form a mutually “error-hunting” review relationship with human code?
    5. Iteration cost: For the same batch of UI and configuration changes, how much time is saved compared to pure hand-coding?

    3. Hands-On Observations

    3.1 UI and Interaction: The Part You Can Hand Over

    The web interface is where the payoff is most certain. Forms, chart linking, parameter panels, backtesting result tables—these structures can essentially be generated “description to done.” Subsequent tweaks (column widths, colors, validation messages) can also be located and modified precisely, without manually digging through CSS. Work that used to require long hours of hand-writing and hand-tuning can now be almost entirely outsourced, and noticeably faster. Conclusion: the UI layer is currently the most mature zone for delegation.

    3.2 Domain Knowledge: Concepts Covered, Conventions Shaky

    At the concept level, performance is solid. Ask it to “use the triple-barrier method for labeling,” and it understands this is a way to classify samples into profit, loss, or wait-and-see categories based on upper barrier, lower barrier, and time barrier. Ask to “explain the predictions after training,” and it proposes Shapley-value-based feature attribution. Mention momentum and reversal factors, and it knows which ones need cross-sectional standardization or rank normalization.

    But conventions are unstable. The most typical case is how price adjustment methods (raw, back-adjusted/forward-adjusted, unadjusted) affect factor computation—it can’t decide on its own, and its preferred response is to write a small comparison script and let data replace assertion. This is actually a healthy engineering habit: converting uncertain convention questions into verifiable experiments rather than fabricating an answer.

    1. # Turn "uncertain convention" into a verifiable experiment
    2. def compare_adjust(price_raw, price_hfq, factor_fn, label_fn):
    3. for name, px in [("raw", price_raw), ("hfq", price_hfq)]:
    4. f = factor_fn(px) # e.g., 20-day momentum
    5. y = label_fn(px) # e.g., triple-barrier labels
    6. print(name, ic_report(f, y)) # compare IC mean / hit rate

    3.3 Code Correctness: Cross-Review, Not One-Way Reliance

    Errors during generation are not rare: inconsistent field names, misaligned timestamps, index out-of-bounds, look-ahead bias in backtests (using the same day’s close to compute that day’s signal). Its value lies not in “getting it right the first time,” but in forming a two-way error-hunting loop with humans: humans can find problems in its implementations, and it can spot hidden risks in human-written code. This symmetry makes it a low-cost code reviewer, not just a code generator.

    The practical advice is to front-load review as constraints rather than patching afterward:

    • Explicitly forbid look-ahead bias—apply shift to all signals relative to execution time;
    • Enforce clear time boundaries between training, validation, and test sets;
    • Require that any change to data conventions be accompanied by comparison experiment output.

    3.4 One End-to-End Result (a Single Experiment, Not a Conclusion)

    A strategy generated with a gradient-boosted-tree-type model plus momentum/reversal factors, after a single manual parameter tweak posted a double-digit annualized return in a sample backtest—but with a Sharpe ratio of only about 0.5–0.6, the “profitable but poor holding experience” category: returns depended heavily on a few market episodes, and drawdowns and volatility were unfriendly to both psychology and the equity curve. To emphasize: this is a single-sample, single-parameter result without custom factors, intended only to show the tool can produce a usable baseline, not as any performance conclusion.

    Another typical failure mode involved the timing of a “textbook-external” factor: the tool constructed limit-up/limit-down-related features (important in the A-share market but lacking standard definitions), and the logic did catch a certain instrument—but it bought before the rally and sold before the rally too, effectively giving up all the excess return. This shows correct factor logic ≠ correct trade timing: the tool remains weak on execution-layer timing (signal lag, holding period, stop-loss triggers).

    4. A Reproducible Collaboration Paradigm: Wish-Based Programming with Optional Factors

    The traditional approach hard-codes factors into the source, requiring code edits for every experiment—very inflexible. A more engineering-minded way is to introduce a factor registry: before backtesting, check which factors participate in computation via the UI, realizing “wish-based programming”—humans express intent only; the tool generates and maintains the configuration.

    1. FACTOR_REGISTRY = {
    2. "mom_20": {"fn": momentum, "window": 20, "norm": "zscore"},
    3. "rev_5": {"fn": reversal, "window": 5, "norm": "rank"},
    4. "limit_up_gene": {"fn": limit_up_gene, "window": 60, "norm": "zscore"},
    5. }
    6. def build_features(df, selected, adjust="hfq"):
    7. px = load_price(df, adjust=adjust)
    8. feats = {}
    9. for name in selected:
    10. spec = FACTOR_REGISTRY[name]
    11. raw = spec["fn"](px, spec["window"])
    12. feats[name] = normalize(raw, spec["norm"]) # cross-sectional standardization / ranking
    13. return pd.DataFrame(feats, index=px.index)

    Label generation uses the triple-barrier method accordingly, turning “did it make money” into a learnable supervised target:

    1. def triple_barrier(close, up, down, max_hold=10):
    2. labels, i = {}, 0
    3. for t in range(len(close) - max_hold):
    4. for k in range(1, max_hold + 1):
    5. if close[t + k] >= up[t]: labels[t] = 1; break
    6. if close[t + k] <= down[t]: labels[t] = -1; break
    7. else: labels[t] = 0
    8. return pd.Series(labels)

    5. Parameter Optimization: Guard Against Overfitting First, Then Talk Returns

    Ask a tool to “design a parameter optimization scheme,” and the most likely output is grid search plus the best parameter set—precisely the standard recipe for overfitting. A more robust scheme should include four things:

    1. Walk-forward validation: Select parameters on a training window, evaluate on the immediately following test window, roll both forward—never select parameters with future data.
    2. Search space constraints: Sample parameters only on logarithmic scales or coarse grids, cap total trials, and keep a trial ledger.
    3. Robustness-first selection criteria: Instead of “highest return,” use a weighted combination of median test-window Sharpe and worst-window performance.
    4. Hold-out and permutation tests: Reserve a tail segment of data that participates in no decision; use shuffled-label controls to confirm the strategy isn’t a random artifact.
    1. for train_end in range(w0, n - w1, step):
    2. best = search(params_grid, data[:train_end]) # select params on training window only
    3. m = evaluate(best, data[train_end:train_end + w1]) # immediately adjacent test window
    4. ledger.append((train_end, best, m.sharpe, m.mdd))

    6. Risk Boundaries and Conclusion

    Four boundaries need to be explicit. First, data leakage is the most common hidden failure mode in this kind of collaboration—every time-series alignment and shift should be generated by the tool but reviewed by a human. Second, return metrics are not usability: a low-Sharpe strategy is hard to deploy even with positive returns. Third, attribution methods explain the model, not the market—Shapley-type attribution yields feature contributions, not causal conclusions. Fourth, execution-layer timing remains a clear weakness; the lag between signal and execution must be modeled explicitly.

    Overall assessment: these multimodal coding tools can be fully delegated for UI and boilerplate code, offer usable breadth in domain concepts, but still require human judgment on conventions and trade timing. The sensible division of labor is: the tool handles capacity; humans handle conventions, timing, and risk constraints. Under this arrangement, labor is indeed substantially saved—while the ceiling on strategy quality remains determined by the researcher’s own factors and algorithms.