Black Friday 30% off Basic and ProBlack Friday −30%Ends in––d––h––m––sSee the deal

Build indicators with your AI

TotalCharts doesn’t have a built-in AI or an MCP server yet. But you can write your indicators with the AI you already use, like ChatGPT, Claude or Gemini, and paste them into the editor.

In five steps

  1. Give the documentation to the AI

    Write in the chat the link to the complete documentation in a single text file: https://www.totaltrade.ai/llms-full.txt. If your AI doesn’t open links, open the file yourself and paste its text into the chat.

  2. Describe the indicator

    What it calculates, what it draws on the chart, on the price or in a pane, and which settings you want to be able to change. The more precise you are, the fewer fixes you need.

  3. Paste the code into the editor

    In the Indicators dialog press Create indicator, give it a name, paste the script in place of the example and press Add to chart.

  4. Send the errors back to the AI

    If there is an error, you find it in the console below the script, with the line. Copy it into the chat and ask for the script to be fixed. Repeat until the indicator is on the chart.

  5. Check the result

    Compare the values on the chart with the ones you expect, on several timeframes and several instruments, before using it to trade.

A prompt to copy

Replace the part in square brackets with your indicator.

Prompt
Write an indicator for TotalTrade's TotalCharts, in Python, following only the documentation at https://www.totaltrade.ai/llms-full.txt.

Rules:
- a single import: from totaltrade.v1 import …
- the @indicator decorator and the calculate function, which receives all the candles and returns one series per plot
- only the ta, math, format and draw libraries and the Python allowed by the documentation
- settings as inputs, with clear names

The indicator: [what it calculates, what it draws, which settings].

Reply with the complete script, ready to paste into the editor.

Good to know

  • The AI works only on the text you give it: it can’t see your chart, your account or your data.
  • The AI can make mistakes: always check the code and the values. What you can write is in Allowed Python, the limits are in Errors and recalculation.
  • You can also start from a built-in indicator: open its code, make a copy and ask the AI to modify it.
  • Creating your own indicators and publishing them in the community is included in the Pro plan.