Skip to content

TVA

ScopeRoleSegment
  • Research
  • Product Strategy
  • Quantitative Research
  • Agentic Engineering
  • Data Visualization
  • Founder
  • Product Architect
  • Trading
  • Fintech
  • Artificial Intelligence

TVA is my research-first trading system on TradingView; I founded it in April 2025 and designed it as its product architect. It has 11 scripts on 3 shared libraries, a register of research verdicts and a bot that only paper-trades. Every idea is mine; AI agents test each one against the literature and the data, and most don't survive. The scripts win 65–70% of trades in paper trading; my bar for real money is 85%.

Outcome

34 ideas tested: 22 dropped, 7 adapted, none taken as proposed

11 TradingView scripts on 3 libraries, checked by 19 test scripts

65–70% win rate in paper trading, against an 85% bar

What I designed

A research register that gives every idea a verdict

Backtests and promotion rules fixed before the results

11 TradingView scripts on 3 versioned libraries

An observation contract and a paper-only bot

An agent setup shared by GitHub Copilot and Claude Code

Challenges

A compile ceiling, and no order books on the platform

Backtests that flatter: costs, repainting, hypothetical fills

Ideas arrive faster than they can be tested honestly

Learn more about Tech

Trade on evidence, not on conviction

I wanted to trade professionally, the way I design products: a hypothesis first, a baseline, and a drop when the data says so. Trading content is full of indicators that look right on the chart they were drawn on. My brief had three rules. Scripts report observations, not signals. Every idea gets a verdict before it costs code. The bot paper-trades until results clear a bar set in advance. The name, TradingView Authority, nods to the Time Variance Authority from the TVA series.

Two scripts that read the market

FIBS and RANGE, and the three libraries they stand on

FIBS finds the market's swings. It joins confirmed highs and lows into legs and draws Fibonacci retracements on each. A pullback into the Golden Pocket, the 61.8–65% zone, becomes a setup with an entry, a stop and targets. Each setup runs as a hypothetical trade with costs and gap-aware exits. Its result is recorded in R, the gain or loss as a multiple of the risk. Entropy, the Hurst exponent and momentum describe the regime it was born in.

RANGE asks whether the market is trending or stuck in a range, and where the edges are. It draws ranges and their breaks, order blocks, fair-value gaps and the premium and discount halves of a range. Its model adjusts for the hour, the weekday and volatility, and projects a band and two candle paths, labelled research. In the bot, FIBS proposes and RANGE gives context; whether their agreement helps is for the opportunity ledger to show.

Three libraries sit underneath. Core holds the building blocks: rolling distributions, a confidence bound, a coverage backtest and the JSON output. Analytics holds the mathematics: the seasonal clock, entropy and Hurst estimators, variance and range models, moving-average kernels. Runtime connects the scripts to the world: data feeds, projections, tables and published observations.

FIBS alone

FIBS on the Bitcoin daily chart: confirmed ZigZag legs, the Fibonacci levels of the current leg and the readout tables, exported from TradingView in November 2026.

RANGE alone

RANGE on the same chart: ranges and their breaks, order blocks, premium and discount zones, the moving-average trend and its summary table.

Observations, not signals

The rule that shaped every script

A chart indicator invites one reading: buy here. My rule is the opposite. Every output is an observation or a diagnostic, never a signal or a calibrated probability, in code comments, documents and alert text alike. Confirmed pivots use closed bars only, and a projection that may repaint is drawn faint and marked provisional.

A summary table is on, diagnostics stay off until asked for, and the learning records keep the losing trades and gap exits. A win rate always comes with its sample and its costs; the 65–70% above is read from these tables and depends on the settings under test.

Research, labelled as research

RANGE's tables: range state, evaluation, context and projections. The path models carry their own warning: "research; not calibrated odds".

One suite, three libraries, one contract

Scripts own their state, libraries own the method, JSON owns the boundary

Scripts own their state, libraries own the method. Analytics and Runtime import only Core, and no library imports a script. The libraries keep no colours or mutable state, so an update never changes how a chart looks. Every import is pinned by version and checked against a dependency inventory.

The boundary to the bot is a versioned JSON contract: confirmed-only packets within 3,800 bytes, with source clocks, a producer manifest and lifecycle states. Six examples and a startup replay execute it. It describes setups and hypothetical fills and never authorises an exchange order. A new library version gets a new deployment identity, so old and new observations never mix.

