TradingView Users¶
For Pine Script writers who want to take their backtesting to the next level with AlphaForge.
Division of Roles¶
| TradingView | AlphaForge |
|---|---|
| Charts and indicator visualization | Statistical backtesting and optimization |
| Rapid idea validation with Pine Script | Parameter optimization (Optuna/Bayesian) |
| Alert triggering | Walk-forward validation |
| Visual entry confirmation | Quantitative strategy evaluation (Sharpe, max DD) |
Typical Workflow¶
1. Prototype your idea in Pine Script on TradingView
↓
2. Port to an AlphaForge JSON strategy
↓
3. Run full backtest with forge backtest run
↓
4. Optimize parameters with forge optimize run
↓
5. Re-export to Pine Script with forge pine generate
↓
6. TradingView alert → Alpha Strike auto-execution (optional)
Getting Started¶
# Create a strategy from template
forge strategy create my_strategy --template hmm_bb_rsi
# Fetch daily data (e.g. QQQ)
forge data fetch QQQ --start 2020-01-01
# Run backtest
forge backtest run QQQ --strategy my_strategy
Related Docs¶
- TradingView × Pine Script Integration (Part 1) — Porting Pine Script logic to AlphaForge JSON
- TradingView × Alpha Strike Integration (Part 2) — Connecting alerts to automated order execution
- End-to-End Strategy Development Workflow — From data fetch to execution
- Strategy Templates — Copy-paste ready JSON templates