CodeLab overview
CodeLab is the code editor under your chart. Write an indicator in TypeScript, run it, and it draws on the chart. It is free on every plan, and in beta.
Free- Open the CodeLab tab in the bottom panel, or go to chartlabs.co/codelabs.
- Choose File, then New indicator, or Browse templates.
- Write or edit the script and select Run. It draws on the chart.
- Save it. It appears in My Library in The Lab.
The menus
- File: New indicator, Import from Pine Script, Browse templates, Save, Rename, Delete, Publish, Convert to strategy.
- Tools: Check script now, Scan watchlist with this script.
- Docs: opens the SDK reference.
Scripts use the @chartlabs/script-sdk names and run in a sandbox with no internet access. The CodeLab SDK reference covers every function.