Technical Analysis

Wyckoff Factors, Compiled by AI: Market Structure as Code

The Wyckoff method is a judgement process; these seven factors are its computable parts. The full schematics — accumulation and distribution event chains, phases A–E, the buying checklist — and how an AI pipeline compiles them into rules, with measured signal-density numbers per timeframe.

Nov 25, 2026
Updated Nov 28, 2026
17 min read

Introduction

Wyckoff factors are a set of seven indicators that translate the parts of the Wyckoff method — a century-old framework for reading accumulation and distribution in market structure — into numbers a trading rule can compute from candles: where price sits inside its range, whether volume is producing movement or being absorbed, how decisively a single candle closed, and whether a spring, an upthrust or a sign of strength just occurred. In TodoAI they are ordinary indicators in the strategy language: you can use them in any rule, and the same implementation feeds the live engine and the backtest engine, so a factor does not quietly mean one thing in a backtest and another on the live tick.

What makes the AI angle worth its own article is not “an AI wrote a Wyckoff strategy” — any language model can emit plausible rules. The interesting questions are about the pipeline around the model: what the AI sees before it writes (a machine reading of the current market structure, passed in as context), what its output compiles into (executable rules whose semantics do not drift), and what survives after deployment (a per-trade audit trail that records the actual factor values behind every decision). This article walks that pipeline and is explicit about where the method resists automation.

Why the Wyckoff method resists automation

The method rests on three laws — supply and demand, effort versus result, and location (compare before you trade) — and on a judgement process: a human weighing whether a breakout came at a boundary that had been tested many times, whether volume confirms the move, and which phase of the cycle the market is in. None of that is directly computable from candles. What is computable is a set of mechanical approximations: a rolling-window low is not a tested support, but a dip below it that closes back above is observable; volume divided by price displacement is not “effort versus result” as Wyckoff meant it, but it is measurable. TodoAI's factors are exactly these approximations, and the documentation for each one says so in plain words rather than hiding the gap behind a confident name.

This honesty is not a disclaimer bolted on afterwards; it changes how you should use the factors. A SPRING_STRENGTH reading here means “a spring-shaped move happened against a rolling-window low”, not “a confirmed spring at a support that was tested many times”. A sophisticated-looking factor is not the same as one that beats a random-entry baseline, and none of these come with an edge promised. What they come with is a defined range, a defined warmup behaviour, and measured signal densities — the inputs a validation workflow needs.

The three laws, and the seven factors

The seven factors map onto the laws like this — three of them are the event factors that detect market-structure events, three are context factors that describe where the market is, and one is a single-candle reading:

Wyckoff conceptFactorRangeWhat it measures
Effort vs resultEVR(period)0..∞, ~1 normalVolume divided by price displacement, normalized by ATR
Location firstRANGE_POS(period)0..100Where the close sits inside the recent high-low range
Supply and demand (spring)SPRING_STRENGTH(period)0..100False breakdown: dip below the prior low that closes back above
Supply and demand (upthrust)UTAD_STRENGTH(period)0..100False breakout: spike above the prior high that closes back below
Supply and demand (breakout)SOS_STRENGTH(period)0..100Decisive close above the prior high, scored in ATR units
Relative volumeVOL_RATIO(period)0..∞, 1.0 averageCurrent volume over its window average
Candle convictionCANDLE_STRENGTH-100..+100Body-versus-shadows balance of one candle

A rule like RANGE_POS(20) < 25 AND SPRING_STRENGTH(20) > 60 is therefore a mechanical version of “buy the spring near the bottom of the range” — and the conjunction matters. The same volume means opposite things at the bottom of a range and at the top of one; a low effort-vs-result reading is ambiguous until location disambiguates it. The Wyckoff ordering — location before signal — is enforced by how you compose the rules, not by anything in the factors.

The accumulation schematic, event by event

The method's core picture is the trading range: after a downtrend stops, the composite operator — the large-interest trader whose fills the market gives away — quietly accumulates a position while price oscillates. Wyckoff drew this as a schematic with named events, and the names are worth knowing because every Wyckoff conversation since has used them. Here is the accumulation chain, with the factor that approximates each event (or the honest admission that none does):

