+ Test your trading strategies against historical data to evaluate performance and risk. +
++ Set up your strategy parameters and click "Configure Backtest" to begin. +
++ Click the "Start" button to begin backtesting your strategy. +
++ Processing historical data and executing trades. +
++ Results will appear here once the backtest is complete. +
++ Performance chart will be displayed here (requires recharts) +
++ {value} +
+ {trend && ( + + {trend === 'up' ? +{subtitle}
+ )} +| Symbol | +Quantity | +Avg Price | +Current | +P&L | +Unrealized | +
|---|---|---|---|---|---|
| {position.symbol} | ++ {position.quantity.toLocaleString()} + | ++ {formatCurrency(position.averagePrice)} + | ++ {formatCurrency(position.currentPrice)} + | += 0 ? 'text-success' : 'text-error' + }`}> + {formatPnl(totalPnl)} + | += 0 ? 'text-success' : 'text-error' + }`}> + {formatPnl(position.unrealizedPnl)} + | +
| Time | +Symbol | +Side | +Quantity | +Price | +Value | +Comm. | + {trades.some(t => t.pnl !== undefined) && ( +P&L | + )} +
|---|---|---|---|---|---|---|---|
| + {formatTime(trade.timestamp)} + | +{trade.symbol} | ++ + {trade.side.toUpperCase()} + + | ++ {trade.quantity.toLocaleString()} + | ++ {formatCurrency(trade.price)} + | ++ {formatCurrency(tradeValue)} + | ++ {formatCurrency(trade.commission)} + | + {trade.pnl !== undefined && ( += 0 ? 'text-success' : 'text-error' + }`}> + {trade.pnl >= 0 ? '+' : ''}{formatCurrency(trade.pnl)} + | + )} +
+ Real-time market data and advanced charting powered by TradingView. +
+Loading chart data...
++ {this.state.error?.message || 'Unable to load the chart'} +
+ +${data.open.toFixed(2)}
+${data.high.toFixed(2)}
+${data.low.toFixed(2)}
+${data.previousClose.toFixed(2)}
++ {(data.volume / 1000000).toFixed(2)}M +
++ {new Date(data.timestamp).toLocaleTimeString()} +
+