Home › Documentation › Building strategies
Export to your platform

Take the strategy to your broker

AniQuant translates any concrete strategy into five trading languages, ready to paste into the platform. The export starts from the Lab ranking (right-click → Export…), from the Portfolio (the Export buttons) and, for EasyLanguage, from the AQ Editor.

📊 EasyLanguage · TradeStation / MultiCharts

A strategy with Next Bar orders, Wilder's ATR computed by hand (to reproduce AniQuant exactly) and TP/SL inputs. .eld extension.

🤖 MQL5 · MetaTrader 5

A complete Expert Advisor (OnTick, CTrade), robust in sending orders (it normalizes the lot, prints the retcode). .mq5 extension.

📈 ProRealTime · ProOrder

ProBuilder/ProOrder code with SET TARGET / SET STOP and a counter of bars in the trade. .txt extension.

🧮 AmiBroker · AFL

An AFL formula with the catalog's 75 indicators translated, SetTradeDelays to trade on the next bar and native stops via ApplyStop. .afl extension.

📉 Pine Script v6 · TradingView

A strategy with strategy.entry / strategy.exit that enters at the open of the next bar, just like the AniQuant engine. Note: TradingView does not accept your own data, so its backtest figures will not match AniQuant's (a different series, a different history depth depending on your plan). Use it to see the strategy on the chart and to trade it, not to verify numbers. .pine extension.

The Exit Engine travels with the strategy

The trailing, break-even and time stop are emitted in all five languages, each in its native idiom:

EasyLanguage

The stop is recomputed bar by bar (peak and break-even variables); the time stop uses the native BarsSinceEntry.

MQL5

PositionModify moves the stop every bar (trailing and break-even); the time stop counts bars and closes.

ProRealTime

The trailing replaces the SET STOP with a manual exit against the peak; break-even and time stop with barssinceentry.

AmiBroker

Native ApplyStop for TP/SL/trailing/time stop; the break-even with Flip/ValueWhen.

Pine Script

strategy.exit for TP/SL; the trailing is converted from % to ticks (trail_offset), which is why it is approximate; break-even and time stop with strategy.close.

In AQL too

The AQ Language reflects the exits and re-compiles them (a round trip):

stoploss:   trailing 1%
breakeven:  3% offset 1%
timestop:   20
The small print, honestly
  • ·The TP/SL and the exits are exported assuming a percentage; if your SL is in amount or ATR, the code carries a warning comment.
  • ·Long+short reversal strategies (seasonal ones) export the entry but not the break-even/time stop.
  • ·An export is a faithful reproduction, not tick-identical: always validate on the platform before trading it for real.
The ranking export menu
Right-click in the ranking: export to EasyLanguage, MQL5, ProRealTime, AmiBroker or TradingView (Pine).
The generated AmiBroker AFL code
The generated AmiBroker (AFL) formula, with the native ApplyStop stops.
Try it yourself

AniQuant can be tried free for 30 days, with every module and no card.

← Previous
AQ strategy language and editor
Next →
Parameter robustness test
More in Building strategies