The Wyckoff accumulation schematic with phases A to EA hand-drawn illustration of the classic accumulation schematic. A prior downtrend on the left stops at preliminary support and the selling climax, which prints the range floor. An automatic rally to the range ceiling is followed by secondary tests of both boundaries on declining volume through phase B. In phase C a spring pushes below the floor and closes back above it, followed by a low-volume test. In phase D a sign of strength breaks the ceiling on expanding volume and a last point of support holds above the old ceiling. Phase E is the new uptrend. A mini volume panel below shows volume spiking at the climax, the spring and the break, and shrinking at the tests.AB · building the causeCDErange ceiling (AR high)range floor (SC low)prior downtrendnew uptrendPSSCARSTSpringTestSOSLPSvolume
The accumulation schematic, with phases A–E and a volume strip beneath. Volume expands at the selling climax, the spring and the sign of strength — and shrinks at the secondary tests, which is the evidence that supply is drying up. Hand-drawn illustration of the canonical structure, not real market data.
EventWhat happensApproximated by
PS — preliminary supportAfter a long decline, the first buying that meaningfully slows the fall. Volume begins to increase — someone is absorbing.Nothing directly; it is a judgment that a trend's first real stop has occurred.
SC — selling climaxPanic exhausts itself: a wide-range, very-high-volume candle that closes off its lows. The range's floor is printed here.Nothing directly. VOL_RATIO and EVR provide the underlying readings (volume spike, effort with a limited result), but calling a candle a climax is judgment.
AR — automatic rallyThe rally that happens because the climax sold out the remaining supply. Its extent marks the range's ceiling.Nothing directly.
ST — secondary testPrice revisits the SC area on declining volume. If supply were still being offered, the retest would be heavy; it is not, so the range forms.RANGE_POS describes where price sits inside the forming range; the declining-volume judgment is VOL_RATIO's job but is not factorized.
Spring (Phase C)A push below the range low that closes back above it — the final shakeout that catches stops and confirms how little supply is left.SPRING_STRENGTH — the one event factor built exactly for this.
TestA low-volume re-approach of the spring low. The smaller the volume, the stronger the evidence that supply is exhausted.VOL_RATIO gives the reading; the “test of the spring low” relationship is yours to compose.
SOS — sign of strengthA decisive advance on expanding volume that breaks the range ceiling — demand has won, price leaves the range.SOS_STRENGTH scores the break; the volume behind it is VOL_RATIO's.
LPS — last point of supportThe pullback after the SOS that holds above the range edge — historically the safer entry than buying the breakout itself.RANGE_POS near the top of the old range; the “holds” is a judgment.

The sequence is the point. A spring on its own is a shape; a spring after a climax-and-retest range, followed by a SOS and an LPS that holds, is a structure with a story — and each step either confirms or invalidates the one before it.

A spring sequence annotated with the factor readingsA hand-drawn candlestick sequence. Three declining candles approach a dashed support line. The fourth candle, the spring, plunges well below the support on high volume but closes near its high, back above the line. The fifth candle is a small, low-volume test that re-approaches the support and holds. The remaining candles rally away. Callouts show what the factors read on each step: RANGE_POS near 12 at the spring, SPRING_STRENGTH of 72 for the reclaim, a volume ratio near 0.6 on the quiet test.prior low — a rolling-window low, not a proven supportvolumespringtestSPRING_STRENGTH(20) = 72 — reclaim above the prior lowRANGE_POS(20) ≈ 12 — the close sits at the bottom of its windowVOL_RATIO ≈ 0.6 — the quiet test
The spring sequence, annotated with what the factors read on each step. The rule “RANGE_POS(20) < 25 AND SPRING_STRENGTH(20) > 60” is this picture written as code — and the quiet test afterwards is the part a mechanical rule must compose separately. Illustrative candles, not real market data.

The distribution schematic

The mirror image, where the composite operator sells into strength while the crowd keeps buying:

The Wyckoff distribution schematic with phases A to EA hand-drawn illustration of the classic distribution schematic, the mirror image of accumulation. A prior uptrend on the left stops at preliminary supply and the buying climax, which prints the range ceiling. An automatic reaction to the range floor is followed by secondary tests through phase B. In phase C an upthrust after distribution pushes above the ceiling and closes back below it. In phase D a sign of weakness breaks the floor on expanding volume and a last point of supply fails to reach the range again. Phase E is the new downtrend. A mini volume panel below shows volume spiking at the climax, the upthrust and the break.AB · building the causeCDErange ceiling (BC high)range floor (AR low)prior uptrendnew downtrendPSYBCARSTUTADSOWLPSYvolume
The distribution schematic — the same geometry read upside down. The upthrust (UTAD) is the spring's mirror; the sign of weakness breaks the floor the way the sign of strength broke the ceiling. Hand-drawn illustration of the canonical structure, not real market data.
EventWhat happensApproximated by
PSY — preliminary supplyAfter a long advance, the first significant selling pressure — the uptrend shows its first real crack.Nothing directly.
BC — buying climaxEuphoria exhausts itself: wide-range, very-high-volume candle closing off its highs. The range's roof is printed here.Nothing directly (same readings as the SC case).
AR — automatic reactionThe drop that happens because no buyer is left above. Its low marks the range floor.Nothing directly.
ST — secondary testRevisit of the BC area on reduced momentum. Demand is weaker than at the top — the range forms.RANGE_POS for location; momentum quality is judgment.
UT / UTAD — upthrust after distributionA push above the range high that closes back below it — the bull trap that buys in trapped demand and fills the last shares to sell.UTAD_STRENGTH — the exact mirror of SPRING_STRENGTH.
SOW — sign of weaknessA decisive decline on expanding volume through the range floor.Nothing dedicated — SOS_STRENGTH is directional (bullish), so a bearish break is composed from RANGE_POS and the event factors' absence.
LPSY — last point of supplyThe weak rally after the SOW that cannot reach the range again — the safer short entry.RANGE_POS failing to return to the top of the old range; “cannot reach” is a judgment.

Note the asymmetry in the third column: the bullish events got dedicated factors, the bearish ones partially did not. That is a recorded limitation of the current implementation, not a claim that bearish structures matter less — a short strategy on this method today composes from location factors and the absence of bullish events, or waits for a bearish break to be expressed through RANGE_POS leaving the top of the range.

Phases A–E: the story the range tells

The schematics are read through five phases, and the phasing is what turns a static picture into a process — “which question should I be asking right now?”:

PhaseThe question it answersSignature events
AHas the prior trend actually stopped?PS/SC/AR/ST (accumulation) or PSY/BC/AR/ST (distribution) — the range is born.
BHow large is the cause being built? (the “cause” that will produce an “effect”)Repeated tests of both boundaries; the range is a battle and its duration measures the position being built.
CIs the supply (or demand) really exhausted? Prove it.The spring (accumulation) or the upthrust (distribution) — the terminal test, and the phase where the method's most famous traps live.
DWho has won, and is it showing?SOS + LPS (accumulation) or SOW + LPSY (distribution) — price leaves the range and the retest holds.
EIs the new trend in progress?Price is out of the range and the old boundary now acts as the new trend's support or resistance.

TodoAI's market structure analyzer implements a heuristic version of exactly this phasing — a candle that marks Phase A, a phase-C candidate that has not been invalidated, the distinction between “just broke out” (D) and “retest held” (E) — and it refuses to guess: without a recognizable range and prior trend, the reading is UNKNOWN. That refusal matters more than the labels: a phase label produced when there is no range is how the method gets faked.

The buying checklist, condensed

Wyckoff's course formalized the process as a checklist of tests to pass before committing money — nine buying tests and nine selling tests in the canonical wording (the condensed version below keeps their order; see the Wyckoff Analytics guide in the sources for the full treatment). The order of reasoning survives any condensation, and it maps cleanly onto what can and cannot be computed:

#Test, condensedComputable?
1Location: price is at a range's lower boundary, in a structure the prior trend stopped in.Yes — RANGE_POS.
2Phase A evidence: a climax-and-retest pair exists; the range is real.Partially — volume and displacement readings support it (EVR, VOL_RATIO); “climax” is judgment.
3Effort vs result: rallies carry expanding volume, declines carry shrinking volume.Partially — VOL_RATIO supplies the readings; the rally/decline pairing is composition work.
4Phase C: a spring (or shakeout) occurred and was reclaimed.Yes — SPRING_STRENGTH.
5Phase D: an SOS on good volume, and an LPS that held.Mostly — SOS_STRENGTH for the break, VOL_RATIO for its volume, location for the LPS.
6Reward: the projected move out of the range is large enough to justify the stop.Not a factor — this is position sizing and the point-and-figure price objective, i.e. a separate decision.

