AI & Agents · Finance & Quant · Data Science & ML
Jev AlphaTrading: Crypto Trading Research with Decision Models
By David Gadyan · Published
A crypto trading research platform built on typed decision models, Jev 1.14 and Microsoft Decision-1.1. A deterministic rule engine turns 1-minute candles into exact facts and finds day-trading setups; the decision model judges each one and returns LONG, NEUTRAL or SHORT with a stop, a target and probabilities. A 1-minute backtester charges fees and slippage and compares every run with buy-and-hold and random entries, and RLVR, a self-learning loop, changes the strategy only when the change holds on data it has not seen. Its first accepted change cut the loss per trade by 63% and halved the drawdown. FastAPI, Next.js, MongoDB, OpenRouter, 837 tests.
The problem
A trader wanted a discretionary day-trading strategy turned into something a machine can decide, test and improve, and wanted to know, without fooling anyone, whether the new decision models (language models trained to return typed decisions with probabilities rather than prose) add real value on top of rules. Crypto makes this hard: costs of about 0.22% a round trip eat small edges, and a backtest that peeks at the future or is tuned on the same data it reports on will always look good.
What I built
A rule engine that produces facts, not opinions. A deterministic market-structure engine processes 1-minute candles one bar at a time and answers everything that can be computed exactly: trend direction on three timeframes (daily, hourly and 5-minute), the levels that place the stop and the target, and whether the reward-to-risk after costs reaches 1.5. It was rebuilt to work incrementally and proven equal to the original engine on 500 random price series, and a test checks that no decision changes when all later data is removed.
The strategy as typed questions. The strategy is a versioned set of 32 typed questions in 8 stages. The engine answers 25 of them with exact facts; the decision model answers 7, each as yes or no with a probability, a choice or a score. Every question records who answers it, its role (gate, feature, decision or management) and whether it is an established rule or a hypothesis that still has to earn its place in a backtest. The question editor validates every change before it can go live.
Decision models behind one provider layer. Jev 1.14 (TypeSafe) and Microsoft Decision-1.1 are called through the OpenRouter Decisions API. The model sees an anonymised state, never the coin, the date or a price, so it cannot recall what happened next. Responses are cached, spending stops at a hard cap, a refusal always counts as "no", and the model chooses among candidates the engine built; it never invents a price. Models are switched in settings, and 44 are listed with their prices.
A backtester that is hard to fool. Every run fills at the next minute's open, assumes the stop is hit before the target inside a minute, charges 0.10% fees plus slippage per side and never carries a trade across missing data. Each run is compared with buy-and-hold, random entries with the same exits and random entries while the trend filters are bullish. Data is split once and frozen: development 2021–2024 with a budget of 40 evaluations, validation 2025 with 12 looks, and a single test look on 2026. Every evaluation is written to a hash-chained ledger, and the API refuses runs that exceed the budget.
RLVR, a self-learning loop. Every decision is scored by its realised outcome, net of fees. The loop estimates which questions helped and which hurt, proposes one change at a time (a new gate, a reworded model question, an excluded answer) and judges it on the part of the log it has not seen: a lower confidence bound, positive folds and positive coins must all agree before a new version is promoted, and any version can be rolled back.
A full research console. Live decisions per coin, backtests with progress streaming, the learning loop with its insights and trial ledger, the question editor, strategy research and settings, on Next.js with TradingView charts.
Architecture design
Hover or tap a component to light its path and see what it does.
Results
| Jev 1.14 | Microsoft Decision-1.1 | |
|---|---|---|
| Same setup: P(valid) · position | 0.88 · LONG 0.97 | 0.96 · LONG 0.96 |
| Setups judged (5 coins, 2023) | 197, all confirmed | 197, all confirmed |
| Trades · result per trade after costs | 151 · −0.50R | 151 · −0.50R |
| Picking winners (AUC) | 0.47 | 0.48 |
- The learning loop worked. Its first accepted change, a gate that requires the stop to be at least four times the round-trip cost, took the five-coin 2022–2024 run from 239 trades at −0.37R and a −10.3% drawdown to 174 trades at −0.14R and −5.2%. On 2025, which nothing had been chosen on, the same change moved −0.19R to −0.06R.
- The decision models added no selection skill on these setups. Both confirmed every setup the engine passed them, and their probabilities did not separate winners from losers. A model earns its place only when it knows something the engine does not; here it did not.
- The day-trading entries had no edge after costs, even at zero fees (−0.02R a trade). Eleven further ideas from the 2025–2026 literature were registered before testing, and none passed validation.
- Slow trend following held up. Volatility-managed 28-day momentum (hold a coin while its 28-day return is positive, smaller size when daily volatility is above 2%) was the one strategy positive in every period tested, about 29% a year net of costs.
Live paper trading
The trend rule now trades on paper inside the API: it decides once a day from closed Binance bars with exactly the code the backtest used, fills at the live price, charges fees and marks the portfolio at the close. Over the forward period from 12 September 2026, which research never used, it returned −1.9% in 67 days while buy-and-hold lost 24.2%, with a maximum drawdown of −9%. It has run live since 18 November 2026.
This is a research platform, not financial advice: it measured honestly, reduced losses and found what does not work, and it does not claim a profitable day-trading strategy.
Related projects
Mosaic BI: AI Analyst Team on MoE, RLHF + RLVR and an OWASP AI Gateway
AI & Agents · Data Science & ML · Security & Compliance
SmartSearch: Ecommerce Search, Learning to Rank and A/B Testing
Data Science & ML · AI & Agents · Full-Stack & UI/UX
AI Trading Assistant: a Copilot That Holds You to Your Own Strategy
AI & Agents · Finance & Quant · Full-Stack & UI/UX