Install your export on TradingView
A single-strategy export gives you one Pine Script in a new HorizonAI chat. A portfolio export gives you a ZIP containing one text file per strategy and a README. TradingView does not import the ZIP or run a portfolio controller, so you add each strategy to its own chart.
Install one strategy
- In the exported Pine chat, click Copy Code.
- Open a TradingView chart for the market and timeframe you want to use.
- Open Pine Editor at the bottom of the chart.
- Replace everything in the editor with the code from HorizonAI.
- Click Add to chart. TradingView compiles it and opens the Strategy Tester if it is a strategy.
- Open the script's Settings → Properties and confirm the order size, commission and starting capital.
If you change the Horizon original later, export it again and replace the Pine code with the new version.
Install a portfolio
- Extract the portfolio ZIP from your Downloads folder.
- Open
README.txt. It lists the market, timeframe and position size for every strategy. - For each
.txtfile, open the matching market and timeframe in TradingView. - Open Pine Editor, paste the whole file and click Add to chart.
- Set the position size from the README under Settings → Properties.
- Save the chart or layout, then repeat for the next strategy.
Each portfolio member runs as its own TradingView strategy. Keep the README: it is the map between each file and the chart where it belongs.
Verify the export
- Confirm the strategy trades the expected market and timeframe.
- Compare its trade count and equity-curve shape with the pinned Horizon backtest.
- Check that the order size and costs match what you intended.
- Treat compile errors as blocking. Copy the full error into the exported HorizonAI chat and ask it to fix the Pine code.