Open the script editor, press New indicator, and press Run to draw it on your chart. Indicators are written in TypeScript, and the editor works on a computer when you are signed in with a verified email.
- On the chart toolbar, press Editor, the code icon. When it is not on the toolbar, open the Panels menu and pick Editor.
- In the editor's file list, press New indicator.
- On the New indicator screen, pick a starter, pick Blank indicator, or type what you want in the box and press
Enterto have Kata write it. - Press Run to put it on your active chart. Change the code and press Run again to see the change.
- Press Publish to keep it. Just me keeps it on your own charts on every device; Everyone or Invite only shares it.
A starter under Strategies makes a strategy that you can backtest instead.
You can also open the editor through super search: press Ctrl/Cmd+K, type "editor" and pick Script Editor. How many saved scripts you can keep depends on your plan.
Related: Can AI write or fix an indicator for me?, How do I convert a Pine Script indicator? and How do I backtest a strategy?