Skip to content
Brandon M. Crenshaw edited this page Apr 4, 2026 · 2 revisions

OpenTrade Documentation

The most powerful open-source TradingView AI agent. Powered by Claude.


Getting Started

Page Description
Installation Clone, configure, launch
Connecting TradingView Chrome CDP setup on Mac, Windows, Linux
Your First Analysis Run your first chart analysis
Configuration Environment variables and settings

Skills Reference

Skill Description
Chart Analysis Full chart reading — indicators, levels, bias
Quantitative Analysis Statistical edge, vol regime, z-score, factor scoring
Hedge Fund Analysis Multi-timeframe confluence, Kelly sizing, trade structure
HFT & Microstructure Order flow, VWAP, volume profile, execution algos
Portfolio Scanner Multi-symbol scoring, relative strength ranking
Macro Regime Cross-asset regime detection, sector rotation
Strategy Backtesting Pine Script strategy loop, tester metrics

Pine Script

Page Description
Pine Script Development Full write → compile → fix → save workflow
Template Library All 11 built-in templates with usage
Static Analyzer Offline error detection before TradingView
v6 Standards Required patterns, lookahead bias prevention

Tools Reference

Page Description
All 50 Tools Complete tool reference with parameters
Chart Tools Symbol, timeframe, indicator control
Data Tools Reading indicators, OHLCV, Pine drawings
Pine Tools Editor injection, compilation, saving
Replay Tools Historical replay and practice trading

Advanced

Page Description
Quant Standards Kelly Criterion, vol regimes, z-scores, Kelly math
Architecture How OpenTrade works under the hood
Running in the Cloud VPS + Xvfb setup, Cloudflare tunnels
Contributing How to add skills, tools, and templates
Roadmap What's coming next

Quick Reference

node src/cli/index.js                          # interactive chat
node src/cli/index.js chat "analyze my chart"  # single command
node src/cli/index.js pine "write RSI indicator" # Pine Script
node src/cli/index.js server                   # browser UI :7842
node src/cli/index.js analyze file.pine        # static analysis
node src/cli/index.js health                   # connection check

OpenTrade is open source under MIT license. Pull requests welcome.

Clone this wiki locally