Home/User Guides/Scripting

How do I create my own indicator?

Press Editor (the code icon) on the chart toolbar, then New indicator. Pick a starter or describe it for Kata, press Run to draw it, then Publish to keep it on every device.

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.

  1. On the chart toolbar, press Editor, the code icon. When it is not on the toolbar, open the Panels menu and pick Editor.
  2. In the editor's file list, press New indicator.
  3. On the New indicator screen, pick a starter, pick Blank indicator, or type what you want in the box and press Enter to have Kata write it.
  4. Press Run to put it on your active chart. Change the code and press Run again to see the change.
  5. 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?