Portfolio Analyst Pro Documentation

    A step-by-step guide to Portfolio Analyst Pro: get your trades in, build a portfolio, size it, stress-test it and read the report.

    Get Portfolio Analyst Pro

    Download the latest build from Trademaid's PA Pro page; it runs as a free 14-day trial. Licences are bought on Trademaid.

    Introduction

    What is Portfolio Analyst Pro?

    Portfolio Analyst Pro (PA Pro) combines the trade lists of several trading systems from TradeStation or MultiCharts and works out the combination that gives the best net profit to drawdown ratio. It works with GSB systems or any other strategies you run.

    Separate Optional Product

    Portfolio Analyst Pro is a separate, optional Trademaid product to GSB. GSB builds individual trading systems; PA Pro combines several systems' trades into a portfolio.

    Key Capabilities

    • Auto Portfolio – searches for the combination of systems and weights that best meets the goal you choose (by default, net profit / max drawdown)
    • Limits – system, symbol, multiple-systems and criteria limits, so the portfolio doesn't lean too heavily on one system or market
    • Money Management and Monte Carlo – for the whole portfolio or each instrument
    • Correlation – correlation, negative and positive correlation of returns, and the DD Matrix of drawdown correlation
    • Out-of-sample, news-event and command-line tools – covered under Reports and Advanced Features

    Quick start: your first portfolio

    Follow these steps in order. Each links to the section with the detail. Keep everything else on its default the first time.

    1. In TradeStation, put the PortfolioAnalyst strategy on each system's chart so it writes the system's trades (Data Flow & Setup).
    2. In PA Pro, click Add File or Add Folder and load those files (Working with Files).
    3. Double-click each file and check its weight, commission and slippage (Working with Files).
    4. Set Initial Capital to Auto and choose a Custom date range that starts every system on the same date (Data Flow & Setup).
    5. Click Generate Report, then check Market Performance first (Reports & Navigation).
    6. Click Portfolio Selection, leave the mode on its default and click Auto Portfolio, then add a System Limit (Portfolio Construction).
    7. Check the result with Money Management and Monte Carlo, then save or export the report.

    The core of PA Pro is taught in GSB Module 4: lesson 4.1 (building a portfolio), 4.2 (capital, position sizing, Money Management and Monte Carlo), 4.3 (correlation) and 4.4 (the report), with a workflow overview in lesson 5.3. The optional six-lesson PA Pro course in the Training Hub covers the rest.

    Portfolio Analyst Pro Main Interface

    The PA Pro settings page: file list in the middle, Initial Capital and Data Range on the left, file buttons on the right

    Data Flow & Setup

    Watch the lesson: PA Pro Lesson 1Getting Your Trades In, and Keeping Them Current · in the Training Hub (free GSB Pro account)

    Initial capital and margin are explained in lesson 4.2 in the Training Hub.

    Getting your trades out of TradeStation

    PA Pro reads PA format files (.pa), written by the PortfolioAnalyst strategy on your chart, or TradeStation and MultiCharts XML files. Trademaid's help says the strategy is faster if you update your results regularly, and the out-of-sample and real-time features need it, so start with Method 1.

    Method 1: the PortfolioAnalyst strategy (recommended)

    1. In TradeStation, open the chart that runs your system.
    2. Insert the PortfolioAnalyst strategy on that chart. Insert it as a strategy, not an indicator, so it sits alongside your system. Trademaid's help lists the current file as PortfolioAnalyst1.61_RealTime.eld in C:\papro\TradestationCode\. If it isn't there, check Trademaid's current help or ask Trademaid.
    3. Open the strategy's inputs.
    4. Sysname: type the name you want PA Pro to show, for example GSBsys1. From version 1.61 you can leave it blank ("") and the ELD's own name is used instead.
    5. Filename: leave it as it is. It is actually the folder the .pa file is written to (C:\papro\data).
    6. VerbosePrintLog: leave it as it is.
    7. OutOfSampleDate: leave it for now. It is used for out-of-sample reports (see Reports & Navigation).
    8. StartupMode: Trademaid's help gives this routine: set it to 0, close the inputs and let the chart produce its data, then change it to 1 so real-time trades are appended to the historical ones.
    9. Repeat on every system's chart. Each time the chart opens, the trade list is written again.
    We've asked Trademaid to confirm the StartupMode routine and where the 1.61 RealTime ELD is installed in the current build. Until then, check Trademaid's Real-time update page for your version.

    If no file is written (or TradeStation shows FileAppend function failed): Trademaid's help notes that TradeStation 10 doesn't run as Windows administrator by default, so older versions of the strategy may not be allowed to write into C:\Program Files. Either run TradeStation as administrator, or edit the file path in the strategy (about line 7 of the ELD) to a folder that exists, such as C:\papro\data. Check the path matches where PA Pro is actually installed: older copies of the strategy point at a Portfolio Analyst folder under C:\Program Files (x86), which PA Pro may not use.

    • Newer version: version 1.62 of the strategy (August 2026) records open-trade equity better and writes .pa files about a tenth of the size.
    • Pyramiding systems: the strategy doesn't support pyramiding, because it writes trades in time order rather than as matched entries and exits. Use the XML export (Method 2) for any system that adds to a position.
    Getting Data from TradeStation

    Getting trades from TradeStation into PA Pro

    Method 2: export an XML file

    1. In TradeStation, open the system's strategy performance report.
    2. Click Save and choose XML RINA file as the file type.
    3. Save it into PA Pro's data folder.
    4. Repeat for each system.

    TradeStation 10 removed the XML (RINA) export around September 2022, then restored it in build 69 (July 2023). The HTML export wasn't restored. If you don't see the XML option, update TradeStation or use Method 1.

    Many systems? Trademaid also sells a separate TS Batch Processor (June 2024). It processes every TradeStation strategy performance report in one click, without opening each chart. From 2026 it reads .tsw workspaces directly and sends the results straight to PA Pro.

    Choosing how systems are named

    1. In PA Pro, find the PA system name box at the top right of the main window.
    2. Leave it on File name only to start. This shows the Sysname you typed, for example GSBSYS1.
    3. Optionally choose Filename + ELD (GSBSYS1+GSBSys1_RAW_v1.01_NQ) or ELD name only (GSBSys1_RAW_v1.01_NQ), then click Generate Report again. You can change this at any time.

    In Trademaid's screenshots the last two options are greyed out. If you can't select them, check Trademaid's current PA system name page.

    Initial capital: the basic setting

    The Initial Capital panel is on the left of the settings page.

    1. Choose Auto. PA Pro then sets the capital from each system's drawdown.
    2. Leave the drawdown setting on its default, Closed Max DD × 4. Four times each system's maximum drawdown, added together, is Trademaid's rule of thumb for equity allocation.
    3. If your systems hold trades overnight, change it to open-trade drawdown, as Trademaid recommends.
    4. If you would rather enter your own account size, choose Fixed instead and type the amount.

    AdvancedMargin options

    • Tick Max DD × n, Margin × m so the capital never falls below the margin the portfolio needs. You can't trade more than your broker's margin allows.
    • Static margin assumes every system could be in a trade at the same time. Dynamic margin uses the most margin actually used in the past, so it needs less capital. Trademaid warns that big moves tend to trigger many systems at once, so trading above margin can mean missing the big winning days.
    • You can also base the drawdown on the average of closed and open-trade drawdown.

    Date range: start every system on the same date

    1. Under Data Range, choose Custom date range.
    2. Set the start date to the earliest date all your systems can trade from. Trademaid's first real-world example used 1 January 2007.
    3. Set the end date to the end of your data, or leave All dates selected if every system already starts on the same date.

    If one system has ten years less history, PA Pro will tend to favour the others just because they made more money over a longer period. Too short a period, though, hides how the systems' drawdowns line up.

    Peter Zwag (GSB's developer) starts his portfolios on 20070101. When you then check correlation:

    • PA Pro's correlation uses Excel's standard correlation formula.
    • Correlation on losing days matters most. Winning days tend to trigger many systems at once, so positive correlation there is expected.
    • Compare new systems with ones you built earlier, not just with each other.
    • In Peter's experience, systems built with different secondary filters or sessions have much lower losing-day correlation.

    AdvancedScaling a contract (for example full DAX to mini DAX)

    In Trademaid's example the account was too small for the full DAX (25 euro per point) and the mini DAX (5 euro per point) had too little history. Two ways to scale it:

    1. Option 1 (the one Trademaid's example used): give that system a weight of 0.2 (see Working with Files).
    2. Option 2: open the .pa file in Notepad, change BigPointValue on the first line from 25 to 5, and save. If you do this, Trademaid advises setting commission and slippage to zero in TradeStation's Strategy Properties for that chart, then adding the costs in PA Pro.

    AdvancedContract not listed? The Futures Dictionary

    1. Open Settings, then Future Dictionary.
    2. Click Add Symbol to add a contract, or select one and click Edit to change its margin, commission or slippage.
    3. Click Close.

    AdvancedUsing MultiCharts?

    Trademaid's help says PA Pro supports MultiCharts, with a MultiCharts signal (.pla) and a MultiCharts .NET file (.pln) in the TradestationCode folder, and accepts MSA files as long as the file name ends in .msa. Trademaid says MultiCharts users should use the .pla file that's installed with PA Pro. This guide follows TradeStation; for the rest of the MultiCharts steps, check Trademaid's current PA Pro help.

    Problems with your data

    • PA Pro keeps opening the old version after an update: run it as administrator. Old installs in C:\Program Files (x86)\Portfolio Analyst Pro keep looping until you do; new installs go to C:\papro.
    • Drawdown or returns look wrong: suspect a file from a pyramiding system. Run half your systems, then keep halving the set until you find the bad file.
    • Zipped files: PA Pro reads .zip and .7z files directly, so you don't need to unpack them.
    • MultiCharts custom contracts: build the symbol in the WritePA header from SymbolRoot(), so PA Pro recognises the contract.

    Working with Files

    Watch lesson 5.3 (workflow) and lesson 4.2 (weights and costs) in the Training Hub for the video version of this section.

    Add your files

    1. Open PA Pro. The file buttons are on the right of the settings page.
    2. Click Add File to add one or more files, or Add Folder to add every file in a folder (for example the folder your .pa files are written to).
    3. Each file appears as a row in the middle. Make sure the box by the Symbol is ticked for every system you want to include.
    4. Leave Force in Portfolio unticked to start. Tick it only to make PA Pro keep a system in the portfolio.
    5. Leave Weight at 1 to start. The weight multiplies the system's own position size: 2 doubles it, 0.5 halves it.

    The other buttons: Remove removes the selected files; Select All, Select None and Toggle change which files are selected; Reset Weight resets the weights; Move Up and Move Down reorder the list.

    Check each file's weight and costs

    1. Double-click a file. File Details opens, showing the strategy, symbol, margin and date range.
    2. Check the Weight.
    3. Enter the Commission and Slippage if the file was exported without them. Trademaid's help describes these as per side. Its second worked example used US$20 commission per round turn and one tick of slippage each side.
    4. Close File Details and repeat for each file.

    You can also right-click a file for File Details, Edit Weight, Edit Portfolio Criteria, Check All, Check None and Remove this file. At the bottom of File Details, File Name shows which .pa file the system came from, and Copy puts that name on the Windows clipboard.

    File Input Details

    File Details: weight, commission and slippage

    AdvancedMax Weight

    To stop any one system getting too big, type a Max Weight in its row, for example 2: that system will never have more than two contracts. Trademaid's help says Max Weight on this page takes priority over the System Limits setting on the Portfolio Selection page. It also reduces the number of combinations Auto Portfolio has to try.

    Reports & Navigation

    Watch the lesson: PA Pro Lesson 2Reviewing Out-of-Sample and Recent Results · in the Training Hub (free GSB Pro account)

    The report is taught in lesson 4.4 in the Training Hub, and the correlation reports in lesson 4.3.

    Generate the report and read it in this order

    1. On the settings page, click Generate Report. The report opens on the Performance Summary.
    2. Open the drop-down at the bottom right and choose Market Performance. Check every system's net profit, drawdown and number of trades look right. If one looks far too low (for example only one year of its data was loaded), fix it before reading anything else.
    3. Choose Performance Summary. Start with the risk numbers on the right: maximum drawdown, its share of initial equity, and the longest drawdown. Then look at net profit, profit factor and win rate.
    4. Choose Periodical Returns. It shows annual results by default; leave it there and look for consistency from year to year.
    5. Choose Drawdown Graphs to see how deep and long the drawdowns were, and which systems contributed most to the worst ones.
    6. Choose Equity Graphs and check the margin charts, to see whether your account could have carried the positions.
    7. Choose Correlation, Negative Correlation and DD Matrix to check the systems aren't all losing together (lower DD Matrix numbers are better).
    8. Use the save and export buttons to save the report as it is, or export it as CSV, PDF or ZIP.

    After any settings change, click Settings, make the change, and click Generate Report again, or the change won't take effect. Back to Report returns to the report without regenerating it.

    Results shown are hypothetical, back-tested results. They have been prepared with the benefit of hindsight and past performance is not indicative of future results.

    The report screen controls

    • Settings – back to the settings page
    • Save / Export – save the report as it is, or export it as CSV, PDF or ZIP
    • Report drop-down – choose which part of the report you see
    • All / Long / Short filter – see each side separately
    • Money Management, Monte Carlo and Portfolio Selection – open those screens
    Report Navigation

    The report drop-down listing the report sections

    What each report page shows

    • Performance Summary – a quick overview of the portfolio's performance
    • Equity Graphs – daily, closed trade and open trade equity; net profit by month, week and day of week; monthly distribution; daily margin and margin ratios. Since the March 2024 build, also the number of contracts and systems traded over time
    • Periodical Returns – annual by default; change to monthly, weekly or daily
    • Drawdown Graphs – daily, closed trade and intraday drawdown, depth and length distributions, each system's drawdown, and each system's contribution to the max and average 5 worst drawdowns
    • Market Performance – each system on its own; click a system to see its own performance report
    • Correlation, Negative Correlation, Positive Correlation – correlation of returns between strategies (daily, weekly and monthly), colour-coded by range
    • DD Matrix – how correlated each system's drawdown is with the others and with the portfolio's drawdown (lower is better)
    • Trades – every trade from every system, exportable
    • Portfolio Setting – a record of how the report was made: capital, date range, costs and files. Keep it with any report you share

    Review out-of-sample results

    Trademaid's help says systems have a higher probability of failure out of sample than in sample, so it's wise to focus on out-of-sample results. This needs files written by PortfolioAnalyst1.61_RealTime or later.

    1. In TradeStation, open the PortfolioAnalyst strategy's inputs on a system's chart.
    2. In OutOfSampleDate, enter the date the system's out-of-sample period starts, as year, month, day: for example 20250101 for 1 January 2025. Trademaid says systems sold on its website have this date at the top of the ELD.
    3. Repeat on each system's chart.
    4. In PA Pro, under Data Range, tick Use out of sample data.
    5. Click Generate Report.

    If some systems have been out of sample since 2015 and others only since 2024, comparing them isn't very useful. The help suggests also setting a custom start date equal to the newest out-of-sample date. According to the help, systems with no out-of-sample date won't be shown.

    We've asked Trademaid to confirm exactly how the custom start date and the out-of-sample tick work together. Check Trademaid's Date range page for your build.

    Review recent results only

    1. Under Data Range, choose Custom date range.
    2. Set a recent start and end date (the help's example: 1 January 2023 to 7 February 2024).
    3. Click Generate Report and choose Market Performance.

    AdvancedSpotting struggling systems in Market Performance

    Newer builds show, next to each system's usual figures, its current drawdown, previous maximum drawdown and the ratio between them; net profit to drawdown and net profit for the last 3, 6 and 12 months; and small equity charts for the last 3, 6 and 12 months and all data. A system whose recent figures fall well below its long-term figure deserves a closer look.

    At the bottom are buttons to deselect struggling systems automatically, for example by negative net profit over the last 12 months, or by current drawdown compared with the previous maximum. The drawdown multiple on the button differs from Trademaid's notes, so check the label and the Options button on your build, then click Generate Report.

    Don't overreact to one recent drawdown: a short window is a small sample. A long, good out-of-sample record counts for more than a short one. And watch for survival bias: it's easy to keep only the systems that are going well.

    Market Performance Results

    Market Performance, showing each system's results within the portfolio (hypothetical results)

    Money Management

    Watch lesson 4.2 in the Training Hub for the video version of this section.

    Open the Money Management screen

    1. Generate the report (see Reports & Navigation).
    2. On the report screen, click Money Management.
    3. Leave the drop-down on the whole portfolio first. The screen compares the money management figures with your current portfolio, side by side: net profit, trades, average win and loss, profit factor, maximum drawdown and net profit to drawdown. The chart shows the equity curves.
    4. To see one instrument, choose it from the drop-down and click Recalculate.
    5. Click Back to return to the report.

    Trademaid's help doesn't document specific position-sizing methods on this screen, so this guide doesn't describe any.

    Money Management Settings

    The Money Management screen (hypothetical results)

    What sets the contracts each system trades

    • Its Weight, a multiplier of the system's own lot size (set on the settings page or in File Details)
    • Auto Portfolio on the Portfolio Selection page, which changes the weights
    • Max Weight and the system, symbol and multiple-systems limits, which cap them
    Individual Instrument Money Management

    Money Management for one instrument, chosen from the drop-down, after clicking Recalculate

    Sizing checklist

    • Start with capital of about four times each system's maximum drawdown (open-trade drawdown for overnight systems).
    • Never trade beyond your broker's margin.
    • Cap contracts per system with Max Weight or System Limits, and per market with Symbol Limits.
    • Check how deep the Monte Carlo drawdowns get before trading live. If that number would scare you, trade smaller.

    How Peter Zwag (GSB's developer) applies this himself:

    • His four times maximum drawdown is per system, not for the portfolio as a whole.
    • He grows by adding systems and markets rather than contracts, on the view that drawdowns are a certainty.
    • He forces 1 contract per strategy, and only rebalances when he adds or retires a system.
    • To model a micro contract from the full-size contract's file, set its weight to 0.1.

    Monte Carlo Analysis

    Watch lesson 4.2 in the Training Hub for the video version of this section.

    Your backtest is just one order of trades. The Monte Carlo screen shows a range of other possible outcomes, so you can size for the worse drawdowns, not the typical one.

    Run Monte Carlo

    1. Generate the report.
    2. On the report screen, click Monte Carlo.
    3. Leave the drop-down on the whole portfolio first. The black line is the actual equity; the coloured lines are the 5%, 50% and 95% confidence results from the simulation, plotted by trade number.
    4. Read the results table. Look at the maximum drawdown column at the higher confidence levels, not just at 50%.
    5. To see one instrument, choose it from the drop-down and click Recalculate.
    6. Click Back to return to the report.

    Trademaid's example report uses 500 samples. The help doesn't say how to change the number of samples or the confidence levels, so check Trademaid's current help if you need to.

    Monte Carlo Analysis

    The Monte Carlo screen (hypothetical results)

    Monte Carlo Results

    Monte Carlo results at each confidence level (hypothetical results)

    In Trademaid's example, the maximum drawdown was about $7,000 at 50% confidence, over $10,000 at 95%, and the worst run nearly $16,000. These are simulations of past trades, not a promise of future results.

    Results shown are hypothetical, back-tested results. They have been prepared with the benefit of hindsight and past performance is not indicative of future results.

    AdvancedMonte Carlo in Portfolio Selection

    On the Portfolio Selection page, the Net profit / Max draw down Monte Carlo mode builds the portfolio using a simulated drawdown. If you choose it, you also select the Monte Carlo Simulation and Confidence Level.

    Portfolio Construction

    Watch the lesson: PA Pro Lesson 5Large Portfolio Searches: Speed, Methods and How Many Systems · in the Training Hub (free GSB Pro account)

    Building a portfolio, Auto Portfolio and limits are taught in lesson 4.1 in the Training Hub.

    Build your first portfolio

    1. Generate the report, then click Portfolio Selection. The table lists every system with its net profit, closed and open maximum drawdown, net profit to drawdown ratio, margin and weight. The Original row shows them all combined at one contract each.
    2. Check the capital box at the top. With Auto capital it is four times each system's maximum drawdown, added together. Leave it, or type your own account size.
    3. Leave Mode on its default, Net profit / Max draw down.
    4. Click Auto Portfolio. PA Pro tries combinations of systems and weights. You'll see its progress and an estimate of the time remaining.
    5. Compare the Current row with the Original row.
    6. Look for systems that now carry several contracts. PA Pro only sees past results and doesn't know a system can fail on future data, so rein it in with a System Limit (next).

    Reset puts every system back to 1 contract. A system shown in red has not made money in the last 12 months.

    Portfolio Selection

    The Portfolio Selection page (hypothetical results)

    Cap contracts per system: System Limits

    1. On the Portfolio Selection page, open the System Limits tab.
    2. Tick Enabled.
    3. Choose ALL.
    4. Set the maximum, for example 2, and click Add Update.
    5. Click Auto Portfolio again. Now no system can have more than two contracts.

    In Trademaid's example the net profit to drawdown ratio went from about 45 (original) to about 67 with Auto Portfolio alone, and about 54 with a System Limit of 2: still better than the original, but no single system dominates.

    Results shown are hypothetical, back-tested results. They have been prepared with the benefit of hindsight and past performance is not indicative of future results.

    Cap contracts per market: Symbol Limits

    1. Open the Symbol Limits tab.
    2. Choose All for a global maximum, or a single symbol (for example ES set to 3 means never more than 3 ES contracts).
    3. For one contract per market, set All to 1, as in Trademaid's $100,000 example.
    4. Click Auto Portfolio again and check the Market column: each symbol now appears only once.
    Symbol Limits

    A portfolio with Symbol Limits All set to 1: no more than one contract per market

    AdvancedMultiple Systems: how many systems to trade

    • Max systems – the most systems in the portfolio
    • Max contracts – the most contracts per system
    • Force Min systems – when ticked, the portfolio has at least that many systems, rather than many contracts on a few
    System Limits

    System Limits, Symbol Limits and Multiple Systems tabs

    AdvancedCriteria Limits: cap by group

    Tick Criteria Limits on the Portfolio Selection page to cap groups of systems, for example no more than 2 energy systems, 3 stock systems, 1 trend following, 2 counter-trend and 1 mean reversion system.

    Criteria Limits

    The Criteria Limits dialog

    AdvancedOther modes

    • Net profit / Max draw down^(1/W) – a higher W gives more net profit at the expense of drawdown. Trademaid suggests 2 as a good value
    • Net profit / Max draw down Monte Carlo – needs a Monte Carlo Simulation and Confidence Level
    • Net profit – puts everything in the most profitable system unless you use Symbol Limits or Max Weight. No diversification, so high risk
    • Sortino ratio – experimental

    AdvancedThe sizing columns

    The margin static × weight column is each system's margin multiplied by its weight (US$6,000 margin at weight 2 counts as $12,000). Next is the dynamic margin. The last column is drawdown × n × weight; its total becomes the portfolio's initial capital, so changing a weight changes the capital needed.

    Portfolio Generation

    Portfolio generation with a $100,000 account size

    AdvancedLarge searches: keeping them fast

    Over-simplified, the time Auto Portfolio takes grows as 2 to the power of the number of systems: 10 systems is about a thousand combinations, 24 is about 16 million, and weights add more. Memory can run out as well as time. To keep a big search manageable:

    1. Give PA Pro fewer combinations: set Max Weight on the settings page, and use System, Symbol and Multiple Systems limits.
    2. Try your settings on a shorter range first: under Data Range choose Custom date range with a later start date, then run the full range once you're happy.
    3. While it runs, click Stop if it's taking too long. PA Pro keeps the best combination found so far.
    4. If your computer has less memory, remove some candidate systems first.

    Advanced Mode. Tick Advanced Mode on the Portfolio Selection page to choose the search method: Smart (the most balanced CPU use), Genetic Algorithm, Brute Force (the most thorough, but so slow it's unusable for larger portfolios) or Particle Swarm Optimization. Trademaid's help says you shouldn't need to change from the default. With Genetic Algorithm selected, the options set Generations, Population and Children (100, 70 and 40 in a 2024 build); lower values finish sooner but give a less accurate solution. Since August 2024 the genetic algorithm can also stop after a set number of generations with no improvement, or after a maximum time.

    Trademaid's Advanced Mode page says the default is Smart, while its August 2024 notes describe brute force below 100 combinations and genetic algorithm above. We've asked Trademaid which is current and where the stop settings are. Check Trademaid's Advanced Mode page for your build.

    AdvancedSaving settings for each broker or account

    Trademaid's help says you can save different rates (margin, commission and slippage) for each brokerage or client account. It doesn't give the menu path, so check Trademaid's Portfolio Generation page.

    Advanced Features

    Use these once you're comfortable with the basic workflow above.

    Testing news-event days

    Watch the lesson: PA Pro Lesson 3Testing News-Event Days · in the Training Hub (free GSB Pro account)

    Should you trade on big news days, like a Fed rate decision? PA Pro lets you test it and rank the results by news announcement. A small number of days can lead to statistically weak conclusions, so be careful.

    Step 1: get an economic-calendar file

    1. Trademaid's example uses FXStreet's economic calendar (a third-party site, so its pages may have changed). Choose a custom date range covering the years you want to test.
    2. Click Filter, pick the country (for example United States) and the impact levels (for example low, medium and high).
    3. Click the download icon next to Filter and choose CSV. Save the file somewhere easy to find.

    PA Pro also accepts a date-only file holding the dates of one kind of event, such as Trademaid's Fed.txt for Fed interest-rate decisions.

    Step 2: test one priority level

    1. On the settings page, load the calendar file as the date filter.
    2. Choose which priorities to include, for example High Only. The options are High Medium, High Only, Medium Only, Except High Medium, Except High and Except Medium.
    3. To test every event at that priority, don't filter individual events: just click Generate Report.

    Step 3: test particular events

    1. Click Filter Events. The Edit Collection window lists every event in the file.
    2. Click the first event you want, hold Shift and click the last, to select a range.
    3. Set Enabled to True and click OK.
    4. Leave Exclude selected event dates unticked and click Generate Report: the report shows trading only on those dates.
    5. Tick Exclude selected event dates and generate again: the portfolio now skips those dates, so you can compare.

    Step 4: read Event Performance

    1. Choose Event Performance from the report drop-down. Each row is one news event, with net profit, % return, drawdown, profit factor, trades and % profitable.
    2. Set the Trades >= box next to the drop-down. The default is 0, which shows everything; raise it (Trademaid used 200) so each result rests on enough trades.

    Peter Zwag only acts on an event type when it has 200 or more trades across the whole basket of systems. Even then, he has considered trading smaller on those days rather than skipping them.

    These steps follow Trademaid's 2022-build screens. Newer builds show an Event Filter tick box instead, and we've asked Trademaid for the current workflow, the exact format of a date-only file like Fed.txt, and whether FXStreet's download is unchanged. Check Trademaid's News Events page and News Events data page for your build.
    News Events Date Filters

    The news events date filter (2022 build)

    In Trademaid's 19-system example, High Only gave a profit factor of about 1.89, and Except High about 2.14; Trademaid's summary was that high-priority days were well worth trading. Note the two runs cover different periods (2007 to 2022 and 2001 to 2022), so keep the date range the same when you compare. Fed interest-rate days alone gave a profit factor of about 1.42 from 83 days; one system made money on those days, but from only 28 trades, so the evidence is weak.

    Results shown are hypothetical, back-tested results. They have been prepared with the benefit of hindsight and past performance is not indicative of future results.

    Applying a news filter to live trading

    Watch the lesson: PA Pro Lesson 4Applying a News Filter to Live Trading · in the Training Hub (free GSB Pro account)
    1. On Event Performance, set the PF box to less than, enter 1.5, and set Trades >= to 200. This shortlists weak events with enough trades.
    2. Back on the settings page, open the event list, select the event you've chosen, set Enabled to True, tick Exclude selected event dates and click OK.
    3. Click Generate Report again.
    4. On Event Performance, click the TS button at the bottom right. A Script window opens with EasyLanguage code holding the event dates.
    5. Click Copy to Clipboard. You don't need to edit the code.
    6. In TradeStation, load the EventFilter ELD that comes with PA Pro (check Trademaid's help for its exact file name in your build).
    7. In the TradeStation Development Environment, open the EventsFilter function, replace its code with what you copied, and choose Build, then Verify.
    8. Call the filter from your strategy. The simplest, fastest way is to check it right before each entry, for example if not EventsFilter(date) then buy …, and the same for sell short.
    9. Verify the strategy, apply it to its chart, and compare TradeStation's performance report with PA Pro's over the same dates. If they're far apart, check the filter is really being called.
    The generated code holds only the dates in your events file when you clicked TS; it doesn't update itself as new events are announced. How best to add future news dates for live trading isn't covered in Trademaid's help yet, so check Trademaid's Adding News Events into TS code page before relying on it.

    Don't over-filter. Every excluded day removes winners as well as losers, and any filter found by looking back carries the benefit of hindsight. Keep it to a few clearly weak events with plenty of trades behind them.

    Automating reports from the command line

    Watch the lesson: PA Pro Lesson 6Automating Reports from the Command Line · in the Training Hub (free GSB Pro account)

    This is a newer feature, so make sure you're on a recent build. When you start PA Pro with command-line arguments it runs in batch mode: it loads saved portfolio files, generates the report and saves it to a folder. The window still opens.

    Step 1: save the portfolio

    1. Set up the portfolio the normal way: load your systems, tick the ones you want, and set the weights and other settings.
    2. Open the File menu and choose Save Portfolio.
    3. The dialog opens in the xmlfiles folder (C:\papro\xmlfiles in Trademaid's example). Type a short name without spaces, for example MySystems, and click Save.

    Step 2: run it

    1. Open a Windows command prompt.
    2. Change to the PA Pro folder, as Trademaid's example does: cd \papro
    3. Run: PortfolioAnalyst /p MySystems.xml /o C:\Reports /m /x
    4. The report is saved as an MHT file in C:\Reports, and PA Pro closes when it's done.
    SwitchWhat it does
    /pOne or more saved portfolio XML files, separated by spaces. * works in the file name. A path with no drive letter is looked for in xmlfiles. Put quotes around paths with spaces.
    /oThe output folder (created if it doesn't exist)
    /z or /uZipped or unzipped output. Use neither and you get both
    /m and /dMHT (web archive) and PDF output; you can combine them
    /xClose PA Pro when the reports are done
    /help or /?Show the list of parameters

    Only systems that were ticked when you saved the portfolio are processed, and the input must be a saved portfolio, not a single system's .pa file. Use single forward slashes, not --.

    Trademaid's notes say the report is generated automatically when three files or fewer are loaded, and don't say what happens with more. Running it unattended (for example from Windows Task Scheduler) isn't covered either. Test with your own portfolio first and check Trademaid's Command line options page.

    Real-World Examples

    Results shown are hypothetical, back-tested results. They have been prepared with the benefit of hindsight and past performance is not indicative of future results.

    Example 1: a small account with micro contracts

    From Trademaid's "A real world example":

    1. An account of about $25,000, so micro contracts and a mini DAX are used.
    2. All systems start from 2007.1.1, the earliest date all of them can trade, so PA Pro isn't biased towards systems with longer histories.
    3. Market Performance is checked first, to make sure the results are correct.
    4. In Portfolio Selection, 4 × max historical drawdown per system needs $28,081 capital; then Auto Portfolio is clicked.
    5. PA Pro improved net profit from $120,935 to $138,955 and cut drawdown from $3,075 to $2,079. With System Limits of 2, net profit and drawdown fell to $88,036 and $1,633.

    Trademaid's warning: PA Pro doesn't understand that the greatest risk is a system failing on future data, so it's better to add new markets and systems than more contracts on existing ones.

    Real World Example 1

    From Trademaid's real world example (hypothetical results)

    Example 2: choosing the best N systems

    Trademaid's second real world example chooses the best systems for the number of systems you want to trade:

    • About two dozen candidates; every system on the same custom date range, 2007.1.1 to 2022.11.30
    • Fitness: net profit / drawdown squared, as Trademaid describes it
    • No more than 1 contract per system; $20 round turn commission and 1 tick slippage each side
    • Max Systems set to 1, then 2, then 3 and so on. The best three-system portfolio was completely different from the best two, because that is what the maths showed was best
    • Time and memory grow quickly: the 5-system tests took very roughly 15 minutes and ran out of 64 GB of RAM

    Know the limits: other combinations may score almost as well, your choice of candidates carries bias, and the search ignores how long each system has been out of sample.

    Reference & Glossary

    Key Terms

    Net Profit to Drawdown Ratio

    PA Pro's default optimisation target. Higher ratios mean more profit per dollar of drawdown.

    Weight

    A multiplier on a system's own position size. A weight of 2 doubles it; 0.5 halves it.

    Monte Carlo Simulation

    A statistical technique that tests many possible orders of trades rather than the single historical sequence.

    Correlation Matrix

    Shows the correlation of returns between strategies (daily, weekly or monthly). Lower correlation between systems generally gives better diversification.

    Profit Factor

    Gross profit divided by gross loss.

    Sharpe Ratio

    Risk-adjusted return: (return − risk-free rate) / standard deviation of returns.

    Sortino Ratio

    Trademaid describes it as basically the Sharpe ratio of losing trades. A higher number is better.

    Updates, help and licensing

    • For what's changed in each build, see Trademaid's What's New page. Screens in this guide come from several builds, so yours may look a little different.
    • For anything not covered here, see Trademaid's PA Pro help.
    • For prices, licences and what's included, see Trademaid's PA Pro licensing page. Prices and terms are confirmed at checkout on Trademaid.
    • New PC? A licence can't be shared between two PCs, even if they never run at the same time. To move PA Pro, ask Trademaid to revoke the licence on the old PC, then activate it on the new one. For a second PC, ask Trademaid about an extra licence.

    Ready to Build Your Portfolio?

    Portfolio Analyst Pro is downloaded and licensed through Trademaid.

    PA Pro on Trademaid

    GSB's main tools are its genetic algorithm search, its walk-forward and robustness tests and its export to TradeStation, MultiCharts and NinjaTrader. New to it? See what Genetic System Builder does and how GSB compares with StrategyQuant and Build Alpha.