Skip to main content
aifinhub
AI in Markets Formula

Cost Per Validated Trade Formula

Cost per validated trade divides the total LLM and validation spend by the number of trade signals that actually clear validation. It captures the real unit economics of an AI trading agent: every signal the model proposes costs tokens, but only the ones that pass the checks become tradeable, so the rejects inflate the cost of each usable trade. It must stay well below the edge per trade.

By AI Fin Hub Research · AI Fin Hub Team
Best Next MoveCalculators

Agent Cost Envelope Calculator

Model an LLM research loop end-to-end — steps, tool calls, convergence checks, markets per day — and see per-loop, daily, and monthly cost with cost-cap.

CalculatorOpen ->

On This Page

Formula

Copy the exact expression or work through it step by step below.

CostPerValidatedTrade = (N_signals x CostPerSignal) / N_validated N_validated = N_signals x ValidationPassRate

Variables

N_signals

Signals generated

Total number of candidate trade signals the agent produces, each consuming an LLM call (or several). Every signal costs money whether or not it is ultimately traded.

CostPerSignal

Cost per signal

The LLM and tooling cost to generate and check one candidate signal, including prompt, generation, and any validation calls. Computed from the cost-per-1K-tokens formula across the full pipeline for one signal.

ValidationPassRate

Validation pass rate

Fraction of generated signals that survive validation (sanity checks, risk gates, confidence thresholds). A low pass rate means most spend goes to rejected signals, raising the cost of each validated trade.

N_validated

Validated trades

Number of signals that pass validation and become actual trades, equal to signals times the pass rate. This is the denominator that matters for unit economics.

Step By Step

  1. 1

    Count signals generated and compute the per-signal LLM cost.

    The agent generates 1,000 signals a day at 0.08 each in LLM cost.

  2. 2

    Determine the validation pass rate from the pipeline logs.

    Only 12% of signals clear the risk and confidence gates.

  3. 3

    Compute validated trades as signals times pass rate.

    1,000 x 0.12 = 120 validated trades.

  4. 4

    Divide total cost by validated trades, then compare to the expected edge per trade.

    Total cost 1,000 x 0.08 = 80; cost per validated trade = 80 / 120 = 0.667.

Worked Example

AI signal agent with a strict validation gate

Signals generated

1,000/day

Cost per signal

0.08

Validation pass rate

12%

Total cost = 1,000 x 0.08 = 80. Validated trades = 1,000 x 0.12 = 120. Cost per validated trade = 80 / 120 = 0.667. Equivalently, CostPerSignal / PassRate = 0.08 / 0.12 = 0.667.

About 0.67 per validated trade, more than 8x the 0.08 raw cost per signal, because 88% of generations are discarded. This number is the gate on viability: if the strategy's expected profit per trade is, say, 2.00, an LLM cost of 0.67 leaves room, but if a tighter gate drops the pass rate to 3%, cost per validated trade jumps to 0.08/0.03 = 2.67 and the agent loses money on each trade before slippage. Raise the pass rate (better prompting, cheaper pre-filtering) or cut per-signal cost.

Common Variations

Cost per profitable trade: divide by only the trades that closed in profit, the harshest and most honest unit-economics view.
Pre-filter staging: run a cheap model to discard obvious rejects before the expensive model, lowering effective cost per signal.
Fully loaded cost: add data, infrastructure, and human-review cost to the LLM spend for a true all-in figure.

Try These Tools

Run the numbers next

Sources & References

Related Content

Keep the topic connected

Planning estimates only — not financial, tax, or investment advice.