VALYNOX
VALYNOXSTRATEGY RESEARCH TECHNOLOGY
VALYNOXMultiAlphasMultiAlphas
ACADEMY / Platforms and export

How to export a MultiAlphas strategy to TradeStation, step by step

Open the strategy's source code in the Performance report, export it for TradeStation, import it, set the items the code's header lists, then compare trade lists on the same data before going live.

By · Published · updated · Editorial policy

Contents
  1. What do you need before you start?
  2. How do you export the strategy from MultiAlphas?
  3. How do you import it into TradeStation?
  4. Which settings must match the backtest?
  5. How do you check TradeStation against MultiAlphas before going live?
  6. Frequently asked questions

To run a strategy from MultiAlphas (Valynox) in TradeStation, export its EasyLanguage source code from the Performance report, import it into TradeStation, set the chart and strategy the way the code's header describes, and compare both trade lists on the same data before you trade it live.

What do you need before you start?

You need a strategy in the MultiAlphas strategy databank, TradeStation installed, and the same market and history you tested on. The trial version can also view and export source code, so you can follow every step before buying. For a second platform, the NinjaTrader export goes through similar steps.

How do you export the strategy from MultiAlphas?

Export happens in the Performance report, on the strategy's source code tab. The file is saved under the strategy's name with the .el extension. It is a single file: the functions the strategy uses are already written into it. Its header lists three steps; follow them in order.

  1. In the strategy databank, double-click the strategy to open it in the Performance report.
  2. Open the Strategy source code tab. The left column lists the conditions and parameters; the right column shows the source code.
  3. Choose TradeStation, then click Export file to save it, or Copy code.
  4. TradeStation strategies don't need the MultiAlphas library, so there is no extra step.

How do you import it into TradeStation?

Import the strategy, make sure it compiles, then add it to a chart.

  1. File → New → Strategy, and name it as the file's header shows. There is no function to create first.
  2. Paste the whole file and press Verify (F3).
  3. Insert the strategy into a chart set up as listed below, and set MaxBarsBack to at least the value the header lists, not Auto-detect.

Which settings must match the backtest?

The header of the exported code lists what the backtest used. Set the same in TradeStation:

  • Instrument, bar period and date range
  • Initial capital and number of contracts
  • Commission per contract per side, and slippage in ticks per side
  • Big point value, tick size, and MaxBarsBack of at least the listed value (not Auto-detect)
  • Time zone: Format Symbol → Settings → Time Zone: Exchange; and the trading session
  • Any additional data series
  • Look-Inside-Bar Back-testing: keep it off

A different time zone or session moves every bar, and missing costs make the platform's results look better than the backtest. Compare against the Strategy Performance Report.

How do you check TradeStation against MultiAlphas before going live?

Run the strategy in TradeStation on the same data and period, then compare its trade list with MultiAlphas's trade list, trade by trade.

  1. Use the same instrument, bar size and date range as the backtest.
  2. Compare entry and exit times first: a shift of one bar usually means a time zone or session difference.
  3. Then compare prices and costs: different fills or missing commission show up here.
  4. Where they differ, check the data source next: two data feeds can build slightly different bars.

The guide to trading costs in backtests: commission, slippage and the average trade explains why costs matter, and walk-forward analysis covers how a strategy is checked on data it didn't see. Walk-forward analysis with thresholds you choose sits in MultiAlphas's strategy validation, so a strategy can get that unseen-data check before it ever reaches TradeStation.

What this means if you use MultiAlphas (Valynox): the exported code is plain text you can read and edit, and the platform export page lists every supported platform.

Frequently asked questions

Do I need to export the library every time?

No. TradeStation strategies don't use the MultiAlphas library at all.

Can I edit the exported code?

Yes. It is plain-text EasyLanguage you can read and change. After an edit, compare the trade list again, because the strategy is no longer the one MultiAlphas tested.

Can the trial version export strategies?

Yes. The trial can view and export source code, so you can try the whole process before buying.