๐งช Backtesting Lab - User Guide
Test your trading strategies against real historical market data to validate performance before risking real money.
๐ Table of Contents
- Overview
- What's New
- How to Access
- Key Features
- Interface Tour
- Running Your First Backtest
- Configuration Controls
- Understanding Results
- Performance Metrics
- Charts & Visualizations
- Saving & Exporting
- Templates
- Tips & Best Practices
- Common Issues
- FAQ
- Related Guides
๐ฏ Overview
What is Backtesting Lab?
The Backtesting Lab tests your trading strategies against real historical market data to validate performance before risking real money.
Key Capabilities:
- ๐ 20+ Performance Metrics - Win rate, Sharpe ratio, drawdown, profit factor, and more
- ๐ Visual Equity Curve - See portfolio growth over time
- ๐ Detailed Trade List - Every trade with entry/exit prices and P&L
- ๐ฐ Realistic Fee Simulation - Commission and slippage modeling
- ๐พ Save & Compare Results - Store backtests for later analysis
- ๐ค Export Data - Download trades as CSV for spreadsheet analysis
Why Backtest?
- โ Know your strategy's win rate before trading live
- โ Understand maximum drawdown you'll face
- โ Validate strategy with data, not guesses
- โ Build confidence in your approach
๐ How to Access
Quick Access:
- Press
Ctrl + Kand type "Backtest" - Click Backtesting Lab in top navigation
- From Strategy Builder, click "Backtest" button
- Visit
/platform/backtesting-lab
โจ Key Features
Core Capabilities:
- ๐ฏ Strategy Selection - Choose from your saved strategies
- ๐ Multi-Market Support - Crypto, stocks, forex, commodities, indices
- ๐ Custom Date Ranges - Test any historical period
- ๐ฐ Capital Settings - Set initial portfolio size and currency
- ๐ Fee Modeling - Realistic commission and slippage simulation
- ๐ Live Progress - Watch backtest run in real-time
- ๐พ Save & Compare - Store results for later analysis
๐ฅ๏ธ Interface Tour
Left Panel (Configuration):
- Strategy Selection - Choose your strategy
- Market Selection - Pick symbol and timeframe
- Test Settings - Date range and capital
- Execution Settings - Fees and slippage
- Actions - Run, save, export buttons
- Templates - Save/load configurations
Right Panel (Results):
- Performance Metrics - Win rate, Sharpe, drawdown, etc.
- Equity Curve Chart - Portfolio value over time
- Trade List - Detailed trade log with P&L
๐ Running Your First Backtest
Step 1: Select Your Strategy
- Click the Strategy Selection dropdown
- Choose a strategy from your saved library
- Review the strategy preview (indicators and signals)
๐ก No strategies? Create one in Strategy Builder first!
Step 2: Configure Market Data
- Select Market Type: Crypto, Stocks, Forex, Commodities, or Indices
- Search for Symbol: Type symbol name (e.g., "BTCUSDT" or "AAPL")
- Choose Timeframe: 1h, 4h, 1d, etc.
Available Data:
- Crypto (Binance): 3+ years of history
- Stocks (Yahoo Finance): 10+ years of history
- Forex (Yahoo Finance): 10+ years of history
- Commodities (Yahoo Finance): 10+ years of history
- Indices (Yahoo Finance): 20+ years of history
Step 3: Set Test Parameters
- Start Date: When to begin (e.g., 6-12 months ago)
- End Date: When to end (typically today)
- Initial Capital: Starting portfolio size (e.g., $10,000)
- Currency: USD, EUR, GBP, or INR
๐ก Tip: Test at least 6 months of data for reliable results
Step 4: Configure Execution Settings
- Commission: Fee per trade (0.1% for crypto, 0.01% for stocks)
- Slippage: Price difference between signal and execution (0.05-0.1%)
Typical Fee Settings:
- Crypto (CEX): 0.1% commission, 0.05% slippage
- Stocks: 0.01% commission, 0.02% slippage
- Forex: 0.01% commission, 0.01% slippage
โ ๏ธ Important: Always include realistic fees! A profitable strategy on paper can lose money with fees
Step 5: Run the Backtest
- Review your configuration
- Click "Start Backtest" button
- Watch progress bar (typically 10-60 seconds)
- View results when complete
Status Indicators:
- โช Idle - Ready to start
- ๐ก Initializing - Loading data
- ๐ต Running - In progress
- ๐ข Completed - Finished successfully
- ๐ด Failed - Error occurred
๐ Understanding Results
Results are organized into three sections:
-
Returns & Performance
- Total Return %
- Net Profit $
- Win Rate %
- Profit Factor
-
Risk Metrics
- Max Drawdown %
- Sharpe Ratio
- Sortino Ratio
- Calmar Ratio
-
Trade Statistics
- Total Trades
- Average Win
- Average Loss
- Largest Win/Loss
Color Coding:
- ๐ข Green = Good (win rate > 50%, Sharpe > 1)
- ๐ก Yellow = Caution (drawdown 10-20%)
- ๐ด Red = Bad (losing strategy, high drawdown)
๐ Performance Metrics
Key Metrics Explained:
Returns:
- Total Return - Overall profit/loss percentage (target: > 0%)
- Net Profit - Dollar gain or loss (target: > $0)
- Win Rate - Percentage of profitable trades (target: > 50%)
- Profit Factor - Gross profits รท gross losses (target: > 1.5)
Risk:
- Max Drawdown - Largest peak-to-trough decline (target: < 20%)
- Sharpe Ratio - Risk-adjusted return (target: > 1.0)
- Sortino Ratio - Downside risk-adjusted return (target: > 1.5)
- Calmar Ratio - Return divided by max drawdown (target: > 1.0)
Benchmarks:
| Metric | ๐ด Poor | ๐ก Average | ๐ข Good | โญ Excellent |
|---|---|---|---|---|
| Win Rate | < 40% | 40-50% | 50-60% | > 60% |
| Profit Factor | < 1.0 | 1.0-1.5 | 1.5-2.0 | > 2.0 |
| Sharpe Ratio | < 0 | 0-1.0 | 1.0-2.0 | > 2.0 |
| Max Drawdown | > 30% | 20-30% | 10-20% | < 10% |
๐ Charts & Visualizations
Reading the Equity Curve
The equity curve shows your portfolio value over time. Here's what to look for:
Good Signs:
- ๐ Steady upward trend (profitable strategy)
- ๐ Smooth curve (consistent returns)
- Small dips (controlled drawdowns)
Warning Signs:
- ๐ Sharp drops (large drawdowns)
- ๐ข Choppy, erratic movement (high volatility)
- Flat or declining trend (unprofitable)
Trade List: Below the equity curve, you'll see every trade with:
- Entry/exit timestamps
- Entry/exit prices
- Direction (long/short)
- P&L in $ and %
๐พ Saving & Exporting
Save Results:
- After backtest completes, click "Save"
- Give it a descriptive name
- Access later from your backtest library
Export Data:
- CSV Export - Download trade list for Excel/Google Sheets analysis
- JSON Export - Full results backup with all metrics
CSV includes:
- Trade number, entry/exit times
- Entry/exit prices
- Direction (long/short)
- P&L in dollars and percentage
๐ Templates
Save Time with Templates:
Templates let you save common configurations (market, fees, date ranges) for quick reuse.
How to Use:
- Configure your settings (symbol, timeframe, fees, etc.)
- Click "Save as Template"
- Name it descriptively (e.g., "BTC Daily - Low Fees")
- Load anytime to apply those settings instantly
Template Ideas:
- "BTC 1D Conservative" - BTCUSDT daily with 0.1% fees
- "AAPL Swing" - AAPL 4h with stock fees
- "High Frequency" - 1m timeframe with tight slippage
๐ก Tips & Best Practices
Testing Best Practices:
โ Test sufficient data - Use at least 6 months of history (preferably 12+) โ Include different market conditions - Both bull and bear markets โ Test multiple timeframes - See if strategy works across 1h, 4h, 1d โ Try different symbols - Validate it's not just lucky on one asset โ Use realistic fees - Always include commission and slippage โ Need enough trades - At least 50 trades for statistical significance
Interpreting Results:
- Win rate isn't everything (40% win rate + 2:1 reward/risk = profitable)
- Can you handle the max drawdown psychologically?
- Compare to buy-and-hold - does your strategy beat passive investing?
- Look at consistency - steady growth is better than erratic spikes
Common Mistakes:
โ Testing only bull markets (include bear markets too) โ Ignoring fees (can turn winners into losers) โ Over-optimizing parameters (curve-fitting to past data) โ Too few trades (need 50+ for validity)
โ ๏ธ Common Issues & Solutions
| Problem | Solution |
|---|---|
| "No strategy selected" | Choose a strategy from the dropdown |
| "Invalid date range" | Make sure start date is before end date |
| "Backtest failed" | Check your internet connection, try different dates |
| "0 trades executed" | Your strategy didn't generate signals - review entry/exit conditions |
| Results seem unrealistic | Check your fee settings - too low fees inflate results |
| Takes too long | Reduce date range or use higher timeframe (e.g., 1d instead of 1h) |
โ FAQ
How far back can I test?
- Crypto (Binance): 3+ years
- Stocks/Forex (Yahoo Finance): 10-20+ years
How long does a backtest take?
- 1 month of hourly data: ~10 seconds
- 1 year of hourly data: ~60 seconds
Can I test multiple strategies at once? Not yet - run one at a time for now.
What's a good Sharpe ratio? Sharpe ratio measures risk-adjusted returns. Above 1.0 is good, above 2.0 is excellent.
Why is my high win rate strategy losing money? Check if your average loss is larger than your average win. You might be cutting winners short and letting losers run.
Is slippage applied to both entry and exit? Yes, slippage is applied to every order to simulate realistic execution.
๐ Related Guides
Your Trading Journey:
- Strategy Builder - Create your strategy
- Backtesting Lab - Test with historical data โ You are here
- Trading Simulator - Practice with market replay
- Paper Trader - Test with live data (virtual money)
๐ Need Help?
- In-app help: Press
Ctrl + ? - Email support: support@flytradr.com
- Documentation: docs.flytradr.com
Test your strategies with confidence! ๐งช