Test before you trade.
History doesn't lie.
Run any signal configuration against historical PSX data and see exactly how it would have performed — win rates, average returns, max drawdown — before putting real money on the line.
What the backtest tells you
Six performance metrics — not just a headline win rate.
Win Rate
By 1-day / 3-day / 7-day hold
What % of signals were profitable at each holding period.
Average Return
Per signal, per holding period
Mean return across all signals — not just winners.
Max Drawdown
Worst peak-to-trough loss
The largest loss you'd have experienced during the tested period.
Confidence Tier
60–69% / 70–79% / 80%+
Win rate broken down by the signal's confidence score range.
Signal Type
Per type breakdown
Which of the 8 signal types performed best over the tested period.
Direction Accuracy
% correct UP / DOWN calls
How often the signal's direction (BUY/SELL) matched the actual price move.
Configurable parameters
Don't just test the defaults — adjust every signal parameter to match your strategy.
Date range
e.g. Jan 2024 – Dec 2024
Symbols
e.g. OGDC, PPL, HBL, or all watchlist stocks
RSI thresholds
e.g. Oversold < 25 instead of < 30
Volume spike level
e.g. 2× average instead of 1.5×
Min confidence
e.g. Only test signals with confidence ≥ 75%
Signal types
e.g. BREAKOUT only, or all 8 types
Example backtest results — BREAKOUT signals, 2024
| Metric | 1-Day Hold | 3-Day Hold | 7-Day Hold |
|---|---|---|---|
| Win Rate | 61% | 68% | 72% |
| Avg Return | +1.2% | +2.8% | +4.4% |
| Max Drawdown | -3.1% | -5.2% | -7.8% |
| Signals Tested | 47 | 47 | 47 |
Example only — not real data. Actual results depend on market conditions and configuration.
How backtesting works
The same signal engine — replayed on historical data with no look-ahead bias.
Set your parameters
Choose the date range, stocks, signal types to test, and any parameter overrides (RSI levels, volume thresholds, confidence filters).
Historical data loaded
OHLCV data for the selected period and symbols is fetched from the database.
Signal engine replayed
The opportunity detection engine runs on historical data, generating the same signals it would have in real time — without look-ahead bias.
Outcomes calculated
For each signal, the 1-day, 3-day, and 7-day price movements after the signal are checked against target and stop-loss levels.
Results returned
Win rate, average return, max drawdown, and breakdowns by signal type, confidence tier, and time horizon are displayed.
Why backtesting matters
Forward-testing every strategy idea with real money is expensive and slow. Backtesting lets you validate signal parameters against years of historical PSX data in seconds — so you can discard underperforming configurations before they cost you anything.
Related features
Validate your strategy. Then trade it.
Start free and upgrade to Premium to unlock the Backtesting Engine — the only PSX backtester built on real AI signal history.