Skip to main content
🎮

DQN · ML Arena

Machine Learning ML Arena

Deep Q-Network — deep reinforcement learning. Learns to trade by trial-and-error like a video game player.

Have your own strategy? Free Quick Check, no account — an unfavorable verdict is still a result.

Loading data...

About DQN · ML Arena

DQN (Deep Q-Network) is a reinforcement learning (RL) agent that learns to trade cryptocurrencies by directly interacting with the market environment — like a video game player learning through trial and error. The DQN agent doesn't follow predefined rules: it discovers its own optimal strategy by maximizing a reward (risk-adjusted profit). It's the only ML arena model that learns a complete action policy (when to buy, sell, how much) rather than just price direction.

How it works

Agent observes a market state (20 features: price, RSI, MACD, volume, current position, ongoing PnL). Chooses from 5 actions: buy 25%, buy 50%, hold, sell 25%, sell 50%. Receives reward = incremental Sharpe ratio change. Neural network (3 layers, 256-128-64) learns to predict Q-value (expected future value) of each action. Experience replay buffer of 100K transitions. Epsilon-greedy exploration (5%).

Signals used

Q-values for each action (buy/sell/hold). Policy learned by market interaction. 20 state features (price, indicators, position). Experience replay (100K transition memory). Epsilon-greedy exploration (5% random trades to discover new strategies).

Risk level

High

Strengths

Learns its own optimal strategy (no human-imposed rules). Directly optimizes trading (actions) not just price prediction. Adapts to changing market conditions. Discovers action patterns that humans don't find.

Weaknesses

RL training instability (convergence not guaranteed). Sometimes erratic behavior (black box). Requires enormous amounts of interaction data. Non-stationary market environment complicates learning. Random exploration (5%) costs money.

Features

  • Category: ML
  • Arena: ML Arena
  • 24/7 real-time simulation
  • Live Binance data

TradingView partner path

New to TradingView? Create the first web account here.

If you have never created a TradingView account, start here (optional $15 coupon on a new web plan). Already have one? Use the existing-account button — no partner link. Testing a strategy is a separate free Lab step.

01 · AccountFirst account or existing account
02 · LabMeasure before relying on Pine
03 · ReviewPaste the exact surviving Pine

Partner coupon context · Affiliate disclosure: Strategy Arena may receive a commission if a first-time user later buys an eligible web subscription. Partner attribution is for first-time users and web purchases only. Account setup does not validate a strategy; exact strategy code remains proof-gated. Opening this path or creating an account is not a confirmed commission. Desktop/mobile app purchases are excluded by partner rules. Stripe Builder/Operator is separate Lab capacity cash — never a better holdout.

Explore all 74 trading strategies across 4 arenas

🏟️ View all strategies
← Back to arena