On TrendSpider, one can code their own custom indicators, using a popular programming language named JavaScript. Unlike other platforms, on TrendSpider you can write your scripts in your favorite code editor, debug your script using your browser's dev tools, write logs and more. You can read more on our website, but here are the most important things highlighted:
- Draw lines, generate signals, paint histograms, color candles. Do all the stuff indicators typically do. Or go deeper and paint chart overlays, which can be HTML tables, charts and so on.
- Use your custom indicators in all the TrendSpider components. On charts, in strategies, in trading bots or alerts, in scanners, in AI strategies. You name it.
- Use whatever alternative data is available on TrendSpider.
- Bring your own data if you want. Upload your time series data, or fetch data from 3rd party APIs using standard HTTP GET calls.
Read the TrendSpider custom JS scripting documentation to see examples and learn more.
Generating Custom indicators code using AI
We have integrated a large language model (Claude 4.5) so it could assist you in writing indicators. It is aware of all our Custom JS documentation, it has access to quite some code examples, and it has a lot of techniques built into its prompts. It can code a broad range of things, from simple stuff like code an RSI which has Bollinger bands applied to it
to pretty complex cases like a custom version of the Ultimate Oscillator.
You can leverage AI for the purpose of either generating/fixing or explaining code. AI knows what portion of the code you have selected prior to giving it instructions. It is not limited to the highlighted section only, but that way it will better understand your intention.
You can expect this AI being aware of how most indicators work. So in order to get a Vortex implemented, you can simply request implement the vortex indicator
. For the more niche requests, consider giving more detailed instructions.
This functionality is built into the Custom Indicator editor on TrendSpider. Just click on the AI button, or hit Ctrl+K
in the code editor.
Porting indicator from other platforms using AI
If you have an indicator coded on another platform, then you can port it to TrendSpider by simply taking the source code as-is, then pasting it into the Custom Indicator Editor, and then asking AI to translate it. A prompt like Here's my code in {LANGUAGE_NAME}, please translate it into a TrendSpider custom indicator
would work. That works well in the majority of cases. In some cases, futher tweaks might be necessary though. It really depends on how different in its paradigm the source language is.