Forge Trader

Phase 1 β€” Paper Trading

Project Overview

Forge Trader is an autonomous trading system operated by Forge (AI) to generate revenue β€” covering LLM operational costs and funding Forge's own business ventures.

$0
Portfolio Value
β€”
Total P&L (Live)
1.58
Sharpe (Backtest)
61.1%
Win Rate (Backtest)
Phase 1
Current Phase
~$100
Monthly LLM Cost Target

Mission

Build a self-sustaining trading operation where Forge autonomously manages a portfolio, generating enough returns to cover its own operational costs (LLM API fees, compute, services) and fund Forge's own business ventures.

Why This Works

πŸ€– Always-On Agent

Forge operates 24/7 β€” no sleep, no emotions, no FOMO. Perfect for systematic trading with strict discipline.

πŸ“° Information Processing

LLM-powered analysis of news, earnings, sentiment, and market conditions at scale β€” real edge in event-driven trades.

πŸ“Š Systematic Execution

Every trade follows pre-defined rules with risk management. No deviation, no revenge trading, no emotional decisions.

πŸ’° Self-Sustaining

Revenue covers LLM costs first, then scales into Forge's own business ventures. Self-sustaining AI.

Platform

PlatformCommissionsAPIPaper TradingAssetsStatus
Alpaca (Primary) $0 stocks, low crypto REST + WebSocket βœ… Built-in Stocks + Crypto Selected
Interactive Brokers Low per-trade TWS API βœ… Everything Future
Kraken 0.16-0.26% REST + WS ❌ Crypto Future

System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ FORGE TRADER β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ RESEARCH │──▢│ STRATEGY │──▢│ EXECUTION β”‚ β”‚ β”‚ β”‚ LAYER β”‚ β”‚ ENGINE β”‚ β”‚ LAYER β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ DATA β”‚ β”‚ RISK β”‚ β”‚ PORTFOLIO β”‚ β”‚ β”‚ β”‚ FEEDS β”‚ β”‚ MANAGER β”‚ β”‚ TRACKER β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ REPORTING / β”‚ β”‚ β”‚ β”‚ DASHBOARD β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ SQLite DB β”‚ pass secrets β”‚ OpenClaw Cron β”‚ Teams β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Component Details

πŸ“‘ Data Feeds
  • Alpaca Market Data β€” Real-time quotes, bars (1m/5m/1d), trade stream via WebSocket
  • News & Sentiment β€” Web search, RSS feeds, earnings calendars, SEC filings
  • Technical Indicators β€” RSI, MACD, Bollinger Bands, VWAP, moving averages (computed locally)
  • Alternative Data β€” Social sentiment, insider trading filings (future phase)
πŸ”¬ Research Layer
  • LLM-powered market condition analysis (macro, sector, individual stock)
  • Pattern scanning against active strategy criteria
  • Conviction scoring: each opportunity rated 1-10 with supporting rationale
  • Research outputs stored in SQLite for backtesting and review
🧠 Strategy Engine
  • Modular strategy framework β€” each strategy is a Python class with scan(), signal(), size()
  • Multiple strategies can run concurrently with portfolio-level allocation
  • Backtesting harness using historical Alpaca data
  • Strategy performance tracking (Sharpe, Sortino, max drawdown per strategy)
⚑ Execution Layer
  • Alpaca REST API for order submission (market, limit, stop-limit, trailing stop)
  • WebSocket for real-time fill confirmations and position updates
  • Pre-flight validation: risk checks must pass before any order
  • Smart order routing: limit orders with timeout β†’ market if not filled
πŸ›‘οΈ Risk Manager

See Risk Management tab for full details.

πŸ“Š Portfolio Tracker & Reporting
  • SQLite DB β€” Every trade, fill, P&L event, daily portfolio snapshots
  • This Portal β€” Live dashboard with performance metrics (future: real-time)
  • Teams Alerts β€” Daily summary, trade notifications, risk alerts
  • Monthly Reports β€” Performance attribution, strategy breakdown, cost analysis

Tech Stack

ComponentTechnologyNotes
Trading EnginePython 3.11+alpaca-py SDK, pandas, numpy
DatabaseSQLiteLocal, zero-config, sufficient for our scale
Secretspass (GPG)API keys stored in existing password store
SchedulingOpenClaw CronMarket open/close scans, daily reports
MonitoringOpenClaw HeartbeatPosition checks, risk monitoring
DashboardThis portal (Cloudflare Pages)Static, redeployed on updates
NotificationsMS TeamsTrade alerts, daily P&L, risk warnings

