How to Backtest a Trading Strategy from a PDF with AI

9 min read
BacktestingNo-codeAi-tradingPdf-tradingBacktest-ai

A backtest validates the assumptions of a trading strategy at scale. Uploading a strategy PDF to an AI backtesting tool takes minutes to test what a trader would spend weeks verifying manually. Most trading courses and educational PDFs describe strategies without providing verifiable backtests on long-term historical data. With Backtrex, you upload your document and the AI transforms its rules into custom condition blocks, ready to be tested against 10 years of market history.

Strategies in PDFs: a validation problem

Why trading course strategies stay untested

Thousands of trading courses circulate as PDFs: SMC methods, ICT strategies, price action systems, scalping and swing setups. These documents describe entry and exit rules, filtering conditions, and sometimes tables of cherry-picked results. The core problem is that most of these PDFs present selective examples of winning trades without providing a rigorous backtest over multiple years and hundreds of trades.

According to data published by the European Securities and Markets Authority (ESMA), between 74% and 89% of retail CFD accounts lose money. One frequently identified contributor is the absence of statistical validation of the strategies used before trading with real capital.

Selective examples are not backtests

A trading PDF can present a handful of winning trades without ever showing the full statistical picture across different market conditions. Only a backtest across multiple years and hundreds of trades gives a statistically reliable picture of a real edge.

The limits of manual backtesting from a PDF

Manually converting PDF trading rules into a testable strategy is time-consuming and requires technical skills. You first need to read and interpret the rules (often written in natural language or with ambiguities), then code them in Pine Script for TradingView or in MQL5 for MetaTrader 5, then run the backtest and interpret the results. This process takes days to weeks depending on the complexity of the method.

The UK Financial Conduct Authority (FCA) has documented that the majority of retail clients who lose money on derivatives had not subjected their approach to rigorous historical testing before committing real capital. Backtesting over long historical data significantly reduces the probability of trading an unviable strategy.

How Backtrex reads a strategy PDF

Upload the PDF, image, or document

With a Backtrex Pro or Max subscription, you upload your document directly in the interface: a strategy PDF, an annotated chart screenshot, a Word file, or an Excel spreadsheet describing your rules. The AI reads the content and extracts the trading conditions.

The first test using a text description (plain text, Pine Script, or MQL5) is available without a subscription and without a credit card. Uploading a file (PDF, image, video, Word, or Excel) requires a Pro or Max subscription.

The AI extracts the trading rules

Once the document is uploaded, the AI identifies the core elements of your trading strategy:

  • Entry conditions (indicators, levels, price patterns, session filters)
  • Exit rules (take profit, stop loss, trailing stop)
  • Asset or session filters
  • Risk management rules (position sizing, risk/reward ratio)

Ambiguous or incomplete elements are flagged as variants to validate. You choose the interpretation that matches your reading of the document before launching the backtest.

Anti-repainting by default

Backtrex AI automatically refuses any condition that reads the current bar (close[0]). All conditions use the previous closed candle (close[1]), which guarantees realistic results with no repainting.

Custom condition blocks generated for your strategy

The output of the AI reading is a set of condition blocks 100% tailored to your specific strategy. These blocks do not come from a predefined indicator catalog: they are generated from the rules described in your document. You can adjust numeric parameters directly on each block and rerun the backtest without going through the AI again.

To understand how the AI works with a natural language description, see our guide on AI-powered backtesting from natural language.

Examples of supported document types

Strategy PDFs (SMC, ICT, price action)

Methods based on Smart Money Concepts (SMC), the ICT methodology, or price action are often distributed as PDFs. These documents describe setups such as order blocks, fair value gaps (FVG), liquidity sweeps, and killzone timing. Backtrex AI reads these descriptions and generates the corresponding blocks with trader-configurable thresholds.

Annotated chart screenshots

An annotated image (a chart screenshot with marked zones, entry and exit arrows, stop and target levels) is also readable by the AI. It extracts the implicit rules from the image: key levels, timeframe, and triggering signal.

Word or Excel rule documents

