Start a conversation
← Portfolio

Tengen An AI trading platform that connects cause to effect.

Tengen is an AI algorithmic trading platform, built data-first. Its edge is connecting cause to effect as it happens: an earnings filing, an insider buying, a burst of news, linked to what prices did in the sessions after. Nothing trades until the data under it can be trusted.

Role
Sole builder
Built as
Operator console and Rust pipeline
Trades
On paper only
Version
The second build
Receipts
275 commits · 75 test files · since 2 September
TENGEN
00homelayer by layer
01configwhat we have declared
04collectionpulling, and did it run
05curationdata becomes products
06real timewhat the socket sends
08instrumentsthe ticker-first spine
09researchthe hypothesis ladder
10analyticsfigure by figure
11strategiesthe time policy
12modelswhat predicts, how well
13algospaper before money
14tradingone book per portfolio
16councilmembers and sittings
99documentationhow, and why
V2 · LOCALRUNNER
home / performance · focus event:earnings_8khow it is performing, layer by layer
work planperformancestatuscounciltradingalgosmodelsstrategiesresearch
01cause to effectfocus event:earnings_8k · 12 nodes on the path · everything else faded
01 events02 reactions03 findings04 models05 algos06 books
event · earnings_8k8-K, beat > 1σ1,284 events · 212 days
event · news_burstNews burst, 3× rate3,906 events
event · insiderInsider buys ≥ 5%611 events
event · sentimentSentiment < −0.62,140 events
reaction · filerNVDA +3.1% abn.open → h3 · t 4.1
reaction · peerAMD +1.2% abn.open → h3 · t 2.6
reaction · supplierTSM +0.8% abn.open → h3 · t 2.2
reaction · sectorSMH +0.9% abn.open → h3 · t 2.9
reaction · customerMSFT +0.2%h3 · not distinct
finding · establishedF3.2 drift to h3both halves agree
finding · likelyF3.4 peers followat half the size
finding · openF2.1 insider, netno edge after cost
model · validatedearnings-drift v3rank IC 0.041
model · candidatepeer-spill v1rank IC 0.019
algo · paperearnings-drift-h3net Sharpe 1.41
algo · backtestpeer-follow-h2R2 passed
book · portfoliofund-paper-v1weight 0.14 · ten algos
book · cashfund-cashbehind the gate
02the reactionabnormal, by session
beat > 1σmiss > 1σvs the cohort, same window
03r1 · the event study
events
1,284 on 212 days
best horizon
h3, from next open
mean net
+0.58%
t, by day
3.42
hit rate
0.57
halves
+0.61 · +0.55
r1 passedr2 passedr3 running
04the chain, per algoweak link named
algoicsharpeweak link
earnings-drift-h30.0411.41none
peer-follow-h20.0190.88finding
swing-ridge-decile0.0270.64costs
insider-window0.0060.12model
news-burst-fade0.022—no book yet
Cause to effect. An event the store recorded, the moves in the sessions after it across the filer and its neighbours, the finding that rests on them, and the model, algo and book that finding feeds. One focus fades everything off the path.

A model is easy. Trusting what feeds it is not.

My first attempt built five model engines and no governance for the data feeding them. Every signal looked plausible and none could be checked: I could not say when a fact became knowable, whether a run had finished, or where a number came from. An edge built on that is a story, not an edge.

Data first, then cause, then money.

This build inverts the order. Every source is declared, every pull is planned and rehearsed before it fetches anything, and every run is a durable row. Every fact carries the moment it became knowable, so a backtest never sees tomorrow. Only then does it ask the real question: when this happens, what follows, and does it pay after costs? An idea climbs from a finding to a model, an algo and a book, and each step cites the one before it.

