Build a custom indicator
A custom indicator is a script that calculates a value on every bar and draws it: a session VWAP with bands, an opening range box, a relative volume histogram. You describe it, the agent writes it, and you check it on real days before it goes on your charts. Build your own indicator walks through one from start to finish; this page covers the options.
Ask the Agent
Open Agent at the top of the sidebar.
Describe the indicator: what it calculates, when it resets and how it should look. Build a session VWAP that resets at the New York session open, with bands at 1 and 2 standard deviations. Draw VWAP solid and the bands thinner.
Approve the Plan proposal card.
The agent builds the indicator and shows it on a Result card. Open it, check it on a few days, then click Accept.
The Agent suits an indicator that is one step in something bigger, such as a definition that needs it.
Use the indicator builder
Open Tools → Indicators and click New. The page asks What do you want to build?
Type your description and press Enter, or click one of the Suggested indicators, such as Opening-range box or ATR percentile ribbon, to fill in the box.
The builder opens with the agent's chat on the left and the Editor on the right. The agent writes the script and applies each change as it goes; Indicator updated confirms each one.
On the Chart tab, use the arrows either side of the date to step through quiet and busy days.
Tell the agent what is wrong, with the date, until it looks right.
Code shows the script, Errors what stopped it from running and Logs anything it printed.
Write it yourself
Click Build it yourself under the suggestions, give the indicator a Name and, if you like, a description, then write the script in the Code tab. When you edit, You have unsaved changes appears with a Save button. A save that does not compile is still kept, and the chart goes on showing the last version that did. Scripting covers the language.
This is also the route on Free, which has no AI.
Versions
Each working change is saved to the indicator. The Code tab shows what happens to the next one:
v3 not in use yet · changes rewrite it: nothing uses version 3, so changes keep rewriting it.
v3 in use · next change starts v4: a chart, a study or a saved app uses version 3, so the next change starts version 4 and leaves version 3 as it is.
A chart that already uses the indicator keeps the version it was added with. Every version is listed on the indicator's Versions tab, with Latest on the newest and AI on the ones the agent made.
Manage it
Click an indicator under Tools → Indicators to open it. Overview holds its description, Preview Settings the settings it exposes, and Versions every version.
Edit opens the builder again. Make a change on Preview Settings does the same.
The settings button beside the name renames it.
Clone makes a private copy for you to change.
The visibility control sets it Private, Unlisted (anyone with the link) or Public (listed in the community library).
Delete in the row's menu removes it from your library. Charts that use it need another indicator added in its place.
When it goes wrong
The Chart tab explains what stopped it, with a button to act on it:
Message | What to do |
|---|---|
Saved, but this script doesn't compile | Click Fix with agent |
Dependency output empty | An indicator it reads has no values yet. Click Diagnose with agent |
No market data | The date is a weekend or holiday. Click Nearest trading day |
Free and Starter keep 3 custom indicators; Pro and Ultra are unlimited. At the limit, creating another says You have reached the Custom indicators limit for your plan: delete one you no longer use, or upgrade. See Library limits.