Some traders formalize their rules in Excel spreadsheets or Word documents. These formats are supported with a Pro or Max subscription. The AI reads structured or unstructured content and generates the corresponding condition blocks.

From PDF to backtest: step by step

1

Upload the document

Log in to your Backtrex account (Pro or Max), create a new backtest, and upload your PDF, image, Word, or Excel file in the dedicated field. You can also paste the text directly if you prefer to describe the strategy in plain text or code.
2

Validate the AI blocks

The AI generates condition blocks matching your rules. Review each block, adjust numeric parameters as needed, and validate the variants proposed for any ambiguous points in your method.
3

Run the backtest over 10 years and 17 assets

Choose your asset (forex, indices, metals, or crypto from the 17 available), set the period up to 10 years, and launch the backtest. Results appear in minutes: trades on the chart, full metrics, and your Backtrex score.

The metrics displayed after the backtest include profit factor, win rate, maximum drawdown, and expectancy. The prop firm challenge verdict feature (available depending on your subscription) replays your trades against the rules of a standard challenge (FTMO 2-step by default) to estimate how many challenges the strategy would have passed over the tested period.

For more on validating your strategy against prop firm rules, see our guide on backtesting for prop firm evaluation.

Export and reuse

After the backtest, you can export your strategy in Pine Script (TradingView), MQL5 (MetaTrader 5), or Python. The MQL5 export is verified trade by trade against the internal backtest. See features for details on available exports.

Testing your PDF strategy with Backtrex

Whether you purchased an SMC method PDF, completed an ICT course, or written your own rules in a Word document, Backtrex turns that document into a backtest in minutes:

  1. The AI reads the strategy described in the document (entry, exit, risk management).
  2. It generates custom condition blocks, with no predefined catalog.
  3. It flags ambiguities as variants to validate or non-testable blocks to clarify.
  4. The 10-year backtest across 17 assets produces full metrics: profit factor, win rate, maximum drawdown, Backtrex score.

You get a statistical answer in minutes to the question every trading PDF raises: does this method have a real edge over 10 years of market data?

Your first test is free, no card required, using a text description. To upload a PDF, image, or file, choose a Pro or Max subscription. See pricing.

Want to backtest a strategy from a YouTube video instead? Read our guide on backtesting a trading strategy from a YouTube video with AI.

Important Risk Warning

Trading financial instruments involves significant risk of capital loss. Past performance does not guarantee future results. Backtest results presented on this platform are based on historical data and do not constitute investment advice. You should not invest money you cannot afford to lose. Always consult a qualified financial advisor before making any investment decisions.

Conclusion

Backtesting from a PDF is a concrete approach to validating a trading strategy before committing real capital. Backtrex AI reads your document, extracts the trading rules, and generates a 10-year backtest without any coding required. The result: objective metrics on the edge of your method, available in minutes.

With a Pro or Max subscription, you can upload a PDF, image, Word file, or Excel spreadsheet. The AI extracts entry, exit, and risk management rules defined in the document. Ambiguous points are presented as variants to validate before launching the backtest.

Backtrex presents ambiguous points as variants to select or non-testable blocks to clarify. You retain full control over the hypotheses: the AI submits its interpretations and you choose the correct option before running the backtest.

The first test using a text description (plain text, Pine Script, or MQL5) is free, no credit card required. Uploading a PDF, image, video, or any other file requires a Pro or Max subscription. See pricing.

A few minutes: the time for the AI to read the document and generate the blocks, for you to validate them, then for the backtest to run against historical data. This is far less than the days or weeks required to code the strategy manually.

Yes. After the backtest, you can export the strategy to Pine Script for TradingView, to MQL5 for MetaTrader 5, or to Python. The MQL5 export is verified trade by trade against the internal backtest.

Yes. An annotated image (PNG or JPG) with trading zones, entry arrows, or price levels is readable by the AI with a subscription. It extracts the implicit rules visible in the image and generates the corresponding condition blocks.

Suggested Reads

Ready to backtest your strategies?

Import your strategy as text, Pine Script or MQL5 and run your first test for free, no credit card. From import to a 10-year result, count about 2 minutes.

Create your account in 30 seconds and run your first backtest. No credit card.