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.
A strategy with Next Bar orders, Wilder's ATR computed by hand (to reproduce AniQuant exactly) and TP/SL inputs. .eld extension.
A complete Expert Advisor (OnTick, CTrade), robust in sending orders (it normalizes the lot, prints the retcode). .mq5 extension.
ProBuilder/ProOrder code with SET TARGET / SET STOP and a counter of bars in the trade. .txt extension.
An AFL formula with the catalog's 75 indicators translated, SetTradeDelays to trade on the next bar and native stops via ApplyStop. .afl extension.
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:
The stop is recomputed bar by bar (peak and break-even variables); the time stop uses the native BarsSinceEntry.
PositionModify moves the stop every bar (trailing and break-even); the time stop counts bars and closes.
The trailing replaces the SET STOP with a manual exit against the peak; break-even and time stop with barssinceentry.
Native ApplyStop for TP/SL/trailing/time stop; the break-even with Flip/ValueWhen.
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.
The AQ Language reflects the exits and re-compiles them (a round trip):
breakeven: 3% offset 1%
timestop: 20
- ·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.
AniQuant can be tried free for 30 days, with every module and no card.