Wyckoff factors and natural trading theory
TodoAI ships seven factors derived from the Wyckoff method and natural trading theory. They are ordinary indicators in the DSL: you can use them in any rule, and the same implementation feeds the live engine and the backtest engine — a factor does not quietly mean one thing in a backtest and another on the live tick.
This page explains what each one measures, what its range is, when it helps, and — just as important — where it is only an approximation of the original method. They are most meaningful in rules that are actually about location, effort versus result, and range events; bolted onto an unrelated idea, they add no information.
Read this first
These factors are mechanical approximations of the parts of the Wyckoff method that can be computed from candles. The method itself is a judgement process: it asks a human to weigh context that no indicator has.
- A
SPRING_STRENGTHreading here means "a spring-shaped move happened against a rolling-window low" — not "a confirmed spring at a support that was tested many times". - Signal density depends on the timeframe. On daily and weekly bars these event factors fire a handful of times a year, and a strategy built on them will often sit idle for weeks — that is the method's nature, not a broken strategy. On hourly bars with the default 20-bar window they are much denser: measured over 250 days of BTC/USDT hourly candles, a spring-shaped event occurred 292 times (about 426 times a year) and
SPRING_STRENGTH(20) > 60was true on a quarter of all bars. Read the density off the timeframe you actually trade. - No edge is promised. A sophisticated-looking factor is not the same as one that beats a random-entry baseline. Backtest it and compare it against a random-entry baseline before you trust it.
The three Wyckoff laws, and where they live
| Wyckoff law | Factor | Range |
|---|---|---|
| Effort vs result | EVR(period) | 0..∞, around 1 is normal |
| Location first | RANGE_POS(period) | 0..100 (0 = bottom of the range) |
| Supply and demand | SPRING_STRENGTH, UTAD_STRENGTH, SOS_STRENGTH | 0..100 (0 = no event in the window) |
Natural trading theory contributes the volume pillar: VOL_RATIO(period) for relative volume, and CANDLE_STRENGTH for the strength of a single candle.
The factors
EVR(period) — effort vs result
Volume (the effort) divided by price displacement (the result), normalized by ATR. The per-bar ratio is averaged over the window, so the reading is a mean of ratios rather than the ratio of two averages.
- Range: 0..∞. Around 1 is normal.
- Use it to tell "lots of volume but no movement" (absorption suspected) from "volume and price moving together".
- A low EVR is ambiguous. It can mean high effort and high result (a trend advancing) or low effort and low result (nobody cares). You need
RANGE_POSto tell those apart — the same volume means opposite things at the bottom of a range and at the top of one.
RANGE_POS(period) — where price sits
The close's position inside the recent high-low range, as a percentage. A window whose highest high equals its lowest low has no range at all, and reads 50 — neutral, not an error.
- Range: 0..100. 0 is the bottom of the range, 100 the top.
- Use it first. Location comes before signal in the Wyckoff method.
- Caution: a rolling window's extremes are not "confirmed boundaries".
VOL_RATIO(period) — relative volume
Current volume divided by the average over the window.
- Range: 0..∞. 1.0 is average volume.
- Use it for volume confirmation on a breakout, and for telling a dominant-volume leg from a minor one.
- Caution: limited on its own. It is normally combined with
EVRor with one of the event factors.
CANDLE_STRENGTH — single candle strength
How decisively one candle closed, from the balance between its body and its shadows.
- Range: -100..+100. Positive is bullish, negative bearish, 0 is balanced (a doji is one way to land on 0, not the only one).
- Use it for very short-term timing, and for confirming that one candle is decisively bullish.
- Caution: shape only — volume is
VOL_RATIO's job. - Takes no parameters. Write
CANDLE_STRENGTH, notCANDLE_STRENGTH(14)— giving it an argument is rejected rather than silently ignored.
SPRING_STRENGTH(period) — spring
A dip below the prior rolling low that closes back above it, scored by how decisively the candle closed and how much of the drop was recovered.
- Range: 0..100. 0 means no such event in the window.
- Use it as evidence of a false breakdown in an accumulation structure.
- Caution: this is an approximation. A rolling low is not a support that was tested many times.
- Caution: how often this fires depends on the timeframe. On daily bars it fires about 19 times a year (measured: 13 events over 251 daily bars); on hourly bars with a 20-bar window it fires about 426 times a year (measured: 292 events over 250 days) — and because the reading persists for
periodbars after the event, the ruleSPRING_STRENGTH(20) > 60was true on a quarter of all hourly bars in the measured sample.
UTAD_STRENGTH(period) — upthrust after distribution
A spike above the prior rolling high that closes back below it. The mirror of SPRING_STRENGTH.
- Range: 0..100. 0 means no such event in the window.
- Use it as evidence of a false breakout in a distribution structure.
- Caution: the same proxy caveat as the spring — a rolling high is not a resistance that was tested many times — and the same timeframe-dependent signal density: about 22 times a year on daily bars (measured: 15 events over 251 daily bars), about 495 times a year on hourly bars (measured: 339 events over 250 days).
SOS_STRENGTH(period) — sign of strength
A close that breaks above the prior rolling high, scored by how far it broke (measured in ATR units) and how decisively it closed.
- Range: 0..100. 0 means no such event in the window.
- Use it for confirming that demand took over and price left the range.
- Caution: it measures the break, not the volume behind it. Judge that with
VOL_RATIO. It is also the least frequent of the three event factors: about 15 times a year on daily bars (measured: 10 events over 251 daily bars), about 384 times a year on hourly bars (measured: 263 events over 250 days).
Conventions that apply to all seven
These are the details that decide whether a rule on these factors behaves the way you expect.
| Convention | What it means |
|---|---|
| Warmup returns no value | Until the window is full, a factor has no reading and the rule simply does not fire. Nothing is traded on a warmup bar. |
| "No event" is 0, and it is a real value | The event factors (SPRING_STRENGTH, UTAD_STRENGTH, SOS_STRENGTH) return 0 once the data is sufficient but no event has occurred. 0 is a legitimate reading you can compare against a threshold; "no value" during warmup is not, which is why a rule like SPRING_STRENGTH(4) < 10 does not fire on the first candles. |
| Event factors hold the most recent event | Not the strongest event in the window. SPRING_STRENGTH(30) > 60 can therefore stay true for up to 30 bars after the spring happened. |
| The default window is 20 bars | Every factor that takes a window defaults to 20 unless you write one explicitly. |
| Warmup cost | EVR needs roughly 2× its window (the ratio and its average); the other windowed factors need about 1×. |
The market structure analyzer
When you ask the AI generator for a strategy, TodoAI first reads the current market structure from the candles and passes that reading into the generator as context. The reading comes from a heuristic analyzer.
It is a lead, not a verdict
The analyzer is a heuristic implementation, not a reproduction of the Wyckoff method. Its own output says so: "this is a heuristic lead, not a verdict. A phase or event label alone is NOT evidence." Its thresholds are engineering knobs that were not measured against real market data. Read it as context the generator was given — not as a market call handed to you.
It produces five things:
- a range — the price levels that have been tested repeatedly, not simply the highest high and the lowest low
- a phase, A through E
- events (SPRING / UTAD / SOS / SOW), each in one of three states
- an effort/result label
- a multi-timeframe note (higher / base / lower). The analyzer can read a higher and a lower timeframe and flags conflicts between timeframes rather than dropping one — but the generator currently supplies only the base timeframe, so in the context the generator actually receives,
higherandlowerreadUNKNOWN. Treat the conflict flagging as part of the analyzer's API, not as something you are getting today.
Phases A–E
| Phase | Reading | What the analyzer looks for |
|---|---|---|
| A | The prior trend stopped | A climax-volume candle (at least 3× the range's median volume) in the first quarter of the range |
| B | The range is being built | Boundaries tested repeatedly, no terminal test yet |
| C | Terminal test | A SPRING or UTAD candidate that has not been invalidated |
| D | Control is changing hands | Price has left the range, but the retest has not held yet |
| E | The trend is established | The retest held — price came back to the boundary and closed on the breakout side |
Two details are easy to get backwards, so they are spelled out:
- "Retest held" means E; "just broke out, retest not held yet" means D. A retest that holds is what completes the move: the analyzer calls the state before it D (control changing hands) and the state after it E (trend established).
- A failed breakout yields no phase at all (
UNKNOWN). If price closes back inside the range, that breakout did not happen and the analyzer does not guess.
When the evidence is insufficient — no recognizable range, no prior trend — the reading is UNKNOWN rather than a guess.
Effort/result labels
| Label | Condition |
|---|---|
UNKNOWN | EVR is not available yet (warmup) |
NORMAL | EVR < 2 — effort and result are in step |
ABSORPTION | EVR ≥ 2 and price is sitting at the edge of an established range — "lots of volume, no push, on support or resistance" |
EFFORT_WITHOUT_RESULT | EVR ≥ 2 but price is not near a range boundary — lots of volume, no push, but not at a key level |
The direction is easy to invert
EVR is effort divided by result, so a high EVR is "a lot of effort for very little result" — that is the absorption signature. A low EVR is effort small relative to result, which is the normal case. The analyzer's cut at 2 is its own fixed constant; it does not redefine the factor, whose own description calls around 1 the normal reading.
Event states
| State | Meaning |
|---|---|
CANDIDATE | The shape appeared, but the confirmation chain has not completed |
CONFIRMED | The shape plus its confirmation chain — for a spring, the reclaim, a retest that held, and an opposite departure |
INVALIDATED | Later price action contradicts it — e.g. two consecutive closes below the range low after a spring: that is a breakdown, not a spring |
How the range is found
A range boundary is a price level that was tested repeatedly — prices within 1% of each other count as the same level, and a level must have been tested on at least 10% of the window's bars (and at least twice). This is why a breakout candle's high is not the range high and a spring's wick is not the range low: neither was tested often enough to be a boundary.
Both thresholds (the 1% tolerance and the 10% test share) are heuristic knobs, not measured values. Changing them changes the range, and therefore the phase and the events.
Putting them together
A rule that follows the method's order — location, then evidence, then confirmation:
BUY:
RANGE_POS(50) < 30
AND SPRING_STRENGTH(30) > 60
AND SOS_STRENGTH(20) > 40
AND VOL_RATIO(20) > 1.5Read it as: price is in the lower third of its range, a spring-shaped move happened and was reclaimed, demand took over, and the volume backed it.
Note what this recipe is not: it is a template of the order of reasoning. The numbers are illustrative, not tuned, and the rule will trade rarely by construction. Measured over 250 days of BTC/USDT hourly candles, all four conditions held together on 6 bars out of 5,999 — and on 0 of 251 daily bars. (The individual factors are far denser than the conjunction; see the density note at the top of this page.)
What these factors are not
- They are not the Wyckoff method. The method is a judgment process; these factors are mechanical approximations of the parts of it that can be computed from candles.
- They carry no promise of an edge. A factor that looks sophisticated is not the same as one that beats a random-entry baseline.
- Their density depends on the timeframe. On daily and weekly bars a strategy built on event factors will often sit idle for weeks — that is the method's nature, not a malfunction. On hourly bars they fire often instead.
- They are approximations of proxies.
SPRING_STRENGTHcompares against a rolling low, not against a support that was tested many times; the market structure analyzer's boundaries and phases are heuristic.
Before you trade it
Backtest the strategy, then compare it against a random-entry baseline before you believe any of its numbers. A rule built on rare, well-shaped events can look excellent on a small sample and still be indistinguishable from luck — see Backtesting for how TodoAI makes that comparison.