Import a Pine Script indicator

Import a Pine Script indicator

Paste Pine Script v5 or v6 and ChartLabs translates it to a CodeLab TypeScript indicator. Lines it cannot translate stay as TODO comments.

Free
  1. Open CodeLab (the CodeLab tab in the bottom panel, or chartlabs.co/codelabs).
  2. Choose File, then Import from Pine Script. On iPhone, use Import Pine in The Lab.
  3. Paste the Pine source and import.
  4. Review the result. Anything that could not be translated is left as a // TODO comment, and the dialog counts how many need a look.
  5. Run it and add it to the chart.
  • Pine v5 and v6 are supported.
  • Pine libraries (import user/Lib/1) are fetched automatically, including the libraries they import.
  • Your pasted Pine source stays private with your script. It is never shipped to buyers if you sell the indicator.