Working inside a platform's limits

A compile ceiling, a plan choice and a strategy per script

TradingView is the only compiler for Pine, and it compiles only so much. FIBS and RANGE reached that ceiling, so their features froze; new context reaches them through token-neutral library swaps or through the bot. COMBO takes the new liquidity, volume and derivatives data: funding, and open interest summed over Binance, Bybit and OKX. A hook reports the token change after every edit.

I chose the plan like a product decision. Premium, at €59.95 a month, pays for itself with volume footprints, bar detail for RANGE's fills, twice the history and enough alerts. Ultimate, at €199.95, solves no current problem. No plan gives Pine an order book or a trade tape, and I believe the road from 70% to 85% runs through that kind of data.

COMBO in its own pane

The distance of price from its 10-bar VWAP, coloured by persistence, with the composite line and the table of open interest, funding and feeds.

TRSI alone

The mean of Wilder RSIs over many lengths, with its channel and a regression heatmap on the candles. Lines on price mark where it would reach its bounds.

A research method that drops most ideas

A literature gate, one procedure per idea and parallel sessions

No method reaches the code without a literature check: the primary source, an independent evaluation and the decisive baseline, with missing evidence reported as a gap. Publication is not an edge. A peer-reviewed effect still has to survive this market, these costs and this data.

Every idea then runs one procedure. Identify the formula, from the vendor's published data or the screenshot's pixels. Record each series' history, gaps and publication lag. Test against the baseline, usually the price trend, on two halves of the sample with lag and costs, labelled in-sample. Check what it repeats from FIBS, RANGE and earlier ideas. The record ends with a verdict and a study script that reruns it.

Ideas arrive in batches, so several agent sessions research in one checkout. A helper claims each idea's number, scratch files stay per session, and commits go only through the helper. Each idea opens a GitHub issue at the claim and closes it with the verdict.

Backtests built to say no

Champions and challengers, walk-forward folds and rules fixed in advance

A parameter sweep finds the settings that fit the past, so I run bounded experiments. FIBS's pivot settings have a champion and named challengers, each answering one question. Every profile tried is counted, so the deflated Sharpe ratio knows the number of trials [1].

The cycle hypothesis shows the method. A cycle model ran walk-forward on 5 years of 4-hour Bitcoin and Ethereum data, with purged folds and a correction for 21 comparisons [2]. It lost out of sample on every series and horizon; at 42 bars, Bitcoin's incremental R² was −0.77%. It stayed research, and no cycle input went into Pine.

Two rules keep results honest. Hypothetical fills are not account fills: the opportunity replay scores every setup in one cohort and counts rejected winners and avoided losses. A fill that bar timing can't place after the decision stays unscored. And nothing is promoted because a win rate rises; the bar is set before the results are opened and never widened after a bad one.

Every number with its sample

FIBS's readouts on the Bitcoin daily chart: the setup, backtested and learning results net of costs, the evidence gates with PSR and DSR, and the regime.

Two assistants, one rulebook

Guides, skills, subagents and hooks: policy as configuration

I don't build an agent framework. I configure two assistants, GitHub Copilot and Claude Code, on one shared guide. Rules for Pine, Python and documents attach by path, and skills hold the repeatable work, from checks to the literature gate. For Pine, a scout returns line-numbered findings and a reviewer checks every edit.

Rules that matter are hooks, not hopes. They block bare Python and piped downloads, ask before any guardrail edit, refuse whole reads of the largest scripts and report the Pine token change. TradingView access is read-only: alerts and watchlists change only when I ask.

In November I checked the setup against a source-code study of 11 coding agents [3]. It already matched: hierarchical context, path-scoped rules, skills before MCP, policy in hooks and no framework. Two rules that lived in prose became configuration, a git floor and a third-party code rule. Changing a guardrail stays my decision.

A bot borrowed from Acheron, cut down

Three perspectives, three attack tests and a controller; paper intents only

TVA started before Acheron and later took its whitepaper, version 15, as a source. The bot keeps three review perspectives, three adversarial tests, explicit uncertainty and separate release checks, written as functions and tests. The seven layers, the graph database and any agent framework stay out.

Its authority is fixed: no model controls position size, risk limits, account access or orders, and every intent it returns has execution switched off. A review of the existing code against that rule found three gaps, from a setup claim that could outlive a crash to account limits checked against stale snapshots. Each became a ticket.

