Dumb-as-rocks OHLC analyzer. POST your bars + the indicators you want, get back exactly what you ...
4.8K
The dumb-as-rocks OHLC analyzer. You throw bars at it over HTTP, it throws indicators and SMC objects back. That's the whole product. No database, no queue, no state, no opinions, no "AI-powered signals," no upsell to a $97/mo Discord. Just primitives.
Every snake-oil-flavored TA SaaS out there wants to tell you when to buy. Wickworks tells you the order block is at 1.0832 and the RSI is 71.4. The "what does that mean?" part is where your strategy lives — and it should live in your code, not behind someone else's paywall.
Built on pandas_ta and smartmoneyconcepts, wrapped in a FastAPI server, locked behind 370 tests that diff our output against closed-form references on real EURUSD ticks. If a math bug slips in, the test suite screams before the container builds.
| Category | Primitives |
|---|---|
| Trend | SMA/EMA + 15 other moving averages, slope, Donchian channels, Ichimoku |
| Momentum | RSI, MACD, Stochastic, StochRSI, ADX, MFI, CCI, Williams %R, ROC, MOM, TSI, TRIX, UO, Fisher |
| Volatility | ATR, NATR, Bollinger Bands, Keltner Channels, Squeeze |
| Volume | VWAP (anchored), VWMA, OBV, AD, ADOSC, CMF, KVO |
| SMC | Order Blocks, Fair Value Gaps, BOS/CHoCH, swing structure, S/R levels, liquidity, retracements, sessions, previous-period H/L |
| Summaries | Position, slope, momentum, volume regime, recent range — pre-baked projections over the raw series |
All JSON field names are camelCase. Output is NaN-safe — NaN becomes null, never a literal NaN token that blows up downstream parsers. NumPy/Pandas scalars and arrays are serialized cleanly (no numpy.float64(...) leaks). Bars in UTC, math in UTC, container runs TZ=UTC — timezone bullshit is your problem, not ours.
docker run --rm -p 8000:8000 psyb0t/wickworks:latest
That's it. The service listens on :8000.
services:
wickworks:
image: psyb0t/wickworks:latest
ports: ["8000:8000"]
environment:
LOG_LEVEL: INFO
MAX_BARS: "5000"
MIN_BARS: "50"
make run # build the dev image and run uvicorn on :8000
Three endpoints. That's the whole surface.
GET /healthcurl -s http://localhost:8000/health
{ "ok": true, "version": "0.7.0" }
GET /metadataReturns the versioned catalog of labels, descriptions, units, categories, and interpretation notes for every output path. Consumers can cache it for the reported Wickworks version.
POST / — computeSend OHLC(V) bars + the indicators you want. Get back only what you asked for — response keys mirror the keys you sent. No "let me also throw in 40 indicators you didn't ask for" energy.
curl -s -X POST http://localhost:8000/ \
-H 'Content-Type: application/json' \
-d '{
"symbol": "EURUSD",
"timeframe": "H1",
"bars": [
{ "time": 1700000000, "open": 1.0832, "high": 1.0851, "low": 1.0828, "close": 1.0844, "volume": 1247 },
...
],
"indicators": {
"rsi": true,
"rsi21": { "type": "rsi", "length": 21 },
"stochFast": { "type": "stoch", "k": 5, "d": 3, "smoothK": 3 },
"stochSlow": { "type": "stoch", "k": 21, "d": 7, "smoothK": 5 },
"macd": true,
"orderBlocks": true,
"fvg": true
}
}'
indicators object — the whole pointEach entry maps an output name (the key) to a spec:
true — run the indicator with default params; key doubles as the type.{ ...params } — params object; missing type falls back to the key.{ "type": "<name>", ...params } — run a known indicator under a custom output name. This is how you stack multiple instances of the same indicator (e.g. four stochs with different params, three EMAs at different lengths)."indicators": {
"rsi": true,
"rsi21": { "type": "rsi", "length": 21 },
"stochA": { "type": "stoch", "k": 5, "d": 3 },
"stochB": { "type": "stoch", "k": 21, "d": 7 }
}
The response contains rsi, rsi21, stochA, stochB. Nothing else. Duplicate output names are physically impossible by JSON-object construction — you can't shoot yourself in the foot with this API even if you try.
The outputs below map to a handful of recurring trading ideas. If you've used any TradingView-style charting tool most of these will be familiar; if not, the short framing here is enough to pick the right output for the job.
Series vs events. A Series output is one value per input bar (warmup positions are null) — these are continuous quantities you can chart. An event output is a sparse array of objects pinpointing things that just happened (a swing, a block, a structure break). Series tell you state; events tell you occurrences.
Primitives only — no signals. Wickworks does not emit interpretive signals (no divergence detection, no MA-cross events, no "buy/sell" tags). Everything returned is either a raw indicator series, a structural fact (an order block was formed at this bar, price closed past this swing), or a pre-baked summary over those — never a judgment about what to do. If you want divergences, MACD-cross events, golden/death crosses, or any other derived signal, build that layer in your own consumer.
The four questions every indicator answers part of:
In-house event constructs you won't find on TradingView:
srLevels uses at most the latest 500 bars, a fixed five-bar separation between distinct touches, and at least two tests within half an ATR. It returns up to three nearest levels on each side of price.Want the formal contract for tooling / validators? See
schema.json — full JSON Schema Draft 2020-12. The reference below is the human version: categories + per-indicator blurbs + params tables + return shapes + examples.
Three series shapes are shared across most outputs:
number | null), aligned 1:1 with input bars. Warmup positions are null.0/1 integer per bar.-1/+1 integer per bar (1 = bullish/long, -1 = bearish/short).Indicators below are grouped by what they tell a trader, not by parameter shape. Each subsection starts with a one-paragraph framing of the category, then lists every indicator in it with a short "what it is / when to use it" blurb.
Smoothed price lines. Each flavor trades responsiveness against lag differently — pick by how fast you want the curve to react to new bars. Trader use: define the dominant direction (price above/below the MA = bull/bear bias), identify dynamic support/resistance the market keeps touching, fire crossover signals (fast MA crossing slow MA = trend shift).
All take a single length parameter and return a Series.
type | default | inputs | what it is |
|---|---|---|---|
ema | 21 | close | Exponential MA — recent bars weighted more. Standard trend filter. The default trend MA in most strategies. |
sma | 50 | close | Simple MA — flat average. Slow, smooth, classic. 50/200-SMA crosses define the "Golden Cross" / "Death Cross". |
hma | 14 | close | Hull MA — low-lag, smooth. Reacts fast without the noise an EMA would give at the same period. |
wma | 14 | close | Weighted MA — linear weights. Sits between SMA and EMA in lag. |
dema | 10 | close | Double-EMA — less lag than EMA via a correction term. |
tema | 10 | close | Triple-EMA — even less lag, but more whipsaw-prone in chop. |
t3 | 10 | close | Tillson T3 — smooth like SMA, fast like EMA. Curve-looking output some traders prefer for visual clarity. |
kama | 10 | close | Kaufman Adaptive MA — speeds up in trends, slows down in chop. Self-tuning. |
alma | 10 | close | Arnaud Legoux MA — Gaussian-weighted. Low noise, low lag tradeoff. |
linreg | 14 | close | Linear-regression MA — best-fit line over the window, evaluated at "now". Statistically grounded smoothing. |
jma | 7 | close | Jurik MA — proprietary smooth, very low lag. Premium-feeling curve. |
zlma | 10 | close | Zero-Lag MA — error-correction on EMA, attempting to remove lag entirely. |
rma | 10 | close | Wilder's smoothing — used inside RSI/ATR. Heavy, slow. Useful when you want indicator-internal smoothing semantics. |
fwma | 10 | close | Fibonacci-weighted MA — weights by Fib sequence. |
swma | 10 | close | Symmetric-weighted MA — weights peak in the middle of the window. |
sinwma | 14 | close | Sine-weighted MA — sine-curve weights. Very smooth. |
trima | 10 | close | Triangular MA — double-smoothed SMA. Smoother than SMA, more lag. |
vwma | 10 | close + vol | Volume-weighted MA — heavy-volume bars count more. Closer to where actual trading interest was. |
"ema": true,
"ema50": { "type": "ema", "length": 50 }
vwap — session-anchored VWAPVolume-weighted average price, reset at the configured daily, weekly, or monthly anchor. Unlike a rolling average, VWAP accumulates from that fixed boundary. The sessionOffset shifts the UTC anchor by a fixed duration. It does not apply exchange calendars or daylight-saving changes.
| Param | Type | Default | Description |
|---|---|---|---|
anchor | "D" | "W" | "M" | "D" | Session reset cadence |
sessionOffset | string | number | "0s" | Offset session start from UTC midnight. Go-style ("-5h", "1h30m") or seconds. |
Returns: Series.
Measure the rate of price change, not the level itself. Most are bounded (0–100 or centered around zero), so readings are directly comparable across instruments and timeframes. Trader use: spot overbought/oversold extremes (mean-reversion edges), watch for divergence vs price (momentum fading while price extends = reversal hint), trade zero-line / midline crosses as momentum-shift triggers.
Same spec: one length parameter, returns one Series.
type | default | inputs | scale | what it tells you |
|---|---|---|---|---|
rsi | 14 | close | 0–100 | Relative Strength Index. Classic momentum oscillator. >70 overbought, <30 oversold. Bounded, well-studied, the canonical input for momentum-vs-price analysis downstream. |
mfi | 14 | h/l/c + vol | 0–100 | Money Flow Index — RSI weighted by volume. Stricter signal: needs both price and volume agreeing. |
willr | 14 | h/l/c | -100..0 | Williams %R. Inverted stochastic. -20 ≈ overbought, -80 ≈ oversold. Quick to flip. |
cci | 14 | (h+l+c)/3 | unbounded | Commodity Channel Index. Measures deviation from a moving average in normalized units. ±100 are conventional thresholds. (In-house implementation — pandas_ta has a known bug.) |
roc | 10 | close | % | Rate of Change. Percent move over N bars. Most direct momentum number — no smoothing, no normalization. |
mom | 10 | close | price units | Absolute momentum: close - close.shift(length). Raw price-unit version of ROC. |
cci accepts an extra c parameter (number > 0, default 0.015) — the constant scaling factor in the classic Lambert formula.
uo — Ultimate OscillatorWilliams' combo of three timeframes (short/medium/long) blended into one 0–100 line. Designed specifically to reduce the false signals single-period oscillators give in ranging markets. Watch for divergences and 30/70 extremes — same as RSI but with built-in multi-period confirmation.
| Param | Type | Default | Description |
|---|---|---|---|
fast | integer ≥ 1 | 7 | Short period |
medium | integer ≥ 1 | 14 | Medium period |
slow | integer ≥ 1 | 28 | Long period |
Returns: Series (0–100).
stoch — Stochastic oscillator"Where is the close within the recent high-to-low range?" Returns %K (raw position) and %D (smoothed %K). Classic signals: %K crossing %D is the trigger; both lines above 80 = overbought zone, below 20 = oversold zone. Like RSI but more reactive — fires more often, false-positives more often too.
| Param | Type | Default | Description |
|---|---|---|---|
k | integer ≥ 1 | 14 | Lookback for raw %K |
d | integer ≥ 1 | 3 | %D smoothing |
smoothK | integer ≥ 1 | 3 | %K smoothing |
Returns: { k, d } — each a Series (0–100).
stochrsi — Stochastic of RSIStochastic formula applied to RSI values instead of price. Doubly sensitive — fires far more frequently than vanilla stoch and is especially good at picking turning points inside a ranging move. Pair with a trend filter; on its own it overtrades.
| Param | Type | Default | Description |
|---|---|---|---|
length | integer ≥ 1 | 14 | Stoch lookback over RSI |
rsiLength | integer ≥ 1 | 14 | RSI period (input to Stoch) |
k | integer ≥ 1 | 3 | %K smoothing |
d | integer ≥ 1 | 3 | %D smoothing |
Returns: { k, d } — each a Series (0–1, not 0–100).
macd — Moving Average Convergence DivergenceDifference between a fast and slow EMA, plus a signal-line smoothing of that difference. Three lenses: the macd line (raw momentum), the signal line (smoothed), the hist (macd − signal — what most traders actually watch). Hist crossing zero = momentum direction change; hist diverging from price = momentum exhaustion.
| Param | Type | Default | Description |
|---|---|---|---|
fast | integer ≥ 1 | 12 | Fast EMA |
slow | integer ≥ 1 | 26 | Slow EMA |
signal | integer ≥ 1 | 9 | Signal-line EMA over (fast − slow) |
Returns: { macd, signal, hist } — each a Series. hist = macd - signal.
tsi / trix / fisher — momentum with signal lineAll return the same shape: { <name>: Series, signal: Series }. Watch zero-line crosses and value-vs-signal crosses, same as MACD.
tsi — True Strength Index. Double-smoothed price momentum (close-based). Smoother than MACD, slower to flip — fewer false signals, more lag.
| Param | Type | Default |
|---|---|---|
fast | integer ≥ 1 | 13 |
slow | integer ≥ 1 | 25 |
signal | integer ≥ 1 | 13 |
trix — Triple-smoothed exponential ROC. By design it filters out cycles shorter than its length, so it's a longer-term momentum read — useful for higher-timeframe trend confirmation, not scalping.
| Param | Type | Default | Description |
|---|---|---|---|
length | integer ≥ 1 | 30 | EMA chain length for triple smoothing |
signal | integer ≥ 1 | 9 | Signal-line EMA over trix |
fisher — Ehlers Fisher Transform. Reshapes price into a Gaussian-like distribution so extremes are sharper and turning points are easier to spot than in RSI.
| Param | Type | Default |
|---|---|---|
length | integer ≥ 1 | 9 |
signal | integer ≥ 1 | 1 |
These don't tell you the price level — they tell you how trendy the market is right now, or which side is in control. Pair them with a price-based indicator: trend-strength tells you whether to trust trend signals at all.
adx — ADX + DMIAverage Directional Index measures trend strength only, not direction. adx rises when one side is winning decisively (regardless of which side). The +DI and -DI lines are the directional pressure components — +DI > -DI = bulls in control, and vice versa. Rule of thumb: adx > 25 = market is trendable, follow signals; adx < 20 = chop, avoid trend strategies and prefer mean-reversion.
| Param | Type | Default |
|---|---|---|
length | integer ≥ 1 | 14 |
Returns: { adx, diPlus, diMinus } — each a Series.
aroonRace between "how many bars since the highest high?" and "how many bars since the lowest low?", normalized 0–100. up near 100 = recent action keeps making new highs (strong uptrend); down near 100 = recent lows (strong downtrend). oscillator = up - down is the net directional read on the same -100..+100 scale.
| Param | Type | Default |
|---|---|---|
length | integer ≥ 1 | 14 |
Returns: { up, down, oscillator } — up/down are 0–100; oscillator ranges -100..+100.
vortexTwo lines measuring positive (plus) vs negative (minus) true-range movement. Pure trend-flip detector: plus crossing above minus = bullish shift; the inverse = bearish shift. No overbought/oversold concept here.
| Param | Type | Default |
|---|---|---|
length | integer ≥ 1 | 14 |
Returns: { plus, minus } — each a Series.
Measure the spread of price action, not its direction. These don't generate buy/sell signals on their own — they're inputs to stop placement (don't set a stop tighter than 1–2 ATR), position sizing (size inversely to volatility so each trade risks the same dollar amount), and regime detection (rising volatility = breakout regime; collapsing volatility = consolidation, watch for squeeze).
type | default | inputs | scale | what it tells you |
|---|---|---|---|---|
atr | 14 | h/l/c | price units | Average True Range — average bar range over N bars, in raw price units. The universal stop-distance unit. |
natr | 14 | h/l/c | % of price | Normalized ATR — ATR as a percentage of close. Same information, comparable across instruments at different price levels. |
Volume-derived lines compare price movement with the caller-selected activity series. They can show whether activity expanded or contracted with a move, but they do not identify participants or prove that a breakout is real.
obv and ad — parameterless cumulative linesNo params. Returns: Series.
obv — On-Balance Volume. Adds volume on up bars, subtracts on down bars. Cumulative running total. When OBV diverges from price (price up, OBV flat or down) = warning sign that the move lacks volume backing.ad — Accumulation/Distribution. Weighted by where close lands within the bar's range (close near high = mostly buying; close near low = mostly selling). Cumulative. More precise than OBV when bars have long ranges.cmf — Chaikin Money FlowThe A/D formula normalized to a rolling window instead of accumulating forever. Returns -1..+1: positive = net accumulation pressure over the window, negative = distribution. Use the zero line as a regime filter — only take longs when CMF is positive.
| Param | Type | Default |
|---|---|---|
length |
Content type
Image
Digest
sha256:8ee601588…
Size
208 MB
Last updated
26 days ago
docker pull psyb0t/wickworks