Have you ever had a great idea for a trading indicator or system but felt stuck because you didn’t know how to build it?
Maybe you’ve imagined combining indicators like MACD, RSI, and Bollinger Bands into a single tool to refine your strategy. Or perhaps you’ve thought about blending volatility and momentum to create a unique signal for potential reversals. Turning these ideas into reality used to mean learning how to code or hiring a programmer—costly, time-intensive hurdles that stopped many traders in their tracks.
But what if you could turn your ideas into custom indicators with the help of AI? With TrendSpider’s new AI Coding Assistant, you can bring your concepts to life faster and easier than ever, directly within our JavaScript coding environment.

A Personal Coding Assistant at Your Fingertips
TrendSpider’s AI Coding Assistant lets you create custom indicators by simply describing your ideas—no coding knowledge or technical expertise is required. Your experiments or concepts come to life with just a few clicks.
Powered by a specially-tuned LLM tailored to TrendSpider’s ecosystem, the AI Coding Assistant translates your prompt into fully functional JavaScript code. Whether you’re a beginner or a seasoned trader, building sophisticated indicators has never been faster or easier.
Unlock the Full Power of Custom Indicators
As a reminder, in TrendSpider you can build custom indicators using JavaScript, one of the world’s most widely recognized programming languages. Custom indicators give you unparalleled flexibility to:
- Access Comprehensive Market Data: Leverage real-time price history, technical indicators, fundamental metrics, alternative data, and even your custom data via API or file uploads.
- Integrate Seamlessly Across the Platform: Use your indicators everywhere—on charts, in scanners, backtests, alerts, and even to power AI Strategies and Trading Bots.
With the AI Coding Assistant, there’s no need for programming expertise or hours of trial-and-error learning. Describe your vision, and TrendSpider transforms it into reality—helping you focus on what matters most: refining your edge.
What Can You Build?
The possibilities are as expansive as your imagination. Here are just a few examples:
- Oscillators: Create indicators like RSI or custom momentum tools.
- Chart Overlays: Build trendlines, moving averages, or Bollinger Bands.
- Labels and Annotations: Add dynamic buy/sell signals or percentage changes to your charts.
- Custom Zones and Levels: Plot Fibonacci retracements, support zones, or resistance levels.
- Dynamic Candlesticks: Adjust candlestick colors based on bullish or bearish conditions.
Whether you need intricate calculations or simple visual markers, this tool adapts to your goals.
How to Get Started
- Open the Custom Indicator Editor: Navigate to the editor within TrendSpider.
- Generate Code Using AI: Click the “Generate a new indicator code using AI” button.
- Write Your Prompt: Describe your desired indicator.
- Refine and Deploy: Review the output, make adjustments if needed, and apply the indicator to your charts, scanners, alerts, or strategies.
Crafting the Perfect Prompt
Working with the AI assistant is a collaborative process. To get the best results:
- Start Simple: Describe your idea in plain language.
- Iterate: If the result isn’t perfect, refine your prompt or ask for adjustments.
- Experiment: Combine data sources, add conditions, or explore new ways to visualize trends.
The AI thrives on understanding your intent and can transform even vague ideas into actionable tools. Don’t be afraid to experiment!
Quick Tips For A Smooth Start
Using the AI Coding Assistant for the first time can be an exciting yet slightly overwhelming experience. Here are a few common pain points traders may encounter and how to navigate them effectively:
- Prompts Are Not Saved: When you accept code, the prompt will not be saved automatically. Be sure to save your prompts elsewhere if you want to reference them later.
- Prompt Results: The same prompt will not always yield the same results from generation to generation.
- Making Changes: Need to tweak your working code? Simply open the chat box and request the specific change you’d like. The assistant will adjust your code accordingly.
- Error Messages: Errors often reference specific lines of code. Highlight the relevant lines and ask the assistant for help fixing them—it’s quick and efficient.
- Custom Signals in Scanners: If you’re building a custom indicator for use in the scanner and want it to generate signals, you’ll need to clearly define what constitutes a signal and when it is active.
Understanding these nuances will help you get the most out of the assistant while minimizing friction in your workflow.
Examples To Inspire You
Moving Average Trend Identifier
The Moving Average Trend Identifier is designed to simplify market analysis by coloring candles to reveal whether price action is decisively bullish, bearish, or neutral based on its position relative to key moving averages.
The Prompt
Create an indicator called the Moving Average Trend Identifier that colors candles green when they open and close above all of their key moving averages. Color candles red when they open and close below all of their key moving averages. If a candle does not open and close above or below all of its key moving averages, color it grey. Key moving averages include the 10, 20, 50, 100, and 200 SMAs. Do not paint moving averages on the chart. Only color the candles. Create signals for red, green, and grey candles.
The Indicator
Import the Moving Average Trend Identifier into your account now.
RSI with Seasonality
The RSI with Seasonality indicator combines traditional momentum analysis with seasonal insights, providing a powerful visualization tool for traders. The RSI line dynamically changes color each week based on the historical win rate for that specific week of the year, adding a layer of context that goes beyond standard momentum readings.
The Prompt
Create an RSI indicator that changes color weekly based on week of year seasonality win rate: bright red (<35%), red (35-50%), green (50-65%), bright green (>65%). Add this week’s win rate and weekly percentage mean change info in top right.
The Indicator
Import the RSI with Seasonality indicator into your account now.
Squeeze Labels
The Squeeze Labels indicator uses emojis to visually highlight when an asset is either in a squeeze or when the squeeze is firing, based on the interaction between Bollinger Bands and Keltner Channels. By focusing solely on signals and skipping the plotting of the bands and channels, it keeps your chart clean and easy to read.
The Prompt
Create an indicator that paints labels whenever these conditions are true: Bollinger Band up < Keltner Channel up and Bollinger Band low > Keltner Channel low. Paint lemon emojis for the labels. Do not paint the Bollinger Bands or Keltner Channels. Only display one lemon emoji per signal. Display a beverage box emoji when these conditions are true: Bollinger Band up > Keltner Channel up and Bollinger Band low < Keltner Channel low.
The Indicator
Import the Squeeze Labels indicator into your account now.
Final Thoughts
This integration is just the beginning of what’s possible with AI-powered tools in TrendSpider. By combining the expertise of a coding assistant with the flexibility of our Custom JS editor, we’re making it easier than ever to turn your trading ideas into actionable strategies. Dive into the editor today and see how AI can transform your workflow.