The roadmap has 35 tickets in 3 milestones, from capturing every opportunity to bounded automation on one venue. Every policy is scored on the same cohort of opportunities, and model reviews run at equal budgets. If a model review doesn't pay for itself, the deterministic policy stays.

Delivery, on the record

Dated records, tickets, milestones and acceptance on the platform

The repository runs like a client engagement with one stakeholder: 729 commits, 112 issues and 62 pull requests in 19 months, in milestones from FIBS to the bot. Records are dated and never edited in place; a correction is a new record that links its predecessor. Every research result names its inputs and hashes, so a rerun reproduces it.

Acceptance happens on the real platform. Local checks can't compile Pine, so each library change ships with smoke scripts that must plot 1 in TradingView, and the acceptance runbooks keep their screenshots.

Acceptance in bar replay

FIBS alone in TradingView's bar replay, stopped on 1 October 2026: its legs, levels and tables as they stood that day, before the bars that followed.

26 audits of one script

FIBS, taken apart before any research

Before the research came hygiene. In December 2025, with FIBS at 5,591 lines, I took it through 5 audit tasks with the agents, then a set of inventories and ledgers. They are archived as provenance; the current code is measured against them.

26 audits

AuditAreaWhat it establishes
Boolean auditBooleans and gatesPine v6 semantics and lazy evaluation, every boolean classified by risk
Signal gate treeBooleans and gatesThe canonical order in which gates are evaluated
Engine complexity profilesStatistical enginesInputs, outputs, state, gates and failure modes per engine
Formula conformanceStatistical enginesImplemented formulas checked against their mathematical forms
Stats hotspot mapStatistical enginesEvery loop and heavy computation in the engines
Stats consolidation planStatistical enginesShared intermediates, consolidated without changing behaviour
Array lifecycle auditArrays and buffersAllocation, persistence and updates of every array
Boundedness proofArrays and buffersEvery rolling buffer has a hard cap, enforced on every update path
Buffer patterns guideArrays and buffersThe three canonical buffer patterns
Execution state canonicalisationLearning and backtest engineDeterministic learning, preview and backtest state
Intrabar resolver boundaryLearning and backtest engineWhere bar data stops telling the order of fills
State machine auditLearning and backtest engineThe setup and trade lifecycles
Object ledgerRenderingThe budget for lines, labels and polylines
Rendering cadence auditRenderingWhen objects are drawn and redrawn
Rendering GC verificationRenderingManual clean-up of chart objects
Codebase indexInventories and ledgersThe map of the script
Dependency flow mapInventories and ledgersHow data moves between subsystems
Functional matrixInventories and ledgersEvery subsystem and what it does
Input inventoryInventories and ledgersThe 258 inputs of FIBS 2.8
Input-to-subsystem mapInventories and ledgersWhich input drives which subsystem
Budget model and gatesInventories and ledgersThe compute budget and its gates
Hard limits ledgerInventories and ledgersEvery platform limit the script touches
Repaint integrity auditInventories and ledgersWhat may change after a bar closes, and what may not
Request context ledgerInventories and ledgersEvery data request and its context
Runtime settings auditInventories and ledgersSettings that change behaviour while running
Type and state safety auditInventories and ledgersTypes and persistent state, checked for misuse

The model I won't let trade

Why a language model never touches the order

The fashionable build in 2026 was an AI agent that reads the chart and trades. Two ideas in the register were exactly that: a skills repository with a crypto regime score, and an indicator that packages every candle as JSON for an agent. Both were dropped. Their scores restated trend and momentum, and the setups didn't survive costs. A model that sounds sure is not evidence.

So the models in TVA review and explain; they don't size, authorise or send. The road to live money runs the other way. First, more data than the chart can show. Then a win rate from 65–70% up to 85%, on rules fixed in advance. Only then capital, on one venue, with bounded automation.

Research register and references

Every idea by name, verdict, reason and paper

Every idea in the register is mine; an agent evaluated each one by the same procedure, and the verdicts stand as recorded. The ideas are listed in the order they arrived, the method studies after them. Where a record cites a paper, its number links to the references below.

34 ideas

