VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
Tutorials & support

AlphaPrime User Guide

This guide follows the order of one research session: install, prepare data, set up, generate, read the results, and export.

The screenshots come from the trial version and show the Traditional Chinese interface; the layout is the same in every language. The full version has more indicator families and features, so some screens will look richer.

1Install

  1. System requirements:
    • Windows 10/11, 64-bit.
    • The CPU edition runs on any graphics card.
    • The GPU edition needs an NVIDIA GeForce GTX 10 series or newer.
  2. Sign in to the member center on the website, download the installer and run it.
  3. If Windows shows a blue warning during setup, follow the install walkthrough on the website and continue.

2Activate your license

  1. The first time you open AlphaPrime you will see the Welcome to AlphaPrime screen.
  2. If you do not have a license code yet, click the link to request a free trial code from the AlphaPrime member center.
  3. Paste the trial code or license code into the License code field and click Activate.

To change the code or check its status later, open Settings › License at the bottom of the left sidebar.

Settings › License
Settings › License

3Get to know the screen

At the top of the left sidebar: Home, Monitor, Generation settings, Performance report and Portfolio Power. At the bottom: Market data and Settings.

Generation settings has six tabs across the top: Market & backtest → Strategy rules → Building blocks → Generation mode → Filter & keep → Strategy validation.

Overview: left sidebar, market data, and the strategy database at the bottom
Overview: left sidebar, market data, and the strategy database at the bottom

4Prepare data (example: TAIEX futures)

Historical market data is updated in Market data, for research and backtesting inside the software.

  1. Click Market data in the left sidebar, then Auto-update download at the top right. Historical data is brought up to date inside the software.
Auto-update download at the top right of Market data
Auto-update download at the top right of Market data
  1. You can also choose yourself: click Add, tick the instruments and timeframes you want, and click Download selected.
  2. To bring data up to date later, tick those rows and click Update selected.
  3. To check for gaps or duplicates, tick the rows and click Verify.
Market data
Market data

If you have your own data, click ASCII import at the top right of Market data and pick your file. The import panel opens (click Adjust to change how the file is read). Under What is this instrument? choose the instrument (TAIEX futures appears as TXF · TAIFEX). Under Adjust, set Time zone to the zone the data really belongs to, for example Asia/Taipei for TAIEX futures. Click Start import; the file is checked automatically first.

ASCII import: how the file is read after clicking Adjust
ASCII import: how the file is read after clicking Adjust

5Choose data, set costs, split out-of-sample

Go to Generation settings › Market & backtest:

  1. Historical data settings: choose the data source, the instrument (TAIEX futures here) and the timeframe, for example 15 minutes.
  2. Backtest period: enter a start and end date, or click Apply available range to use all the data.
  3. Test parameters:
    • Slippage: ticks per side, per contract.
    • Expand Commission and currency and set the commission type and amount.
  4. Data ranges: a few preset buttons sit below, for example IST 50 / ISV 20 / OOS 30.
    • IST: the data used to find strategies
    • ISV: for validation
    • OOS (out-of-sample): kept back for the final check

    The factory setting already reserves the last 30% as OOS; whatever is not split off is the in-sample training period.

Market & backtest: data source, instrument, timeframe, backtest period
Market & backtest: data source, instrument, timeframe, backtest period
Market & backtest: test parameters and data ranges
Market & backtest: test parameters and data ranges

6Set direction, stop-loss and take-profit

Go to Generation settings › Strategy rules:

  1. Strategy type: choose Simple strategy.
  2. Other build settings: click to expand. Trade direction sets long, short or both, and the stop-loss and take-profit ranges are here too.
  3. On the right are the trading options, for example No weekend trading and Exit at end of day.
Strategy rules: strategy type, other build settings, trading options
Strategy rules: strategy type, other build settings, trading options

7Pick indicator conditions

Go to Generation settings › Building blocks:

  1. The list on the left holds the indicator families. Tick two or three you know well.
  2. Leave the parameter ranges at the factory values for now.

The trial version can use 15 of the indicator families; families marked Full version are not included in the trial.

Building blocks: indicator families on the left, conditions of the selected family on the right
Building blocks: indicator families on the left, conditions of the selected family on the right

8Choose how to generate and what to keep

  1. Generation mode: choose Random generation and keep the factory parameters. Lower on the same page, the stop conditions decide when a run stops by itself.
  2. Filter & keep: decide which strategies may stay and how they are ranked.
  3. Strategy validation: which checks the kept strategies must pass, and where walk-forward analysis is set. For the idea behind it, see Walk-forward analysis: why one backtest is not enough.
Generation mode and stop conditions
Generation mode and stop conditions

9Start generating

  1. Click Monitor in the left sidebar.
  2. At the top right choose Auto, GPU or CPU. Without an NVIDIA graphics card, choose CPU or Auto.
  3. Click Start generation. While it runs you can Pause or Stop; after a pause click Resume.
  4. Best strategies this run lists the current top strategies. Every strategy that is kept goes to the strategy database at the bottom.
Monitor
Monitor

10Read the results

  1. Double-click a strategy in the strategy database at the bottom. It opens in Performance report.
  2. Look at these three places first:
    • Performance charts: switch the sample to OOS and see whether the out-of-sample stretch holds up.
    • Trade list: whether each entry, exit and cost looks reasonable.
    • The left column of the Strategy source code tab: which conditions and parameters the strategy actually uses.
Performance report: key numbers and equity curve (sample strategy)
Performance report: key numbers and equity curve (sample strategy)

11Export to major trading platforms

AlphaPrime exports to major trading platforms; see export to your platform for what is supported.

  1. In Performance report, open the Strategy source code tab. The right column is the strategy's source code.
  2. Click Export file to save it as a file, or Copy code.
  3. Before your first export, click Export library and import it once in your platform's code editor. If you are asked whether to overwrite functions with the same name, answer yes. Strategies exported afterwards will not compile without it.
  4. Import the strategy into your platform and compile it.
  5. Follow the setup lines at the top of the source code to set the chart's time zone, commission, slippage and so on.
  6. Before going live, compare the platform's trade list with AlphaPrime's on the same data. See From generated strategy to your platform: a comparison checklist.

The trial version can also view and export source code.

Performance report: the Strategy source code tab, conditions on the left, source code and export buttons on the right
Performance report: the Strategy source code tab, conditions on the left, source code and export buttons on the right

12Need help?

AlphaPrime is a software tool for strategy research. It is not investment advice and does not guarantee profit; backtest results do not represent future performance.