Convert to NinjaScript
The converter treats NinjaScript as a first-class target, same as Pine and MQL5. Paste a TradingView or MetaTrader script, pick NinjaTrader 8, and HorizonAI rewrites it. Built the strategy in Horizon instead? Don't convert — export from the chat header.
One-click converter
- Go to app.horizontrading.ai/convert
- Paste your Pine Script or MQL5, drop a file (
.csuploads are accepted too), or load an example. Correct the detected language if needed. - Under Convert to, choose NinjaTrader 8, then convert.
- The result opens in a chat. Click Copy Code — NinjaScript has no download button — and paste it into the NinjaScript Editor.
Pick Premium for the highest-quality result, or Basic to spend fewer tokens.
Open Converter →Convert inside the chat (alternative)
- Click New Script and set the platform pill to NinjaScript.
- Paste the Pine or MQL5 source.
- Type: "Convert this into NinjaScript for NinjaTrader 8."
- Click Start building →, then Copy Code.
Say whether you want an indicator (draws on the chart) or a strategy (places trades). NinjaTrader files the compiled result by base class.
After it converts
NinjaScript has no chart or backtest inside HorizonAI. The loop is: copy → paste → compile → test in NinjaTrader.
- Run NinjaScript on NinjaTrader: the copy → compile loop
- Setting up NinjaTrader 8: install and get a free sim account
- Using the NinjaScript Editor: paste, F5, fix compile errors
- Backtesting in NinjaTrader: Strategy Analyzer
- Convert Pine Script to MT5 · Convert MT5 to Pine Script