Pine Script Export

You can generate a Pine Script by using --export-pinescript with a combination code.

To run this export, you need the matching combination code.

  • In result logs, in the Backtest Context section on the Combination code line.
  • In SQLite output, in each objective result table under the combination_code column.
  • In JSON output, at backtests[].context.combination_code.

After you retrieve the code, pass it directly to the export command.

whale-e strategy.toml --export-pinescript G2C45

Notes

  • During export, Whale‑E loads the price data required for the backtest window and indicator lookback.
  • --export-pinescript cannot be combined with --json.
  • --export-pinescript cannot be combined with --analyze.