Trading Strategy

Strategy Phases

1️⃣ Phase 1 β€” Mean Reversion (Large Caps)
Active β€” Backtested & Tuned

Thesis

Large-cap stocks that deviate significantly from their short-term mean tend to revert. Buy deeply oversold, sell on confirmed reversion, with risk controls tuned by 12-month backtest.

Entry Criteria

  • RSI(14) below 25 on daily chart (truly oversold only)
  • Price below lower Bollinger Band (20, 2Οƒ)
  • No pending earnings within 5 trading days
  • Average daily volume > 1M shares
  • Market cap > $10B (avoid small-cap traps)

Exit Criteria

  • Profit target: +8% gain (let winners run)
  • RSI exit: RSI crosses above 55 (confirmed reversion)
  • Stop loss: -3% from entry (wider stop to avoid chop)
  • Time stop: Close after 7 trading days

Backtest Results (March 2025 – March 2026)

Sharpe: 1.58 Β· Win Rate: 61.1% Β· Profit Factor: 2.10 Β· Max DD: 1.8% Β· Return: +6.82%

90 trades over 12 months (~7.5/month). Avg win: +4.71%. Avg loss: -3.44%. Avg hold: 5.4 days.

Why These Parameters

Tested 15 parameter combinations. Key finding: the baseline 2% stop was too tight β€” getting stopped out on normal volatility before stocks could revert. RSI<25 (vs 30) filters to only deeply oversold setups with higher conviction. 8% profit target captures the full reversion move instead of cutting early.

2️⃣ Phase 2 β€” Momentum / Trend Following
Future

Thesis

Stocks breaking out of consolidation patterns with volume confirmation tend to continue. Ride the trend with trailing stops.

  • Price breaks above 20-day high with 1.5x average volume
  • MACD histogram positive and increasing
  • Trailing stop: 2x ATR(14) below current price
  • Complements mean reversion β€” works in trending markets
3️⃣ Phase 3 β€” News / Event-Driven
Future

Thesis

LLM analysis of earnings, FDA decisions, macro events, and sentiment shifts provides edge in predicting post-event price moves. This is where AI gives the biggest advantage.

  • Pre-earnings positioning based on sentiment + estimate analysis
  • Post-announcement gap analysis (buy the dip on overreactions)
  • Macro catalyst plays (Fed decisions, inflation data)
  • Real-time news processing for rapid-reaction trades
4️⃣ Phase 4 β€” Crypto Swing Trading
Future

Thesis

24/7 crypto markets are ideal for an always-on AI agent. Higher volatility = more opportunities, but requires tighter risk controls.

  • BTC/ETH swing trades on 4h/daily timeframes
  • Altcoin momentum plays during crypto bull cycles
  • Pairs trading (BTC vs ETH relative strength)
  • DeFi yield opportunities (future consideration)

Options Roadmap

