Paper Trading & Backtesting
Validate your strategies before risking real capital. Paper trading uses live market data with simulated fills, while backtesting runs your flow against historical candle data to evaluate performance.
Paper Trading
Paper trading simulates live trading using real-time market prices from your selected exchange. Orders are filled instantly at the current market price with configurable slippage and fee simulation.
Paper Trading Defaults
How to Start Paper Trading
Follow these steps to begin a paper trading session:
- Create a flow - Open the Flow Builder and design your strategy by connecting trigger, indicator, logic, and execution nodes. See the Flow Builder guide.
- Set mode to Paper - In your Exchange Connect node, set the mode parameter to paper. No API keys are required.
- Configure flow settings - Set the exchange, symbol, and timeframe in the flow settings panel.
- Click Start - Press the Start button in the toolbar. The flow will begin executing and the Execution Panel at the bottom will display real-time updates.
- Monitor in Execution Panel - The panel shows node-by-node logs, simulated fills, open positions, and running PnL. You can expand the panel for more detail.
Click Stop at any time to halt execution. Your paper trading history is preserved and can be reviewed later.
Backtesting
Backtesting replays your flow against historical candle data to evaluate how it would have performed over a specific time period. This is essential for validating strategy logic before paper or live trading.
Backtest Configuration
Click the Backtest button in the toolbar. The engine will iterate through each historical candle, executing your flow at each step. Results are displayed when the backtest completes.
Backtest Metrics
After a backtest completes, the following performance metrics are calculated and displayed:
PnL (Profit & Loss)
Total profit or loss in dollar terms and as a percentage of starting balance.
Win Rate
Percentage of trades that were profitable. Calculated as winning trades / total trades.
Max Drawdown
The largest peak-to-trough decline in equity during the backtest period, shown as a dollar amount and percentage.
Sharpe Ratio
Risk-adjusted return metric. Calculated as the mean return divided by the standard deviation of returns, annualized. A ratio above 1.0 is generally considered acceptable.
Profit Factor
Ratio of gross profits to gross losses. A value above 1.0 means the strategy is profitable overall.
Equity Curve
A line chart showing the account equity over time throughout the backtest. Displays the growth or decline of your balance across all trades.
Tips for Strategy Development
- Start simple - Begin with a basic strategy (e.g., single indicator + threshold) and add complexity incrementally. This makes it easier to identify what works.
- Use multiple timeframes - Backtest your strategy across different timeframes (15m, 1h, 4h) to understand how it behaves in different market conditions.
- Include risk management - Always include Stop Loss, Position Size, and ideally a Kill Switch node in your flows. Never trade without defined risk.
- Beware of overfitting - If your strategy performs perfectly on historical data but uses many tightly tuned parameters, it may not generalize to live markets. Keep parameters reasonable.
- Paper trade before going live - Even after a successful backtest, run your strategy in paper trading for at least a few days to validate it with real-time data and live market conditions.
- Monitor drawdown - Pay close attention to max drawdown. A strategy with high returns but 50%+ drawdown may be too risky for your capital.
- Log everything - Add Logger nodes at key points in your flow to understand exactly why decisions are being made. This helps with debugging and optimization.
Next Steps
- Exchange Setup - Connect a live exchange when you are ready
- Node Reference - Explore all available nodes for your strategy
- API Reference - Programmatic access to the execution engine