- Generate Indie® indicators or strategies from a prompt
- Modify selected code blocks inline
- Troubleshoot console errors
- Refactor existing logic
- Explain parts of an indicator
- Iterate faster while developing custom tools
Working with the IDE
The assistant can interact with the IDE Widget as part of your workspace. To use it:- Add or open the IDE Widget
- Open an existing Indie® script or create a new one
- Open the AI Assistant panel
- Select the IDE as the working context
- Describe what you want to create, change, or debug
Create an RSI-based indicator with overbought and oversold zonesConvert this logic into Indie®Explain what this function doesRefactor this block to make it easier to readFix the console error and update the code
The assistant works best when the IDE, chart, and related widgets are visible in the same workspace. This gives the assistant clearer context for code, output, and chart behavior.
Quick Edit
Quick Edit allows you to modify selected code directly inside the IDE. To use Quick Edit:- Highlight a code block in the IDE
- Press the Quick Edit shortcut or use the inline action
- Describe the change you want
- Review the suggested modification
- Accept or reject the change
- Renaming variables
- Rewriting conditions
- Simplifying calculations
- Adding comments
- Replacing repeated logic
- Adjusting Indie® syntax
- Fixing a specific block without rewriting the full script
Quick Edit only changes the selected code block. For broader changes across the full script, use the main AI Assistant input instead.
Debug and Refactor
The assistant can help identify and resolve IDE console errors. When your Indie® script fails to compile or run:- Open the Console in the IDE
- Select the related code block or keep the full script in context
- Ask the assistant to inspect the error
- Review the suggested fix
- Accept the edit or continue troubleshooting
- Undefined symbols
- Incorrect variable references
- Invalid Indie® syntax
- Type mismatches
- Incorrect series usage
- Missing imports
- Broken indicator logic
- Runtime errors caused by unsafe calculations
- Ask — use this when you want an explanation or debugging guidance
- Edit — use this when you want the assistant to generate or apply code changes
Example prompts
Accepting AI Suggestions
When the assistant proposes a code change, you can review it before applying. The IDE shows the difference between the current code and the suggested version:- Removed lines are highlighted
- Added lines are highlighted
- You can accept the change
- You can reject the change
- You can continue the conversation with a follow-up request
Selecting AI Models
The assistant supports system models and optional connected models through your own API key. Open the Models settings to:- View available system models
- Connect an Anthropic API key
- Enable external Claude models
- Choose which model should be used by the assistant

Keep your API key private. Do not share screenshots or workspace recordings that expose sensitive credentials.
Recommended Workflow
For indicator development, use this workflow:-
Create or open an Indie® script
- Start from a blank script, fork an existing indicator, or open your own code.
-
Generate or modify logic
- Ask the assistant to create a first version or edit a selected block.
-
Add the indicator to a chart
- Use the IDE’s Add to Chart button to test the output visually.
-
Check the console
- If there are errors, ask the assistant to explain or fix them.
-
Refine the code
- Use Quick Edit for small changes.
- Use the main assistant input for larger structural changes.
-
Validate behavior on the chart
- Compare the output with your expected trading logic.
- Test different symbols and timeframes.
-
Save or publish
- Once the script works correctly, save it or prepare it for publishing.
Best Practices
- Use clear prompts with specific goals.
- Select only the code block you want to change when using Quick Edit.
- Include the error message when asking for debugging help.
- Ask the assistant to preserve logic when refactoring existing indicators.
- Test generated code on multiple symbols and timeframes.
- Review all changes before accepting them.
- Avoid applying large edits blindly if the indicator already contains complex logic.
Good Prompt Examples
Limitations
AI-generated code may still require manual review. Possible limitations include:- The assistant may misunderstand incomplete logic.
- Some generated code may need additional validation.
- Runtime behavior should always be checked on the chart.
- Complex indicator conversions may require several iterations.
- External model availability depends on the connected provider and your API key.
Use the AI Assistant as a development helper, not as a replacement for testing. Always validate custom indicators before using them in live analysis or publishing them to the Marketplace.