Troubleshooting
Basic & Pro Plans
This guide covers common issues you may encounter with the Pine Script AI Editor and how to resolve them.
AI Issues
Section titled “AI Issues”AI Response is Empty or Generic
Section titled “AI Response is Empty or Generic”Symptoms:
- AI returns “I can help with that” without code
- Response doesn’t address your question
- No diff is generated
Solutions:
- Be more specific — Include exact requirements
- Provide context — Attach your current code
- Use Agent mode — Switch from Answer to Agent mode
- Start fresh — Create a new chat tab
AI Doesn’t Generate Diffs
Section titled “AI Doesn’t Generate Diffs”Symptoms:
- AI explains changes but no Apply button appears
- Response contains code blocks but no diff viewer
Solutions:
- Request diffs explicitly: “Show me a unified diff of the changes”
- Ask for full code: “Generate the complete updated script”
- Check mode — Ensure you’re in Agent mode, not Answer mode
AI Gives Incorrect Code
Section titled “AI Gives Incorrect Code”Symptoms:
- Generated code has syntax errors
- Logic doesn’t match your description
- Pine Script version is wrong
Solutions:
- Run validation — Catch syntax errors immediately
- Use Fix with AI — Let AI correct its own mistakes
- Provide examples — Show working code as reference
- Specify version: “Use Pine Script v6 syntax"
"Out of Credits” Error
Section titled “"Out of Credits” Error”Symptoms:
- Request fails with credits error
- Chat stops responding
Solutions:
- Check your balance in the editor footer
- Purchase additional credits
- Use a cheaper model (GPT-5 Mini) for simple questions
- Reduce context attachments to lower costs
Editor Issues
Section titled “Editor Issues”Code Not Saving
Section titled “Code Not Saving”Symptoms:
- Changes are lost after refresh
- Tab indicator never shows “saved”
Solutions:
- Check auto-save — Enable in settings
- Manual save — Press
Ctrl/Cmd + S - Check connection — Ensure you’re online
- Refresh page — Reload and check if changes persisted
Tabs Won’t Load
Section titled “Tabs Won’t Load”Symptoms:
- Spinner shows indefinitely
- “Loading scripts” never completes
Solutions:
- Refresh the page — Simple reload often fixes this
- Check network — Ensure stable connection
- Clear cache — Browser’s cached data may be corrupted
- Contact support — If issue persists
Undo Not Working
Section titled “Undo Not Working”Symptoms:
Ctrl/Cmd + Zdoes nothing- Changes can’t be reverted
Solutions:
- Click in editor — Focus must be on the code editor
- Check history — Some actions clear undo history
- Use version control — Create copies before major changes
Validation Issues
Section titled “Validation Issues”Validation Never Completes
Section titled “Validation Never Completes”Symptoms:
- Loading spinner shows indefinitely
- “Validating…” message persists
Solutions:
- Wait longer — Large scripts take more time
- Check network — TradingView API requires connectivity
- Retry manually — Click Validate again
- Disable auto-validation — Manual validation may work better
Validation Passes but TradingView Shows Errors
Section titled “Validation Passes but TradingView Shows Errors”Symptoms:
- Editor shows “Valid”
- TradingView Pine Editor shows errors
Possible causes:
- Runtime errors — Only visible with chart data
- Series length — Issues with specific data conditions
- Version mismatch — Different Pine Script versions
Solutions:
- Run the script on a TradingView chart to see full errors
- Fix runtime errors that only appear with actual data
- Ensure
//@version=6header is present
Fix with AI Creates New Errors
Section titled “Fix with AI Creates New Errors”Symptoms:
- AI fix introduces different errors
- Validation shows more issues after fix
Solutions:
- Undo the change —
Ctrl/Cmd + Z - Provide more context — Share more of your code
- Fix one at a time — Address errors sequentially
- Manual fix — Sometimes hand-editing is faster
Chat Issues
Section titled “Chat Issues”Messages Not Sending
Section titled “Messages Not Sending”Symptoms:
- Send button doesn’t respond
- Message stays in input box
Solutions:
- Check credits — Ensure you have credits available
- Check connection — Network issues prevent sending
- Refresh page — Reload the editor
- Try shorter message — Very long messages may timeout
Chat History Lost
Section titled “Chat History Lost”Symptoms:
- Previous messages disappeared
- Chat tabs are empty
Solutions:
- Check correct tab — You may have switched chats
- Refresh page — History loads from server
- Session expired — Log in again
- Browser issue — Try incognito/private mode
Context Not Attaching
Section titled “Context Not Attaching”Symptoms:
- Attachments don’t appear in context area
- AI doesn’t seem to see attached code
Solutions:
- Verify attachment — Check the context area shows the item
- Re-share code — Remove and re-add the attachment
- Check token budget — Large context may be truncated
- Explicitly reference — Tell AI to look at the attachment
Performance Issues
Section titled “Performance Issues”Editor is Slow or Laggy
Section titled “Editor is Slow or Laggy”Symptoms:
- Typing has noticeable delay
- Scrolling is choppy
- Actions take long to respond
Solutions:
- Disable auto-validation — Reduces background activity
- Close other tabs — Free up browser resources
- Reduce script size — Very large scripts impact performance
- Try different browser — Chrome/Edge typically work best
High Memory Usage
Section titled “High Memory Usage”Symptoms:
- Browser becomes unresponsive
- System memory warning
Solutions:
- Refresh the page — Clears accumulated memory
- Close unused chat tabs — Long histories consume memory
- Clear old attachments — Remove stale context
- Reduce date ranges — When using report context
Integration Issues
Section titled “Integration Issues”Report Won’t Load in Editor
Section titled “Report Won’t Load in Editor”Symptoms:
- “Open in AI Editor” does nothing
- Report doesn’t appear in context
Solutions:
- Save the report first — Only saved reports can be attached
- Check navigation — Report should load automatically
- Manual attachment — Use the 📊 button to find the report
- Refresh and retry — Page state may be stale
TradingView Username Not Working
Section titled “TradingView Username Not Working”Symptoms:
- Validation behaves differently than expected
- Private indicators not recognized
Solutions:
- Verify username — Check spelling in Account Settings
- Public profile required — Private profiles may not work
- Update settings — Ensure changes are saved
Getting Help
Section titled “Getting Help”When to Contact Support
Section titled “When to Contact Support”Contact support if you experience:
- Persistent errors not resolved by troubleshooting
- Data loss (missing scripts or chat history)
- Billing or credit issues
- Security concerns
Information to Include
Section titled “Information to Include”When reporting issues:
- Description — What happened vs. what you expected
- Steps to reproduce — How to trigger the issue
- Error messages — Exact text of any errors
- Browser & OS — Your system details
- Screenshots — Visual evidence if applicable
Support Channels
Section titled “Support Channels”- Email: support@algotrade.ai
- Discord: Community support channel
- Documentation: You’re already here!
Related Sections
Section titled “Related Sections”- Quick Start — Getting started guide
- AI Chat Panel — Chat best practices
- Code Validation — Validation details