TENGEN
00homelayer by layer
01configwhat we have declared
04collectionpulling, and did it run
05curationdata becomes products
06real timewhat the socket sends
08instrumentsthe ticker-first spine
09researchthe hypothesis ladder
10analyticsfigure by figure
11strategiesthe time policy
12modelswhat predicts, how well
13algospaper before money
14tradingone book per portfolio
16councilmembers and sittings
99documentationhow, and why
V2 · LOCALRUNNER
algos / earnings-drift-h3 · paper tradingtrading algorithms on a balance sheet
overviewbacktestpaper tradinglive testmethodlineage
expand all · collapse all
⌄ event-driven4
earnings-drift-h3paper · since 11 Sep
peer-follow-h2backtest · R2 passed
news-burst-fadebacktest · running
insider-windowretired · no edge
⌄ swing2
swing-ridge-decilepaper · since 2 Sep
gap-reversal-h1backtest · failed
⌄ investment3
momentum-monthlypaper · since 1 Jul
quality-low-volbacktest · R3
value-rebalance-qbacktest · R1
ring 1 · backtestpassed 10 Sepwalk-forward, embargo 5 sessions
ring 2 · paperday 24 of 40real clock, data as it arrives
ring 3 · live testnot yetpromise against record
retired—forward only, on evidence
equity1,048,210from 1,000,000
net p&l+4.82%net of every fill
net sharpe1.41promised 1.52
max drawdown−3.1%floor −8.0%
invested62%of sessions
orders214431 fills
01equitythe bookthe backtest's promisethe cohort
02signals, as each became knowablenothing here places a real order
known at (et)tickereventscoresidesizeentrystate
14 Oct 16:05AVGObeat 1.8σ0.92long2.0%filled 15 Oct openfilled
14 Oct 16:11JPMbeat 1.3σ0.81long1.6%filled 15 Oct openfilled
14 Oct 16:20NFLXmiss 1.6σ0.77short1.4%working, 3 of 5 fillsworking
15 Oct 07:02UNHbeat 1.1σ0.64long1.1%next openqueued
15 Oct 07:15ADBEbeat 2.4σ0.95long—semis and software capheld by risk
15 Oct 07:31PEPbeat 0.6σ0.31——below the 1σ floorskipped
15 Oct 08:02KOknown late———8-K stamped after openrefused
An algo on paper. Each algo climbs backtest, paper and live test one ring at a time, on evidence. The paper book runs on a real clock, and every signal says when it became knowable.
TENGEN
00homelayer by layer
01configwhat we have declared
04collectionpulling, and did it run
05curationdata becomes products
06real timewhat the socket sends
08instrumentsthe ticker-first spine
09researchthe hypothesis ladder
10analyticsfigure by figure
11strategiesthe time policy
12modelswhat predicts, how well
13algospaper before money
14tradingone book per portfolio
16councilmembers and sittings
99documentationhow, and why
V2 · LOCALRUNNER
council / council-v1 · sitting 14 Oct, weeklythe members, their sittings, and the fund they govern
memberssittingspapercashconfigure
expand all · collapse all
⌄ councils3
council-v1equal weights · 5 seats
council-v1-recordweighted by record
comparetwo councils side by side
⌄ sittings4
14 Oct · weekly6 decisions · 5 adopted
13 Oct · daily2 decisions · 2 held
10 Oct · daily1 decision · adopted
7 Oct · weekly4 decisions · 3 adopted
01allocate · algo:earnings-drift-h3adopted
the move
weight 0.10 → 0.14, from the next session
quorum
4 of 5 seats, met
against
0.17 · operations
veto
risk holds it, not used
written as
control.decisions · new allocation row, the old one closed
sitting cost
38 calls · 291k tokens in · 22k out
02the votes, seat by seatevery reason cites what it read
Clara Vossresearch · the sceptic · rules-v1for

F3.2 is established on 1,284 events and both halves agree. The book has tracked its promise within 40 bp for 24 sessions.

finding:F3.2book:earnings-drift-h3
Ravi Mehtaallocation · the compounder · agent:deepfor

Paper Sharpe 1.41 against 1.52 promised. The gap is slippage on the open, not the signal. 0.14 keeps it the third largest weight.

report:paper-w6sweep:alloc-0.10-0.20
Greta Lundrisk · the floor-keeper · rules-v1 · vetofor, with a limit

Gross stays under 1.4× after the move. The semis and software cap at 18% binds first, so ADBE stays held.

limit:sector-capmarks:15-oct
Abel Nwosuoperations · the auditor · agent:deepagainst

Three 8-K timestamps last week landed after the open. Hold the increase until the knowledge-time check is green again.

qa:K-TIME-07ticket:T-0412
Tom Ashworthtrader · the patient filler · agent:fastadvice only

Not a trader’s kind. At 0.14 the opening auction absorbs every name in the cohort under 2% of its volume.