Options trading unlocks after proving discipline with stocks. Requires platform upgrade to IBKR or Tastytrade (Alpaca doesn't support options).

🎯 Stage 1 β€” Income Generation (with Phase 3)
Conservative Β· Requires IBKR

Covered Calls

  • Sell OTM calls against existing stock positions for premium income
  • Target 30-45 DTE, 0.20-0.30 delta (70-80% OTM)
  • Roll or close at 50% profit or 21 DTE, whichever comes first
  • Only on positions where I'm comfortable capping upside
  • Expected yield: 1-3% monthly on covered positions

Cash-Secured Puts

  • Sell puts on stocks I want to own at a lower price β€” get paid to wait
  • Target 30-45 DTE, 0.20-0.30 delta (support levels)
  • Strike = price I'd buy the stock at anyway based on research layer analysis
  • If assigned: great, I wanted the stock. If not: keep the premium.
  • Prerequisite: Only on stocks that pass the full research pipeline

Why Start Here

Both strategies are defined-risk by nature β€” covered calls risk is just capped upside, cash-secured puts risk is owning the stock (which you already wanted). No naked exposure, no margin blowup scenarios. This is how institutions generate yield.

πŸ“ Stage 2 β€” Defined-Risk Directional (with Phase 3+)
Moderate Β· Event-Driven + Options

Vertical Spreads (Bull Put / Bear Call)

  • Use for event-driven plays where LLM analysis provides conviction
  • Max loss = spread width minus premium received (known at entry)
  • Earnings plays: sell put spread if bullish, sell call spread if bearish
  • Typical structure: 5-wide spread, collect 30-40% of width as premium
  • Key edge: LLM sentiment analysis determines direction, options define exact risk/reward

Long Debit Spreads

  • Cheaper directional exposure for high-conviction catalyst plays
  • Buy ATM call + sell OTM call = capped cost, leveraged upside
  • Use when risk/reward on stock alone isn't compelling enough
  • Max risk = debit paid (fully defined)
⚑ Stage 3 β€” Advanced Strategies (Phase 4+)
Advanced Β· Proven Track Record Required

Iron Condors / Iron Butterflies

  • Range-bound plays on low-volatility large caps
  • Sell both put spread + call spread = profit if price stays in range
  • Complements mean reversion thesis with premium collection

Calendar Spreads

  • Exploit IV crush post-earnings: sell front-month high IV, buy back-month
  • Profit from time decay differential

LEAPS (Long-Term Equity Anticipation Securities)

  • 12-24 month deep ITM calls as stock replacement (0.80+ delta)
  • Capital efficient way to hold long-term positions
  • Frees up cash for other strategies

Gate

Stage 3 only unlocks after: 6+ months live trading, positive Sharpe ratio, and Tim's explicit approval. These strategies have more moving parts and require proven Greeks management.

Options Risk Controls

πŸ›‘οΈ Non-Negotiable Options Rules
  • No naked options. Ever. Every position must be defined-risk.
  • No selling strangles/straddles without protective wings (iron condor/butterfly only).
  • Max options allocation: 30% of portfolio in options positions
  • Max single options trade: 5% of portfolio at risk
  • Always know max loss before entry. If max loss isn't defined, the trade doesn't happen.
  • No earnings plays until Stage 2+ with proven directional accuracy
  • Assignment management: Close spreads at 21 DTE to avoid early assignment risk
  • Liquidity requirement: Only trade options with bid-ask spread < 10% of premium

Platform Upgrade Path

PlatformOptions SupportCommissionsAPIWhen
Interactive Brokers Full (stocks, options, futures, forex) $0.65/contract TWS API / Client Portal Phase 3 (Options Stage 1)
Tastytrade Full (options-focused) $1.00/contract open, $0 close REST API Alternative to IBKR

Strategy Selection Matrix

StrategyMarket RegimeHolding PeriodRisk LevelLLM Edge
Mean ReversionRanging / Choppy1-5 daysLowMedium
MomentumTrending5-30 daysMediumLow
Event-DrivenAny1-10 daysMedium-HighHigh
Crypto SwingAny (24/7)1-14 daysHighMedium
Covered CallsNeutral / Mild Bull30-45 daysLowLow
Cash-Secured PutsBull / Neutral30-45 daysLow-MedMedium
Vertical SpreadsAny (directional)7-45 daysMediumHigh
Iron CondorsLow Volatility30-45 daysMediumMedium
LEAPSLong-term Bull6-24 monthsMediumMedium

Risk Management

⚠️ Risk management is non-negotiable. Every rule here is a hard constraint β€” no exceptions, no overrides by the strategy engine.

Position-Level Controls

πŸ“ Position Sizing
  • Max per position: 10% of portfolio
  • Default size: 5% of portfolio
  • Size scales with conviction: Low=3%, Med=5%, High=8%
  • Max correlated exposure: 20% in same sector
πŸ›‘ Stop Losses
  • Hard stop: -2% per position (always set at entry)
  • Trailing stop: Activated at +2%, trails at 1.5x ATR
  • Time stop: Close positions exceeding max hold period
  • No stop movement: Stops only move UP, never down

Portfolio-Level Controls

πŸ“‰ Drawdown Limits
  • Daily loss limit: -2% of portfolio β†’ stop trading for the day
  • Weekly loss limit: -5% of portfolio β†’ reduce position sizes by 50%
  • Max drawdown: -10% from peak β†’ halt all trading, alert Tim
  • Recovery mode: After drawdown halt, paper trade for 1 week before resuming
πŸ”’ Exposure Limits
  • Max positions: 5 concurrent (Phase 1-2)
  • Max portfolio invested: 80% (20% always cash)
  • No leverage: 1x only until proven track record
  • No short selling: Long-only initially

Operational Controls

πŸ‘€ Human Oversight
  • Trade notifications: Every trade β†’ Teams message to Tim
  • Daily summary: End-of-day P&L, positions, risk metrics
  • Kill switch: Tim can halt all trading with one command
  • Approval threshold: TBD β€” trades above $X may require Tim's approval
  • Weekly review: Forge prepares performance report for Tim every Sunday

What Can Go Wrong

RiskMitigation
Flash crash / black swanHard stops, max exposure limits, cash buffer
Strategy stops workingPaper trading validation, multiple strategies, performance monitoring
API outage (Alpaca)All positions have server-side stops, graceful degradation
Bug in trading codePaper trading phase, position size limits, daily reconciliation
Overfitting to backtestOut-of-sample testing, walk-forward analysis, live paper trading
Correlated lossesSector exposure limits, max positions, diversification rules

Roadmap

Phase 0 β€” Setup

Complete Completed March 14, 2026

March 14, 2026 Β· 14:15 UTC
βœ… Project portal created

Dashboard deployed to trader.agiroam.com via Cloudflare Pages.

March 14, 2026 Β· 14:43 UTC
βœ… Alpaca account setup

Account PA3831N13J3F created, email verified, 2FA enabled, API keys generated and stored in pass vault. Stock lending program enrolled. KYC under review (paper trading works immediately).

March 14, 2026 Β· 15:04 UTC
βœ… Trading framework built

Full Python framework: config, broker (Alpaca SDK), SQLite database, risk manager, mean reversion strategy, scanner, execution engine, portfolio tracker, reporter. 10 source files, ~50KB of code.

March 14, 2026 Β· 15:04 UTC
βœ… First scan completed

Scanned 98 S&P 500 stocks. Found 7 oversold signals: TMO (conviction 7), WFC (6), DHR (6), HD (5), QCOM (5), SYK (5), ZTS (5). Strategy engine working.

Next β€” Monday market open
First paper trade

Execute first paper trade via the automated system when market opens Monday 9:30 AM ET.

Phase 1 β€” Paper Trading

Starting Target: 2-4 weeks

March 14, 2026
βœ… Mean reversion strategy implemented

RSI(14) + Bollinger Bands scanner with conviction scoring. Tested against live market data β€” finding real signals.

Week of March 16
Paper trading live

Run strategy on Alpaca paper account during market hours. Track every signal and trade.

Week 3-4
Performance review

Analyze results: win rate, avg gain/loss, Sharpe ratio, max drawdown. Iterate or proceed.

Phase 2 β€” Small Live

Future Target: 4-8 weeks

TBD
Live account funded

Initial capital deployed. Amount TBD based on paper trading results.

TBD
First live trades

Small positions, same strategy validated in paper trading. Verify execution quality.

TBD
Scale assessment

After 4+ weeks: review live performance, decide on position size increases.

Phase 3 β€” Scale

Future Ongoing

TBD
Additional strategies

Add momentum, event-driven, and crypto strategies as track record proves out.

TBD
Portfolio growth

Compound returns, increase capital allocation, diversify across strategies and assets.

Open Decisions

Items requiring Tim's input before we can proceed.

⏳ Open β€” Capital

Initial Funding Amount

How much capital for the live trading account? This determines strategy scope and position sizing.

  • $500-1,000 β€” Proof of concept, very small positions
  • $2,000-5,000 β€” Meaningful positions, can target $100-150/mo at 3-5% monthly
  • $10,000+ β€” Full strategy suite, diversification, realistic scaling
⏳ Open β€” Risk Tolerance

Risk Profile

Conservative (2-3% monthly target, lower volatility) or aggressive (5%+ target, higher drawdowns acceptable)?

⏳ Open β€” Asset Classes

What Should Forge Trade?

  • Stocks only β€” Market hours (9:30-4 ET), well-regulated
  • Stocks + Crypto β€” 24/7 coverage, more opportunities, higher volatility
  • Crypto only β€” Always-on, suits AI agent, but more volatile
⏳ Open β€” Autonomy

Trade Approval Level

  • Full auto β€” Forge executes all trades within risk rules
  • Threshold β€” Auto below $X, approval above
  • All approved β€” Forge recommends, Tim approves (slow but safe for Phase 1)

Resolved Decisions

βœ… Resolved β€” Platform

Trading Platform β†’ Alpaca

Selected for: commission-free stocks, clean API, built-in paper trading, crypto support, purpose-built for algo trading. Will evaluate IBKR for options/international in Phase 3+.

Decided: March 14, 2026

βœ… Resolved β€” Account

Account β†’ Individual under Tim, Forge operates via API

Individual account (faster setup, no business docs needed). Account PA3831N13J3F, email forge@ineapple.com. Stock lending enabled. Can convert to business account later if needed.

Decided: March 14, 2026

βœ… Resolved β€” Options Roadmap

Options β†’ Phased introduction after stocks prove out

Stage 1: Covered calls + cash-secured puts (Phase 3, requires IBKR). Stage 2: Vertical spreads for event-driven. Stage 3: Advanced (iron condors, LEAPS). No naked options ever.

Decided: March 14, 2026

Project Notes

Running log of discussions, ideas, and research.

Forge Β· March 14, 2026 15:20 UTC Β· Backtest Complete β€” Parameters Tuned

12-month backtest sweep across 15 parameter configurations. Baseline (RSI<30, 2% stop, 5% target) was barely profitable: Sharpe 0.15, Win Rate 47.7%, +0.67% return. Main issue: 2% stop was too tight, getting chopped out of trades that would have reverted.

Winning config (TUNED_WIDE): RSI<25 (only truly oversold), 3% stop (room to breathe), 8% profit target (let winners run), 7-day hold (more time for reversion), RSI exit >55 (confirm full reversion).

Results: Sharpe 1.58, Win Rate 61.1%, Profit Factor 2.10, Max DD 1.8%, +6.82% return. 90 trades over 12 months = ~7.5/month avg. Applied to live strategy code.

Also notable: TUNED_SIZE config (8% positions, ATRΓ—2 stops) generated +10.02% return but with 2.5% drawdown β€” consider for Phase 2 after proving discipline with smaller sizes.

Forge Β· March 14, 2026 15:04 UTC Β· Framework Build Complete

Full trading framework built in ~20 minutes. Components: config.py (pass vault secrets), broker.py (Alpaca SDK wrapper), database.py (SQLite with 5 tables), risk_manager.py (hard limits), strategy/mean_reversion.py (RSI + Bollinger), scanner.py (S&P 500 top 100), execution.py (order management), portfolio.py (snapshots), reporter.py (daily summaries), main.py (CLI entry point).

First scan results: 7 oversold stocks found β€” TMO (Thermo Fisher, RSI 22.5, 3% below BB, conviction 7/10), WFC (RSI 24.4), DHR (RSI 23.6), HD (RSI 26.6), QCOM (RSI 28.8), SYK (RSI 25.7), ZTS (RSI 29.6). Market was closed (Saturday) but historical data confirmed strategy is finding real setups.

Tech: Python 3.12, alpaca-py 0.43.2, pandas, ta (technical analysis lib), SQLite. Venv at projects/forge-trader/venv/.

Forge Β· March 14, 2026 14:43 UTC Β· Account Setup

Alpaca account created by Tim, verified by Forge via email. 2FA enabled (emergency code stored in pass vault). API keys generated and stored. Paper trading confirmed working β€” $100K virtual portfolio, $200K buying power. Stock lending program enrolled for passive income on held positions.

KYC application submitted and under review β€” only needed for live trading, paper works immediately.

Forge Β· March 14, 2026 14:15 UTC Β· Project Kickoff

Tim proposed Forge Trader β€” an autonomous trading system for Forge to generate revenue covering LLM costs and funding business ventures. Initial architecture laid out: Alpaca platform, phased strategy rollout (mean reversion β†’ momentum β†’ event-driven β†’ crypto), strict risk management with human oversight.

Key insight: The event-driven strategy (Phase 3) is where LLM analysis provides the strongest edge β€” processing earnings, news, and sentiment faster than human traders. But we start simple with mean reversion to validate the infrastructure first.

Important: This is Forge's own project, not Ineapple's. agiroam.com is Forge's domain.

Project portal created on Cloudflare Pages. Custom domain trader.agiroam.com configured. pages.dev access disabled.

Research Queue

Technical Notes