Backtester (PAC)
By LuxAlgoNov 21, 2023
The Backtester (PAC) is the strategy-script companion to LuxAlgo's Price Action Concepts™, built to give discretionary price action a data-driven backbone. Concepts that are usually judged by eye — a structure shift, a mitigated order block, a filled imbalance — become strategy conditions that open, manage, and close positions, so a Smart Money-style playbook can be evaluated statistically before it is traded live.
What's Inside the Backtester (PAC)?
- Step & Match algorithm: each condition carries a Step number; conditions sharing a step must all be true together (matching), while different step numbers form an ordered sequence evaluated one stage at a time, opening a market order when the final step completes. The two modes combine, so one stage of a sequence can itself require several matching conditions.
- Market structure conditions: structure events such as CHoCH and BOS act as entries, anchoring strategies to trend change and continuation the way the toolkit labels them.
- Order block conditions: price entering, being within, or mitigating a bullish or bearish order block can trigger entries or exits, reflecting how these zones concentrate liquidity.
- Imbalance conditions: price entering, being within, or mitigating an imbalance — such as a fair value gap — serves as a condition, capturing the tendency of price to rebalance inefficiencies.
- External sources: moving averages, bands, trailing stops, oscillators, or any other indicator output can join the condition set for entries and exits, blending price action with classic technical tools.
- Custom exits and TP/SL: exit conditions built from toolkit features (for example, exiting longs when price mitigates a bearish order block) alongside point-based take-profit and stop-loss distances.
- Session-aware strategies: documented examples restrict entries to a trading session, such as order block mitigations occurring during the New York session.
- Complete alert system: every action the strategy takes sends a notification, and the Alert Messages section lets each action carry a custom message, with defaults used otherwise.
How to Trade with the Backtester (PAC)?
- Write the playbook as steps: a documented example goes long on a bullish CHoCH and price mitigating a bearish FVG — one matching pair — while sequences handle "structure first, zone second" logic through ascending step numbers.
- Let structure open and zones close: using CHoCH entries with order block mitigation exits keeps the whole trade lifecycle inside price action logic, one of the documented configurations.
- Blend in external tools deliberately: a documented example exits positions when an external oscillator reads overbought or oversold, a template for combining structured entry-to-exit logic from two methodologies.
- Read the statistics with discipline: closed-trade counts, equity behavior, and drawdown statistics matter more than a flattering net profit from a handful of trades.
- Calibrate Strategy Properties before judging anything: the published preview uses a 10,000 balance, 10% equity order sizing, commission approximating a realistic spread, and slippage — and the authors strongly recommend matching these to your own account and instrument, since defaults like 1-contract sizing exist only to run on most instruments.
Key Settings & Modes
- Step dropdown on each condition row — the heart of the Step & Match algorithm.
- Entry condition groups for market structures, order blocks, imbalances, and external sources, on both long and short sides.
- Exit conditions from toolkit features or external sources, plus point-based Take Profit and Stop Loss distances.
- Alert Messages: per-action custom message fields, with default messages when left empty.
- Strategy Properties: balance, order size, commission, and slippage — adjust to your account and market before interpreting results.
Frequently Asked Questions
How do I get access to the Backtester (PAC)?
The PAC Backtester is a premium strategy script that comes with a LuxAlgo subscription plan — it is not part of the free library flow and does not load into Quant from this page. Subscribers run it across supported platforms alongside the toolkit it tests.
How does the Step & Match algorithm work?
Every condition has a Step number. Same-number conditions are evaluated together and must all match; different numbers create a sequence where each stage unlocks the next, and the strategy opens a market order when the final step turns true. Because the modes are complementary, a single sequence stage can require multiple simultaneous conditions.
Do I need the Price Action Concepts™ toolkit as well?
They pair naturally: the toolkit visualizes the structures, order blocks, and imbalances on the chart while the backtester quantifies rules built from the same concepts. Developing a rule visually and then encoding it as steps is the intended workflow.
Can price action rules mix with classic indicators?
Yes — external sources plug any indicator output into entries or exits. A documented example exits positions on an overbought or oversold oscillator reading while entries remain pure price action, and bands or trailing stops can serve the same role.
How is it different from the Backtester (S&O)?
Both are strategy scripts with full alerts and configurable properties, but they test different vocabularies: this script builds conditions from structural price action events, while its Signals & Overlays counterpart optimizes and filters signal-based entries from its own toolkit, including sensitivity optimization. Choose by which toolkit's language your strategy speaks.
The Library is free. Quant makes it yours.
Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.