Read the third column honestly: four of the six tests are fully or mostly computable, and the two that are not — “is this a real climax?” and “is the reward large enough?” — are exactly the two where an automated system would be fabricating confidence. The factor set was designed to cover the structural tests and leave the judgment tests open, rather than pretending to cover all of them thinly.

Re-accumulation, re-distribution, and failed structures

Two structural refinements finish the picture. First, the same schematics appear inside established trends as re-accumulation (a consolidation range in an uptrend, ending in an upward departure) and re-distribution (a consolidation in a downtrend) — which is why the phase logic matters more than the direction: the same spring that is an entry signal in a larger accumulation can be a bull trap inside a larger distribution. Second, structures fail: a spring that is followed by consecutive closes below the range low was not a spring, it was a breakdown — the analyzer encodes this as an event state (candidate → confirmed → invalidated) rather than an irrevocable label. A mechanical system that treats the first shape as the verdict, without the confirmation chain and its invalidation path, is not implementing this method; it is implementing a simplified version of it that the method's own author warned against.

Where AI enters: three touchpoints

The factors are computed by deterministic code. The AI is involved at three specific points around them, and each one is worth examining separately, because each is a place where an AI system can either earn its keep or quietly make things worse.

1. Before generation: the market structure analyzer

When you ask the AI generator for a strategy, the candles are first read by a heuristic analyzer that produces a machine reading of the current structure: a range built from levels that were tested repeatedly rather than simply the highest high and lowest low, a phase label from A to E, detected events (spring, upthrust, sign of strength, sign of weakness), an effort-versus-result label, and a multi-timeframe note. That reading is passed to the language model as context, alongside the factors it is allowed to reference. The generator is therefore not writing rules about a market it has never seen — it is writing rules about a structure somebody already measured for it.

The analyzer is honest about being a heuristic: its own output carries the line “this is a heuristic lead, not a verdict. A phase or event label alone is NOT evidence.” Its thresholds are engineering knobs, not parameters measured against real market data. That is the right posture — it means the AI's context is labelled as a lead rather than smuggled in as an oracle, and a human reviewing the generated strategy can see exactly what the model was told.

2. At generation time: compiling language into rules

The generator's output is not free text — it is a strategy language (DSL) whose rules reference the factors by name, with parsed parameters, evaluated under defined semantics: warmup returns no value so nothing trades on an incomplete window; the event factors return 0 once data is sufficient but no event occurred, and 0 is a real value you can compare against a threshold; an event factor holds its most recent event, so SPRING_STRENGTH(30) > 60 can stay true for up to 30 bars after the spring happened. Compilation is what makes the AI output auditable: two people who receive the same DSL get the same trades, and a rule can be rejected at parse time if it references a factor wrongly (giving the parameter-less CANDLE_STRENGTH an argument is rejected rather than silently ignored).

This is the same principle as the rest of the platform's validation stack: the model proposes, deterministic code disposes. The random-entry baseline reuses the same engine that will trade the strategy, so the percentile it reports measures the entries against chance and nothing else.

3. After deployment: the factors appear in the audit trail

Once a strategy is live, every executed decision produces a decision record: which rules were evaluated (including the ones that did not fire), the actual numeric value of every factor involved, the candle the decision was made on, and the effective stop-loss and take-profit. If a rule was RANGE_POS(20) < 25 AND SPRING_STRENGTH(20) > 60, the record shows the real readings — say 21.3 against 25 and 67.8 against 60 — not a bare “signal triggered”. When a factor was still warming up and had no value, the record says so explicitly rather than writing a zero that never existed.

This is where the AI handoff closes its loop. A model generated rules from a structure reading; months later, a losing trade can be traced to the exact factor values behind its entry — and the question “was the spring real or was the rolling window fooling us?” becomes a data lookup instead of a memory exercise. Nothing in the trail is model-generated: the AI proposed rules, but the numbers in the record come from the same deterministic factor implementations that traded the account.

What the signal density actually is

