I Turned JEV AI Into a 24/7 Stock Trader (Full Tutorial Breakdown)
Most AI trading demos work like this: you paste market data into a chatbot, ask what to buy, and place the trade. It makes for a good demo and a risky system. The model has no guardrails, the logic is hard to audit, and nobody can say why a trade happened.
A recent tutorial from ThinkTrade takes a different approach. It uses Claude Code to build the infrastructure and Jev AI, TypeSafe’s fast decision model, as a narrow decision layer inside a rules-based system. The author built three bots and compared them against baselines. Here is how the system works and what the results showed.
The Core Architecture: Rules First, AI Second
The AI is not asked “what should I trade today?” It only sees a market once the strategy’s own rules have found a valid setup.
- Strategy rules run first. They pull market data and determine whether a valid setup exists at all.
- Jev gets a scoped question. If a setup exists, the system sends Jev a structured market snapshot and a fixed set of choices, such as enter long, enter short, or wait.
- Jev decides quickly. It returns a decision with a confidence score in roughly a quarter of a second.
- Risk controls have the final veto. Position size, stops, allowed directions, and loss limits are hard-coded, and they apply before any order is submitted.
The two tools have separate jobs. Claude Code is the builder: you describe a strategy in plain English, and it writes the Python, connects the data feeds, runs backtests, generates reports, and sets up the paper-trading loop. Jev is the filter, a fast decision layer that evaluates setups the rules have already flagged.
This keeps the system fast and auditable, and far safer than letting an LLM control a brokerage account.
Strategy 1: Opening Range Breakout (ORB)
The Opening Range Breakout was the standout performer. The setup is simple: mark the high and low of the first 30 minutes of the session, then trade a breakout above (long) or below (short).
The author tested three versions, each with the same $10,000 in simulated capital:
- Baseline: a lightly prompted AI interpretation of the ORB setup.
- Hand-written rules: the baseline plus extra conditional logic, such as skipping the trade if no breakout occurs within a set window.
- Jev-assisted: rules identify the setup, then Jev receives a market snapshot and chooses long, short, or wait, with confidence and fake-out risk scores.
The Jev-assisted version:
- Took roughly 4× fewer trades
- Showed significantly lower drawdown
- Delivered higher profitability
The other two versions spent much of the early test period underwater, while the Jev-assisted equity curve stayed comparatively flat through drawdown periods. Filtering out low-quality breakouts mattered more than taking more trades.
Jev also produced decision logs with confidence scores, fake-out risk estimates, and written rationales that can be reviewed later. It helped refine filters around higher-timeframe trend and breakout candle quality too.
Strategy 2: Insider and News Filings Bot
The second bot is event-driven instead of price-driven. It monitors real-time news headlines and newly published insider filings, filters them by position size and the type and owner of the insider transaction, and asks Jev whether the information edge is strong enough to act on.
It shows that the same architecture of rules, a scoped AI decision, and hard risk limits can support strategies that don’t rely on technical analysis.
Strategy 3: Futures with Session Rules
The third bot trades futures and respects session boundaries and specific timing rules. The architecture is unchanged, but the market microstructure constraints differ. The three bots started with identical simulated capital, which kept the comparison clean.
From Backtest to 24/7 Paper Trading
After backtesting, the tutorial moves to always-on infrastructure:
- Alpaca for stock paper trading
- Oracle Cloud’s free-tier VPS for continuous hosting
- A custom monitoring dashboard showing decision history, open positions, and performance
- Scoped API permissions, fee awareness, and defined risk controls
The plan is to run the bots in paper mode for 30 days and track results in real time. This is a sensible step. Backtests are easy to overfit, and live paper trading exposes problems that historical data hides.
The Risk Controls That Actually Matter
A large part of the tutorial covers the unglamorous safeguards:
- Position sizing rules to cap exposure on any single trade
- Hard stops that don’t depend on the model’s judgment
- Maximum loss limits, including daily caps
- Fee modeling, so backtests reflect real costs
- Restricted API permissions, with no withdrawal rights and limited order types
- Continuous logging of every Jev decision for later review
The principle holds throughout: Jev never gets unlimited control, and the execution engine always has the final say.
Why This Design Works
Three ideas make this stack more credible than the typical “ChatGPT trading bot”:
- Rules stay in code. Strategy logic is deterministic and testable.
- Risk stays hard-coded. Safety limits don’t depend on a model behaving well.
- The AI only votes on valid setups. Its job is narrow, fast, and logged, which makes it easier to evaluate and to trust.
Using AI to refine decisions inside a controlled system, instead of making the decisions on its own, is a pattern that carries well beyond trading.
Disclaimer: This article is for educational purposes only and is not financial advice. Backtests and paper trading are simulated and do not guarantee future results. Trading involves substantial risk of loss. Start in paper mode, understand every risk control, and never risk capital you can’t afford to lose.

