Skip to content
Algo Trade Analytics Docs

AI Pine Editing in Algo Lab

Basic or Professional

AI Pine editing is the editor tab inside Algo Lab. Most of the editor is intentionally direct: open a Pine tab, edit code, ask for help when needed, review the proposed diff, then run the Lab tools again.

Location: open it from the Algo Lab Editor tab.

Use AI here when a code change benefits from context the Lab already has: the current strategy, case study, backtest output, linked reports, and webhook requirements.

Draft Pine Changes

Generate or refactor Pine Script while keeping the current strategy tab in context.

Fix Errors

Ask the assistant to explain and patch compiler, runtime, or logic issues.

Use Lab Evidence

Turn Case Study notes, backtest results, and fill-review findings into concrete code changes.

Add Webhooks

Add or update TradingView alert payloads for Algo Trade Analytics from the same strategy file.

  1. Open the Editor tab in Algo Lab and choose a Pine file.
  2. Edit directly, or ask the assistant for one bounded change.
  3. Review the proposed diff before applying it.
  4. Run a Lab backtest, sweep, or Agent turn against the changed version.
  5. Preserve the variant only when the resulting evidence is useful.