Begin with a defined objective
A workflow starts with a question, not a model. The objective might be to estimate next-session volatility, classify whether a market condition meets a definition, or rank observations for further research. Specify the asset universe, decision time, forecast horizon, and how the output might be used. “Find profitable trades” is too broad to evaluate because it leaves the target and decision process undefined.
The objective determines what data and evaluation make sense. A volatility estimate is not a directional forecast, and a classification target requires clear class boundaries. Defining the task also helps prevent a research score from being mistaken for an executable instruction.
Collect data that matches the question
The data may include prices, trading volume, order-book observations, company or economic information, and—where relevant—text or other alternative data. Each source has different coverage, timing, licensing, and error characteristics. A daily close cannot answer an intraday question in the same way as timestamped intraday observations.
Record when each value would have been available, not just the date attached to a historical record. News may be published after an event, economic data may be revised, and vendor feeds can arrive with delays. Collecting more inputs does not automatically improve a model; each source should have a defensible connection to the research objective.
Clean and prepare the observations
Raw feeds commonly need checks for missing values, duplicates, inconsistent symbols, out-of-order timestamps, unit changes, and implausible values. Different markets have different sessions and calendars, so observations must be aligned deliberately. If a source is revised or delayed, the research record should reflect what was knowable at the decision time.
Preparation choices can change the result. Filling a missing price with zero, for example, could create a false move; forward-filling an input may be reasonable for one field but misleading for another. Keep a record of transformations and ensure that preprocessing does not use future observations. This is part of making the experiment reflect a plausible information flow.
Create inputs that represent the relevant information
A model usually receives structured inputs rather than raw market feeds exactly as delivered. A researcher may derive returns over defined intervals, rolling volatility, volume changes, or other measures related to the objective. Text may be converted into categories or scores, but those transformations require decisions about sources, timing, and interpretation.
Each input should be available at the simulated decision time and should have a clear rationale. Too many features or repeated experimentation can make it easier to fit chance patterns. Our machine learning in trading guide explains feature design and common model families; this article focuses on how those elements fit into the wider lifecycle.
Train or configure a model
For a learned model, training estimates its parameters from examples. The examples pair inputs with a defined target, such as a future range or a market-condition label. A researcher chooses a model family and settings appropriate to the question, then fits it using the designated training observations. A rules-based model may instead be configured with explicit conditions; that is algorithmic logic, not necessarily machine learning.
Model complexity should be justified by the problem and compared with a sensible baseline. A complex model can fit noise, while a simpler model may be easier to inspect and maintain. Training establishes how the model fits its development data; it does not establish how it will behave on new observations.
Generate and interpret predictions or signals
Once configured, the model applies its learned parameters or rules to current inputs and produces an output. Depending on the task, that output might be a predicted quantity, a probability, a category, or a score. It should be interpreted using its target and time horizon rather than as a universal measure of opportunity.
A model output is not automatically a trading signal, and a signal is not automatically a strategy or order. A signal is an interpretation or transformation of an output for a defined purpose. A strategy specifies the rules for whether and how that signal affects a decision. An order is an instruction sent to a broker or venue. The stages connect, but each requires its own logic and checks. See how AI trading signals are generated and evaluated for the distinctions among signal types.
Evaluate the model and the decision process
Evaluation asks whether the method behaves usefully beyond the observations used to develop it. Data should be separated in a way that respects chronology, and model choices should not be repeatedly tuned against the final evaluation sample. Compare results with a reasonable baseline and inspect errors across periods and conditions, not only one summary score.
If the output may inform trading, predictive evaluation is only one part of the question. A simulated decision process also depends on turnover, transaction costs, liquidity, slippage, and assumptions about order handling. Historical validation can reveal weaknesses but cannot guarantee future usefulness. Our guide to testing AI trading models covers the methodology in detail.
Apply risk rules before authorizing an action
A separate risk layer can check whether a proposed action fits defined constraints. It may consider current exposure, concentration, liquidity, loss limits, data health, or whether the model output is within an accepted operating range. A signal can be valid as a model output and still be rejected because the portfolio or system is already outside its limits.
Risk rules should be specified and tested as part of the process, rather than assumed to emerge from the model. They may restrict, delay, or prevent an action; they cannot remove market risk. See risk management in AI trading systems for examples of data, model, execution, and operational controls.
Translate an approved decision into an order
If a strategy and its risk checks authorize action, order logic determines what instruction to send: for example, an order type, quantity, price constraint, and time-in-force. This step depends on the instrument, venue, account permissions, and the system’s implementation. A forecast alone does not specify these details.
Before an order is sent, the system may need to verify that the input is current, the market is open, limits are satisfied, and the account or API can perform the requested operation. Rejections, partial fills, and delayed acknowledgements need explicit handling so the system does not assume an order was completed when it was not.
Account for execution conditions
An order is not the same as an execution. It may be filled fully, filled partially, rejected, or left open, depending on price, liquidity, venue rules, and market conditions. Spreads, latency, slippage, and market impact can cause realized execution to differ from the assumptions used in a research simulation.
Systems should record order requests and responses, reconcile reported positions, and avoid sending duplicates when acknowledgements are delayed. These operational details matter even when the model and strategy logic have not changed. They also explain why a backtest should not be described as observed live execution.
Monitor the operating system
After deployment, monitoring should cover both technical health and behavior: feed freshness, missing or out-of-range inputs, model outputs, order status, positions, and whether the process remains within its intended constraints. Alerts need enough context to support investigation. A system that continues producing outputs from stale data can look active while no longer following its design.
Define who reviews alerts and what happens when a feed, model, or venue behaves unexpectedly. Depending on the system, a response might pause new actions, switch to a restricted mode, or require human review. The choice should be planned and tested; it should not depend on improvisation during an incident.
Review and update the system carefully
Review observed behavior against the original objective and assumptions. Changes in data coverage, error rates, market conditions, model outputs, or execution may indicate that a closer investigation is needed. A change in performance should not automatically trigger retraining: first determine whether the cause is data, implementation, environment, or model behavior.
When a model or rule is changed, treat the change as a new version with a documented rationale and evaluation. Keep the process for updating separate from routine monitoring so that repeated adjustments do not turn evaluation data into development data. The system may be restricted or paused if its assumptions no longer hold; no update schedule can guarantee continued usefulness.
Hypothetical example: a volatility estimate through the workflow
Imagine a research team wants to flag conditions in a hypothetical list of liquid instruments when next-session volatility may be elevated. It defines the target as whether a specified volatility measure will cross a pre-set threshold over the next session. The team collects timestamped price and volume observations, checks missing values and market calendars, then derives lagged returns and rolling volatility as model inputs. These choices describe a research example, not a recommendation or a claim about a real market.
A classifier is trained on earlier observations and produces an estimated probability of 0.68 for one instrument on a later day. That probability is the model output. A separate signal rule might flag observations above a chosen threshold for analyst review; the threshold would need to be specified and evaluated rather than assumed to be meaningful. The signal is not yet a strategy or order.
Suppose the strategy says a flagged condition should trigger a review of an existing position rather than an automatic entry. A risk layer checks portfolio exposure and may reject any proposed increase because a defined exposure limit has already been reached. If the action passes, order logic specifies an instruction and checks account, venue, price, and quantity constraints. The order may still be partially filled or rejected, so execution records must be reconciled. Monitoring then checks data freshness, output behavior, order status, and exposure; later review determines whether assumptions or system components need attention.
This example shows the chain—model output, signal, strategy decision, risk approval, order, execution, and monitoring—without implying that the probability is accurate or that any action would be profitable. Each stage answers a different question and can stop the process.
Key takeaways
An AI trading workflow is a lifecycle: define a testable objective, obtain and prepare appropriate information, build inputs, configure a model, interpret and evaluate its output, apply risk rules, and handle orders and monitoring deliberately.
The boundaries matter. A model estimate is not a complete strategy, and a strategy decision is not an order or a confirmed execution. Keeping those stages explicit makes assumptions easier to evaluate and failures easier to locate. The broader concepts and terminology are introduced in What Is AI Trading?.