IdeaVerdictWhyPaper
MVRV ratio momentumParkedIt moves almost in lockstep with drawdown and with price against its 200-day average[4]
Short-term holder MVRV bandsDroppedIts gap correlates 0.94–0.97 with RANGE's price against its 200-day average[5]
Bear-market floor price modelsDroppedThree of its four bases are already covered, and the fourth isn't in TradingView[6]
Short-term holder SOPRDroppedIt restates the holder cost-basis gap, and the chart's readings failed in both halves of the data[7]
Long-term holder supply in lossParkedOptional Bitcoin holder-stress context[5]
The Mayer MultipleDroppedIt is RANGE's 200-day average again, and its thresholds lost to buy-and-hold[8]
Tactical Bull-Bear Sentiment IndexParkedIts inputs must be established first[9]
Bitcoin Fear & Greed scoreAdaptedAttributed context for the bot, not another vote in the composite[10]
Bitcoin repetition fractal cycleDroppedIts projected cycle windows and phase labels included[11]
Narrative into time pivotsDroppedA random walk hits such pivots 56–70% of the time, and the labels were drawn after the outcomes[12]
Realised price quantilesDroppedIt is the MVRV level again, on a full-sample percentile scale[13]
Liquidation mapParkedAn experimental estimate implied by open interest[14]
CME weekly wedges and projected pathDroppedOne precedent per pattern, a hand-stretched projection and a target that depends on the chart's axis[15]
CryptoQuant Bull-Bear Market Cycle IndicatorDroppedIt is MVRV momentum from a paid composite[16]
High-frequency oscillator, 1 second to 1 minuteAdaptedA descriptive pressure diagnostic[17]
Whale Alert transfers against priceParkedBot context, since TradingView has no feed for it[18]
Cross-asset context: equities, volatility, dollar, rates, metals and oilAdaptedOne Bitcoin–Nasdaq coupling row with the VIX, while macro markets were dropped as directional inputs[19]
MVRV pricing bandsDroppedIt is the MVRV level again, on expanding-statistics bands
10-year government bond yieldsDroppedThe hourly link is the equity coupling already kept[20]
Velo's aggregated open interest and spot/perpetual CVDAdaptedDescriptive definitions only, and the confluence reading was dropped[21]
Dynamic moving-average ratios with Smart DCADroppedThe price trend is already in RANGE[22]
Alphractal's short-term holder unrealised lossDroppedIt is close to the holder cost-basis gap already dropped[23]
Velo's open-interest divergence, funding and liquidationsAdaptedFunding and open-interest change became volatility and leverage-cost rows, and the divergence was dropped as a direction[24]
MACD with cycle-based variantsDroppedIt is weighted momentum, already in three of the scripts[25]
Flow VWAP with option strike levelsDroppedNot for the composite, and the strike context is parked for the bot[26]
LiquidityMapperFast, an open-source order-flow workbenchAdaptedIts liquidation rows and threshold rule went into the leverage strip
Wasserstein k-means clustering of market regimesDroppedWith two clusters it is a stricter volatility split that RANGE already covers[27]
Single-EMA trend following and the Grebenkov–Serror Sharpe formulaDroppedThe formula doesn't fit one crypto asset, and the signal restates the trend[28]
The claude-trading-skills repositoryDroppedIts regime score restates the trend, and its drawdown circuit breaker is parked for the bot
AI Agent Lens, candles packaged as JSON for an AI agentDroppedIts scores restate trend and momentum, and its setups don't survive costs
Kronos, a foundation model for candlestick dataDroppedNo return information, volatility forecasts at a quarter of the realised, and no way to run it in Pine[29]
151 Trading Strategies, the crypto subsetAdaptedImplied volatility became a candidate input, and the neural network and sentiment model were dropped[30]
Optimal trading of microstructure mean reversionDroppedIt works in seconds, too fast for the indicators, so it became an execution note for the bot[31]
Time series momentumDroppedThe 12-month form doesn't fit crypto, and a 4-week form is parked until a pre-registered walk-forward[32]

7 method studies

StudyOutcomePaper
FIBS pivot tuningChampion kept, one challenger to test[1]
Cycle timing, proposal and proof of conceptRejected out of sample[2]
FIBS and RANGE paired opportunity ledgerMethod built, waiting for real data
RANGE moving-average profilesAdopted as starting profiles, not optimal parameters[33]
RANGE seasonality on a New York clockAdopted: 30% better volatility forecasts out of sample on Bitcoin 1-hour
Swoosh candle path scenariosImplemented as research observations
VWAP delta identificationFormula identified; it became COMBO

References

Does this problem look like yours?

Book a consulting session and we’ll work through it together.