Event factors are rare on high timeframes and dense on low ones, and the difference is large enough to change what a strategy on them even is. Measured on 251 days of BTC/USDT daily candles and 250 days of hourly candles with the default 20-bar window:

Event factorDaily bars (per year)Hourly bars (per year)
SPRING_STRENGTH~19~426
UTAD_STRENGTH~22~495
SOS_STRENGTH~15~384
Signal density per year, daily versus hourly barsGrouped horizontal bar chart. For each of the three event factors, a short blue bar shows roughly 15 to 22 signals per year on daily bars, next to a long green bar showing roughly 380 to 500 per year on hourly bars. The linear scale makes the daily bars almost invisible, which is the point: the same factor is a handful of events a year on one timeframe and a continuously-firing score on another.daily barshourly barsSPRING_STRENGTH~19/yr~426/yrUTAD_STRENGTH~22/yr~495/yrSOS_STRENGTH~15/yr~384/yrsignals per year, linear scale · measured on BTC/USDT, 20-bar window, 251 daily / 250 hourly candles
The same event factor measured on two timeframes. On daily bars the events are a handful per year — the method's nature. On hourly bars they fire hundreds of times, at which point the factor is less a rare-event detector than a continuously-varying score.
density=#{events in sample}#{bars in sample}×365bar interval (days)\text{density} = \frac{\#\{\text{events in sample}\}}{\#\{\text{bars in sample}\}} \times \frac{365}{\text{bar interval (days)}}

Two consequences. On daily and weekly bars, a strategy built on these events fires a handful of times a year and will often sit idle for weeks — that is the method's nature, not a broken strategy, and it is the timeframe where the “rolling window approximates a tested boundary” caveat bites least. On hourly bars the events are so dense that SPRING_STRENGTH(20) > 60 was true on a quarter of all bars in the measured sample — at which point the factor is less a rare event detector and more a continuously-varying score, and the strategy is really about the threshold and the companions you give it. Read the density off the timeframe you actually trade before you write any rule on these factors.

Using them with an agent

The factors are also reachable without the web UI. TodoAI exposes an MCP endpoint that AI agents (Claude, an OKX or Binance agent toolkit, your own tooling) can call: an agent can ask for a backtest of a strategy that uses EVR and RANGE_POS, and the result comes back with the buy-and-hold comparison included — so the agent reports an honest number rather than a flattering one. The same tier rules apply as in the app: strategy optimization is a paid feature, deployment to paper is available to everyone, and closing positions is never gated. The endpoint never receives exchange API keys; the agent passes intent, and the server executes with the credentials it already holds.

The practical workflow this enables: describe an idea in natural language (“buy springs near the bottom of a range, but only when volume confirms the recovery”), let the AI compile it into rules on these factors, run the random-entry baseline on the result, and read the decision records after it trades. The model is involved at the language boundary; the factors, the backtest and the audit trail stay deterministic.

What these factors do not do

The limits repeat here because they are the part most often lost when a method travels from a book to an indicator library. A rolling low is not a support that was tested many times; a phase label from a heuristic analyzer is a lead, not a verdict; an event factor reports the most recent event in its window, not the strongest; no reading confirms anything about the volume behind a break except VOL_RATIO's; and none of the seven measures whether the structure they describe belongs to the timeframe you are trading. Most importantly: no edge is promised. The factors make the method's observable parts computable and auditable; whether any particular composition of them is an edge is exactly the question the baseline test exists to answer, and the answer is frequently no.

Conclusion

The Wyckoff method survived a century because it asks the right questions — where is the market in its cycle, is volume doing the work, and has this level earned its significance. The seven factors in TodoAI translate the computable parts of those questions into indicators with defined semantics, an AI pipeline turns language into rules on top of them, and an audit trail records the real numbers behind every trade. What the pipeline deliberately does not do is let the AI improvise semantics: the model writes rules, the engine evaluates them identically everywhere, and the validation tests run before any money is at stake. Structure as code, judged by deterministic tests, explained by recorded numbers — that is the whole division of labour.

Sources

Put This Knowledge Into Practice

Build and backtest strategies with AI assistance. Turn concepts into profitable trading systems.

Try TodoAI Free
TodoAI Trade © 2026

Cryptocurrency trading involves substantial risk. Past performance does not guarantee future results. This platform is for educational and research purposes.