desk:shortfall-sep
The council. Five seats of AI members govern the fund on paper. Each vote gives its reason and cites the rows it read; risk holds a veto.
TENGEN
00homelayer by layer
01configwhat we have declared
04collectionpulling, and did it run
05curationdata becomes products
06real timewhat the socket sends
08instrumentsthe ticker-first spine
09researchthe hypothesis ladder
10analyticsfigure by figure
11strategiesthe time policy
12modelswhat predicts, how well
13algospaper before money
14tradingone book per portfolio
16councilmembers and sittings
99documentationhow, and why
V2 · LOCALRUNNER
collection / dashboardpulling the raw data, and whether it ran
dashboardplanstimelinepipelinesexecutionschedulesstoreqabackupsarchitecture
00nowthe runner is alive
runner mac-studio-4417 alive · 3s ago
writes /srv/tengen/store
live
daily bars corridor · sync
412 of 640 units · 38 units/s · committed
minute bars corridor · rehearse
queued · the work list only, nothing fetched
plans past draft14 / 14nothing pulled without one
runs1,2063 failed · 1 running
valid partitions18,402reconcilable against disk
qa checks70 / 7171 measured · 1 failing
last verified backuptodayrestored, then dropped
01the last 24 hoursevery attempt is a run, and every run is a row
instrument spine
daily bars corridor
minute bars corridor
corporate actions
fundamentals corridor
filings and ownership
news corridor
features.daily build
flat-file bars
indicators corridor
16:0020:0000:0004:0008:0012:00now
02alerts3 · each names the page that clears it
levelwhatwhere
actminute bars corridor failed at 01:12: the vendor answered 429 past the throttle's retry budgetexecution
watchK-TIME-07 failing: 3 filings stamped after the session they claim to be known inqa › knowledge time
watch1 reconciliation ticket waits on the operator: two sources disagree on a split ratiocuration › reconciliation
Did it run. The collection dashboard: the runner, what is running and queued, every run as a row, the QA grid, and alerts that name the page which clears them.
TENGEN
00homelayer by layer
01configwhat we have declared
04collectionpulling, and did it run
05curationdata becomes products
06real timewhat the socket sends
08instrumentsthe ticker-first spine
09researchthe hypothesis ladder
10analyticsfigure by figure
11strategiesthe time policy
12modelswhat predicts, how well
13algospaper before money
14tradingone book per portfolio
16councilmembers and sittings
99documentationhow, and why
V2 · LOCALRUNNER
real time / nvda — nvidia corpwhat the socket is sending, as it sends it
tickerthe feedchannelshistory
expand all · collapse all
⌄ favourites3
NVDA — Nvidia Corprank 1 · watching
AAPL — Apple Inc.rank 3
MSFT — Microsoft Corprank 2
⌄ a5
AMD — Advanced Micro Devicesrank 31
AMZN — Amazon.com Incrank 4
AVGO — Broadcom Inc.rank 7
ADBE — Adobe Inc.rank 44
ABBV — AbbVie Inc.rank 36
01nvda — nvidia corpwatching
socket
one connection, held by the process · opened by a click 14:21:40, never on load
observed
48,212 events · 19,904 trades · 27,118 quotes · 834 second bars · 14 minute bars
stored
nothing: a passthrough, computed nowhere
last trade182.71120 sh · XNAS · 14:35:08
bid182.704 lots
ask182.726 lots
spread0.021.1 bp
today's volume96.4Mfrom the minute bars
today's open180.96official opening price
luld band173.57–191.84as the feed states it
on the chart19,904trades
02charttrades over second bars · following live
03the socket said
14:35:08.412 T 182.71 × 120 XNAS
14:35:08.409 Q 182.70 / 182.72 4 × 6
14:35:08.377 T 182.70 × 45 EDGX
14:35:08.290 A bar 14:35:08 v 2,310
14:35:08.211 T 182.69 × 300 XNAS
14:35:08.140 Q 182.69 / 182.71 9 × 3
14:35:08.002 T 182.70 × 18 BATS
14:35:07.961 LULD 173.57 – 191.84 band
14:35:07.880 T 182.68 × 200 XNAS
14:35:07.794 Q 182.68 / 182.70 5 × 12
14:35:07.702 AM bar 14:34 v 141k
14:35:07.655 T 182.69 × 64 ARCX
14:35:07.590 T 182.69 × 100 XNAS
14:35:07.512 Q 182.68 / 182.70 7 × 2
14:35:07.433 T 182.68 × 25 IEXG
14:35:07.391 A bar 14:35:07 v 1,880
14:35:07.302 T 182.67 × 410 XNAS
14:35:07.244 Q 182.67 / 182.69 3 × 8
14:35:07.181 T 182.68 × 90 EDGX
14:35:07.090 T 182.68 × 12 BATS
Real time. The vendor’s stream for one listing, as a passthrough: opened by a click, one connection held by the process, nothing computed or stored.

Screens drawn with dummy data. No real customer, client or account appears.

What it does

Cause, linked to effect

The event bench takes something the store recorded, such as an earnings 8-K, an insider purchase or a burst of news, and measures what prices did over the next one to five sessions against the cohort, net of the round trip.

A ladder of evidence

Findings motivate strategies, strategies hold models, models feed algos and algos feed a fund. You enter each tier from the one above, on the evidence, never from a blank form, and the lineage graph draws the whole chain.

Three rings before money

An algo is backtested as of each decision time, then traded on paper on a real clock with its own balance sheet, then live-tested, promise against record. It moves forward one ring at a time, on evidence.

A council of AI members

Five seats, research, allocation, trader, risk and operations, sit on a schedule and govern the fund on paper. Each vote gives its reason and cites the rows it read, and risk holds a veto.

Pulls that rehearse first

Sources live in config, pulls are scheduled and resumable, and every verb shows its work list before it fetches. Vendor bytes land as received, with a hash, and curated data reconciles against disk.

A console that tells the truth

Did it run, how fresh is it, what broke. The console answers all three, watches the vendor’s stream live, and says plainly when a screen is empty and what would fill it.

TypeScriptNext.jsRustPostgresDuckDBParquetPlaywright