Multimodal AI Coding in Quantitative Trading: Practical Workflows and Engineering Boundaries

    This article examines how multimodal AI coding tools fit into a quantitative trading system, based on a full build of a web-based platform. It splits the work into three layers—presentation, domain logic, and engineering support—and explains which tasks can be delegated to AI and which must stay with humans. It also shares a reusable collaboration pattern called "wish-list programming," a four-step acceptance loop, and lessons from interpreting backtest results, showing that AI is best used as an efficient presentation-layer implementer and a competent domain knowledge advisor, not an autonomous strategy author.

    1. Background: Why Bring AI Coding into a Quant System

    Over the past year, AI coding tools with multimodal understanding have rapidly entered everyday development workflows. They can read screenshots, requirement descriptions, and code context at the same time, turning “describe the image” into “build the page from the image.” This capability is especially attractive for a quantitative trading system, a project where the interface is heavy but the logic is even heavier. On one hand, the frontend usually consists of many tables, parameter panels, and attribution charts, with a high degree of repetition. On the other hand, strategy logic demands near-perfect correctness, and any deviation in how a factor is defined can distort backtest conclusions.

    This article does not evaluate any specific product. Instead, it abstracts a general question: When multimodal AI coding enters a financial quantitative scenario, which work can be handed off, and which must be guarded by humans? The discussion below is based on a complete practice process of building a web-based quantitative trading system.

    2. Capability Layers: Splitting the System into Three Task Types

    To make AI coding deliver value, the first step is not picking a tool but layering the tasks. In practice, the system can be split into three layers:

    1. Presentation layer: parameter panels, factor selection areas, net value curves, drawdown charts, and attribution waterfall charts. The feature is “visually verifiable”—mistakes are obvious at a glance.
    2. Domain logic layer: adjustment methods, factor normalization, triple-barrier labeling, and look-ahead bias control. The feature is “mistakes are invisible”—they can only be verified through tests and reasoning.
    3. Engineering support layer: data pipelines, task scheduling, logging and monitoring alerts, and object storage archiving of backtest results. The feature is a high degree of standardization, suitable for template-based generation.

    After layering, the division of labor becomes clear: the presentation layer can be largely delegated to AI coding; the engineering support layer can be handled by templates and standards; the domain logic layer must be led by humans in design and backed by automated tests.

    3. Observed Results: Precise Interfaces, Reasoned Logic

    In the presentation layer, multimodal capability feels the strongest. Given a reference image or a text description, the model can fairly stably generate a runnable page. Layout, controls, and interactions are basically “point and hit,” and rework mainly concentrates on alignment details and empty-state handling rather than a complete rewrite. Work that used to take days of hand-coding and style tuning can now be compressed to hours.

    In the domain logic layer, the performance is “not right on the first try, but able to reason things through.” This is exactly the key to usability. The model has fairly complete general world knowledge: when the triple-barrier method is mentioned, it can give an idea for constructing labels; when the interpretability of tree model predictions is mentioned, it can think of attribution methods based on feature contributions; when momentum and reversal factors are mentioned, it knows cross-sectional standardization is needed. But when it comes to niche questions such as how the adjustment method affects factor definition, it does not always give a stable answer—its response is to write tests, run data, and reason backward from results, which is an engineering habit worth learning from.

    In terms of code quality, it is at a level where “both sides can find fault with each other”: the generated code has defects, but it can also identify problems in human code. So the reasonable engineering stance is not “trust a single generation” but to establish a mechanism of two-person review plus automated verification.

    4. A Reusable Collaboration Pattern: Wish-List Programming and an Acceptance Loop

    The most valuable thing to consolidate in practice is “wish-list programming”: turn strategy elements into configurable items, and let humans select the set of factors to participate in the calculation before backtesting, rather than hard-coding factors in the code.

    1. # The factor set is configuration-driven and can be freely selected before backtesting
    2. FACTOR_REGISTRY = {
    3. "momentum_20": lambda df: df["close"].pct_change(20),
    4. "reversal_5": lambda df: -df["close"].pct_change(5),
    5. "limit_up_gene": lambda df: df["limit_up_flag"].rolling(60).mean(),
    6. }
    7. def build_features(df, selected):
    8. missing = set(selected) - set(FACTOR_REGISTRY)
    9. if missing:
    10. raise ValueError(f"Unregistered factors: {missing}")
    11. out = df.copy()
    12. for name in selected:
    13. out[name] = FACTOR_REGISTRY[name](df)
    14. # Cross-sectional standardization to avoid scale differences dominating tree model splits
    15. out[selected] = out[selected].rank(axis=0, pct=True)
    16. return out

    The recommended acceptance loop is fixed at four steps: static checks → unit tests → small-sample backtest → metric review. Unit tests should specifically cover definition-related assertions, such as adjustment methods, suspension handling, and tradability under price limits, which are the main sources of backtest distortion.

    5. Interpreting Results: Return Is Not the Only Metric

    A strategy using only a tree model with two basic factor types—momentum and reversal—and no proprietary factors yet, produced an annualized return of about 12.55% after adjusting one parameter, but with a drawdown of only 0.58 (on the low side). This falls into “makes money but poor holding experience.” The informative part of this result is: basic factors plus an automated engineering pipeline can already quickly produce a backtestable baseline, while experience metrics (drawdown, win rate, turnover) are the main direction for subsequent iteration.

    The attribution step also exposed a typical problem: the model constructed a “limit-up gene” type factor with local market characteristics on its own, showing a certain scene-transfer capability; but the timing of trades was poor, buying before the target started rising and selling before it started rising, ultimately failing to capture the profit. This suggests that factor effectiveness and timing effectiveness must be evaluated separately, and one total return should not mask two separate errors.

    6. Engineering Recommendations

    • Outsource the interface, insource the definitions: delegate the presentation layer to AI coding, and consolidate definitions and label specifications into team documentation and assertions.
    • Let the model write tests: for uncertain domain details, require a verification plan before an implementation, and replace guesses with data-driven conclusions.
    • Prioritize configuration: make factors, parameters, and backtest ranges fully configurable to reduce the risk of “fix one thing, break many.”
    • Complete observability: route task scheduling failures, missing data, and backtest exceptions into a unified logging service and monitoring alerts, and archive result artifacts to object storage to ensure reproducibility.
    • Cost perspective: in some subscription scenarios, such models can be tried at zero cost, but the real cost savings come from freeing up human effort, not from the invocation fees themselves.

    7. Conclusion

    The current real positioning of multimodal AI coding is an efficient presentation-layer implementer and a competent domain knowledge advisor, not a strategy author that can take independent responsibility. Handing off visually verifiable work, keeping definition correctness, timing logic, and risk control in human hands, and building guardrails with tests and monitoring is the reliable way to land this in a quantitative scenario. If task orchestration is further done on a container platform and data updates are decoupled on a message queue, this collaboration model can smoothly scale into a team-level development process.