Horizon + TradingView

Install your export on TradingView

From HorizonAI to the right TradingView charts

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.

Start by checking every export in TradingView's Strategy Tester. Pine code cannot be compiled by HorizonAI in advance because TradingView does not expose its compiler.

Install one strategy

  1. In the exported Pine chat, click Copy Code.
  2. Open a TradingView chart for the market and timeframe you want to use.
  3. Open Pine Editor at the bottom of the chart.
  4. Replace everything in the editor with the code from HorizonAI.
  5. Click Add to chart. TradingView compiles it and opens the Strategy Tester if it is a strategy.
  6. 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

  1. Extract the portfolio ZIP from your Downloads folder.
  2. Open README.txt. It lists the market, timeframe and position size for every strategy.
  3. For each .txt file, open the matching market and timeframe in TradingView.
  4. Open Pine Editor, paste the whole file and click Add to chart.
  5. Set the position size from the README under Settings → Properties.
  6. 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.

Next steps