ChartnautDocs

Build a definition

A definition is your setup written precisely enough for Chartnaut to mark it on a chart. You describe it in words, the agent writes the script, and you check its marks on real days before anything is measured. Free keeps 10 definitions.

Ask the Agent

The quickest way is to hand the whole idea to the Agent, especially when you want a question answered at the end of it.

  1. Open Agent at the top of the sidebar.

  2. Describe the setup the way you would to another trader. Name the instrument, the timeframe and exactly what counts: Mark every 5-minute close outside the first 15-minute range of the New York session on BTC, and record whether price was above session VWAP.

  3. Read the Plan proposal card and click Approve, or tell it what to change.

  4. The agent builds the definition and shows it on a Result card, with its marks drawn on a chart beside the chat.

  5. Check the marks (see below), then click Accept.

Result card with the definition's marks
The agent's Result card beside the definition's marks on BTC.

If the definition needs an indicator such as VWAP, the agent asks first. See Indicators inside definitions. Test your first trading idea follows this route all the way to a finished study.

Use the definition builder

To work on the definition on its own, with the script and the chart side by side:

  1. Open Tools → Definitions and click New. The page asks What do you want to build?

  2. Type your description and press Enter, or click one of the Suggested definitions to start from it.

  3. The builder opens: the agent's chat on the left, the Editor on the right. The agent writes the script and applies each change as it goes. A Files updated message confirms each one.

  4. Open the Chart tab and check the marks. Use the arrows either side of the date to move a trading day at a time.

  5. Tell the agent what is wrong, with the date, until the marks are right.

Definition builder
The definition builder with the chat on the left and the Chart tab on the right.

Code shows the script. Problems lists anything the checker flagged, Errors shows what stopped the script from running, and Logs shows what it printed. When something shows up there, ask the agent to fix it.

To write the script yourself, click Build it yourself under the suggestions, give it a Name, and write the script in the builder's Code tab. Click Save draft when you are done. Scripting covers the language.

Check the marks

Every number you get later depends on these marks, so step through at least five sessions, including a quiet one and a busy one.

  • Each mark sits on the exact bar where the setup happened.

  • It never fires on a day when the condition was false.

  • It fires once per setup, and stays quiet on the bars that follow.

When one is wrong, say what you saw and when: On 12 March the mark fired at 9:40, before the range had finished forming.

Saving and versions

Each working change is saved to the definition. If a change does not run, Chartnaut keeps it as a draft and says Draft saved (not runnable yet): fix what Problems or Errors shows. Once events have been found or a study uses the definition, the next working change starts a new version, so nothing already measured changes under you. See Versions and profiles.

To change a definition later, open it from Tools → Definitions and click Open editor.

A definition marks the setup as soon as it is saved: add it to a chart to see it live, as in Definitions on the chart. To count how often it happened, run it over history. How many definitions you can keep depends on your plan: 10 on Free and 50 on Pro. To hear when a definition fires on a live market, set a definition alert on Pro.