Reinforcement learning and deep learning for trading: what installs, and what the evidence says. TRIGGER - reinforcement learning, RL agent, trading gym, custom trading environment, reward function, PPO or DQN for trading; FinRL, FinRL-Meta, ElegantRL, stable-baselines3, gymnasium, gym, gym-anytrading, TensorTrade; LSTM, GRU, TCN or Transformer for return prediction; "does deep learning beat a linear model"; FinRL or gym failing to import with ModuleNotFoundError. FinRL's published wheel declares no dependencies and cannot import, and linear models beat deep ones in the published return-prediction comparisons. SKIP for LLM agents specifically (llm-finance-agents).
Ships in fin-llm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two separate questions, both with unwelcome answers: does the software work, and does the method work. Section 1 is verified installation state; section 2 is the evidence.
| Package | Version | Released | requires_dist | State |
|---|---|---|---|---|
🔴 finrl | 0.3.7 | 2024-04-12 | NONE | BROKEN — see below |
🔴 elegantrl | 0.3.6 | 2023-02-07 | NONE | same failure mode, frozen |
🔴 finrl-meta | 0.3.6 | 2023-02-07 | — | frozen |
🔴 gym | 0.26.2 | 2022-10-04 | NONE | repo archived: true — dead |
🔴 tradinggym | — | — | — | does not exist on PyPI (404) |
⚠️ tensortrade | 1.0.4 | 2026-02-06 | 21 deps | needs Python ≥3.12 + TensorFlow; its own deps (ta, stochastic) are stale two levels deep |
✅ gymnasium | 1.3.0 | 2026-04-22 | 56 deps | the live successor to gym |
✅ stable-baselines3 | 2.9.0 | 2026-06-15 | 27 deps | healthy |
✅ gym-anytrading | 2.0.0 | 2023-08-27 | — | small, works with gymnasium |
🚨 FinRL is broken, not merely stale. ✅ Independently verified twice: the 0.3.7 wheel declares
requires_dist: None, so pip install finrl installs zero dependencies and import finrl
dies on ModuleNotFoundError: gymnasium. Reproduced in a clean virtualenv. PyPI has been frozen
since 2024-04-12; setup.py says 0.3.8, which was never published.
⚠️ AI4Finance's apparent activity is README churn. FinRL's last 100 commits: 93 in 2026-03,
mostly README edits; 4 in 2026-04; 3 in 2026-07 — a Colab link fix and a one-line threading.Thread
bug. ElegantRL's recent log is six README edits and a commit titled r. Commit counts on these
repos are not a maintenance signal.
✅ The healthy stack was installed and run: gymnasium 1.3.0 + stable-baselines3 2.9.0 +
torch 2.14.0 + gym-anytrading, with the correct 5-tuple step() return
(obs, reward, terminated, truncated, info) — note this differs from gym's 4-tuple, which is the
usual reason old tutorials crash.
⚠️ Qlib's RL module froze functionally in 2023 and is scoped to order execution only — which, per §3, is the one place RL has a real case.
No RL trading result has been independently replicated. Systematic arXiv searches for critical or negative work return essentially only papers claiming wins — that is a publication filter, not evidence of success.
FinRL's own authors say so. arXiv 2209.05559 (Gort, Xiao-Yang Liu et al.) exists specifically to reject overfitted agents, and FinRL-Meta's abstract (2211.03107) names low signal-to-noise ratio, survivorship bias and backtest overfitting as the field's problems.
Deep RL fails reproducibility even in clean simulators, where the environment is free and exact:
If RL cannot be reproduced in Atari, where data is unlimited and the dynamics are exact, the prior for a noisy, non-stationary, 30-year-sample financial environment should be very low.
Arithmetic. Thirty years of daily bars is ~7,560 observations. Atari benchmarks use ~200 million frames. RL is a sample-hungry method being applied to one of the smallest datasets in machine learning.
The MDP is fake. In every mainstream trading gym, the agent's actions do not affect state transitions at all — prices evolve from a fixed replay of history regardless of what the agent does. Without action→state feedback there is no sequential decision problem: it is supervised prediction wearing an MDP costume, and it inherits none of RL's justification while paying all of its sample-efficiency costs.
🔑 Where RL genuinely applies: execution and market making. There, your actions do move the state — your order changes the book, your quotes change your inventory and adverse selection. That is a real MDP, it is what Qlib's RL module targets, and it is where the credible work lives.
| Evidence | Finding |
|---|---|
| DLinear, arXiv 2205.13504 | A single linear layer beat every Transformer tested on long-horizon forecasting |
| GBRT, arXiv 2101.02118 | Gradient-boosted regression trees matched deep models |
| Kang, arXiv 2601.07131 | Decisive: linear Sharpe 1.30 / +272.6% vs ICA-Wavelet-LSTM 0.07 / −5.1%; raw LSTM collapsed to the unconditional mean at a 47.5% hit rate |
| Chen / Hanauer / Kalsbach | Design choices alone span Sharpe 0.08–1.82 on the same problem — the pipeline, not the model, determines the result |
That last row is the important one. When arbitrary design choices move Sharpe by a factor of 20,
a reported Sharpe is a statement about the researcher, not the model. Every one of those choices is
a trial — see ../../fin-core/skills/backtest-validation/SKILL.md.
A defensible protocol if you proceed anyway:
purgedcv or skfolio.import gymnasium as gym # NOT `gym` — that is archived
from stable_baselines3 import PPO
# gymnasium's step() returns 5 values: obs, reward, terminated, truncated, info
Design pitfalls specific to trading environments:
assert_causal from
../../fin-core/skills/signal-construction/scripts/assert_causal.py.Not "no". The honest framing is: the software is mostly broken, the method is unreplicated, the sample is three orders of magnitude too small, and the environment is not a real MDP — but execution and market making are a genuine application, and a linear baseline is the benchmark you have to beat before any of it matters.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/finance-agent-architecturesHow the mainstream finance agent systems are built, and how to stage a research-to-execution pipeline whose gates are code. TRIGGER - build a multi-agent trading system; TradingAgents architecture; the ai-hedge-fund repo; RD-Agent for quant; Vibe-Trading; FinRobot vs FinGPT; FinMem layered memory; a LangGraph, CrewAI, AutoGen or Claude Agent SDK pipeline for stock research; analyst, researcher, trader and risk-manager agents, bull-bear debate; an agent that reads 10-Ks and trades; "how should the pipeline be staged", where the LLM sits, human-in-the-loop gates, prompt injection through scraped filings, agent reproducibility; 交易 agent 架构, 多智能体 pipeline. SKIP for whether any of it makes money or whether you should build one at all (llm-finance-agents), choosing an MCP server (finance-mcp-servers), RL agents (rl-and-ml-trading), and order safety at the broker (broker-execution-apis)./finance-mcp-serversPick a finance MCP server, and know its licence and blast radius before connecting it. TRIGGER - an MCP server for market data, filings, macro data, brokerage or trading; adding, choosing, comparing or debugging a finance MCP; Alpaca MCP, Alpha Vantage MCP, Polygon or Massive MCP, OpenBB MCP, SEC EDGAR MCP, FRED MCP, yfinance MCP, QuantConnect MCP; "which finance MCP should I install"; granting an MCP server the ability to place orders. Several are AGPL-3.0, one places real trades, and the most-starred one is over a year stale. SKIP for the Python libraries behind them (market-data-sourcing)./fin-skills-as-toolsHow to hand this library to an agent as TOOLS rather than as reading - the MCP server, the exported Anthropic and OpenAI tool definitions, the JSON payload conventions, and the four guards that cannot cross a JSON boundary. TRIGGER - expose fin-skills to an LLM agent; run the fin-skills MCP server; "python -m fin_skills.mcp"; fin-skills-mcp; import the guards as function-calling tools; generate tool schemas for the Messages API or the OpenAI Responses API; send a pandas Series or DataFrame through a tool call; check_backtest, bundle_coverage, describe_guard, read_skill; why assert_causal or warmup_probe is missing from the tool list; payload size limits for a tool call; 把 guard 挂成 agent 工具. SKIP for how to design the agent pipeline itself (finance-agent-architectures), which third-party finance MCP servers exist and which can move money (finance-mcp-servers), and whether an LLM strategy makes money at all (llm-finance-agents)./llm-finance-agentsWhat the published evidence says about LLM trading agents, and the real status of the frameworks. TRIGGER - TradingAgents, FinGPT, FinRobot, FinMem, FinCON, FinAgent, AlphaAgent, RD-Agent, AI4Finance; evaluating an LLM-driven trading system, a multi-agent trader, or a news-sentiment-to-signal pipeline; "does AI trading work"; FinBERT and financial sentiment models; reproducing a Sharpe from an LLM-trading paper; whether a backtest window overlaps a model's training cutoff. No credible evidence exists that any of it produces alpha net of costs. SKIP for how the systems are built and how to stage the pipeline (finance-agent-architectures), for reinforcement learning and deep learning specifically (rl-and-ml-trading), and for MCP servers (finance-mcp-servers)./fin-llm:rl-and-ml-tradingfrom fin-llm
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-llm