Skip to content

System Layers

Layer 12: Risk / Rules     [NOT BUILT] Hard protection and guardrails
Layer 11: Gamification     [NOT BUILT] Targets, progression, improvement tracking
Layer 10: Intelligence     [NOT BUILT] LLM-based trade filtering
Layer  9: Evaluation       [NOT BUILT] MFE, MAE, setup performance
Layer  8: Data             [MOCK]      Watchlist, setups, trades, history, limited stats
Layer  7: Trade            [NOT BUILT] Live trades, pending trades, history
Layer  6: Broker           [PARTIAL]   Paper Trading UI automation only
Layer  5: UI               [STATIC]    HTML/CSS/JS, mock data
Layer  4: MCP Server       [BUILT]     78 tools, full CDP bridge
Layer  3: Indicators       [REBUILDING] 7 indicators from scratch
Layer  2: TradingView      [RUNNING]   Chrome + CDP on port 9222
Layer  1: Fund. Screener   [NOT BUILT] Ticker discovery outside manual selection

Layer Details

Layer 1: Fundamental Screener

  • Finds tickers outside manual selection
  • Comes later

Layer 2: TradingView (Chart Surface)

  • Runs in Chrome with --remote-debugging-port=9222
  • TradingView Desktop MSIX v3.0.0 broke CDP; Chrome workaround in place
  • Requires separate --user-data-dir profile
  • User must have valid TradingView subscription

Layer 3: Indicators

Being rebuilt from scratch. 7 indicators:

Indicator Purpose
FVG + OB + MSS Combined open-source market structure indicator
Next Candle Bias Candle bias model
SMT Smart money divergences
Session Bias Intraday session directional bias
Macro Macro timing windows
Economic Calendar News/event data source (flows TV → MCP → system)
EMA Trend following

Status: Documentation phase. Building and standardising outputs before connecting to MCP.

Layer 4: MCP Server (tradingview-mcp/)

  • 78 MCP tools over stdio transport
  • CDP connection to Chrome/TradingView
  • Categories: Health, Chart, Data, Pine, Drawing, Alerts, Replay, Pane, Tab, Watchlist, UI, Stream, Batch, Capture, Trading
  • Compact-by-default output (typical workflow: 5-10KB not 80KB)

Layer 5: UI Layer (fatbot/)

  • Static HTML/CSS/JS on localhost:8000
  • Dark theme, responsive layout
  • Panels: Strategy banner, watchlist, orders, positions, history, indicator summaries
  • Currently reads mock-mcp.json and mock-db.json

Layer 6: Broker Layer

  • Partial: Paper Trading via TradingView UI automation (fragile)
  • Planned: Direct broker API integration (Tradovate, IBKR)
  • See Broker Tools (Planned)

Layer 7: Trade Layer

  • Not built
  • Handles live trades, pending trades, history

Layer 8: Data Layer

  • Mock only — JSON files
  • Planned: Watchlist, trade setups, trades, history, limited stats

Layer 9: Evaluation Layer

  • Not built
  • Forward-testing metrics: MFE, MAE, setup performance, outcome quality

Layer 10: Intelligence Layer

  • Not built
  • LLM-based filtering to reject weak trades and improve decisions

Layer 11: Gamification Layer

  • Not built
  • Targets, progression, improvement tracking

Layer 12: Risk / Rules Layer

  • Not built
  • Hard protection and guardrails