Contents

Charts

Script Editor (Pine Script)

Write, save and run your own Pine Script indicators and strategies.

Press Ctrl+E or the Script Editor icon on the right rail. The editor opens in a tab of its own. Your scripts, the scripts bundled with the app and examples to start from are listed on the left; the editor and its Console are beside them.

Write and run a script

  1. Press + Indicator or + Strategy to start a new script, or begin from New from an example. My scripts reopens your saved ones, and Bundled with the app lets you view the shipped scripts.
  2. Write or paste your script. The editor highlights Pine syntax.
  3. Press Add to chart (Ctrl+Enter). The script is added only if it compiles — errors and warnings appear in the Console.
  4. Edit and press Ctrl+Enter again to update it on the chart in place.
  5. Press Save (Ctrl+S) to keep it in your script library.

A script's inputs can be changed from its legend row on the chart, like any built-in indicator. Scripts on a chart are saved with the layout, including inputs you changed.

Adding a strategy opens the Strategy Tester under its chart.