Skip to content
Algo Trade Analytics Docs

Troubleshooting

Basic & Pro Plans

This guide covers common issues you may encounter with the Pine Script AI Editor and how to resolve them.


Symptoms:

  • AI returns “I can help with that” without code
  • Response doesn’t address your question
  • No diff is generated

Solutions:

  1. Be more specific — Include exact requirements
  2. Provide context — Attach your current code
  3. Use Agent mode — Switch from Answer to Agent mode
  4. Start fresh — Create a new chat tab

Symptoms:

  • AI explains changes but no Apply button appears
  • Response contains code blocks but no diff viewer

Solutions:

  1. Request diffs explicitly: “Show me a unified diff of the changes”
  2. Ask for full code: “Generate the complete updated script”
  3. Check mode — Ensure you’re in Agent mode, not Answer mode

Symptoms:

  • Generated code has syntax errors
  • Logic doesn’t match your description
  • Pine Script version is wrong

Solutions:

  1. Run validation — Catch syntax errors immediately
  2. Use Fix with AI — Let AI correct its own mistakes
  3. Provide examples — Show working code as reference
  4. Specify version: “Use Pine Script v6 syntax"

Symptoms:

  • Request fails with credits error
  • Chat stops responding

Solutions:

  1. Check your balance in the editor footer
  2. Purchase additional credits
  3. Use a cheaper model (GPT-5 Mini) for simple questions
  4. Reduce context attachments to lower costs

Symptoms:

  • Changes are lost after refresh
  • Tab indicator never shows “saved”

Solutions:

  1. Check auto-save — Enable in settings
  2. Manual save — Press Ctrl/Cmd + S
  3. Check connection — Ensure you’re online
  4. Refresh page — Reload and check if changes persisted

Symptoms:

  • Spinner shows indefinitely
  • “Loading scripts” never completes

Solutions:

  1. Refresh the page — Simple reload often fixes this
  2. Check network — Ensure stable connection
  3. Clear cache — Browser’s cached data may be corrupted
  4. Contact support — If issue persists

Symptoms:

  • Ctrl/Cmd + Z does nothing
  • Changes can’t be reverted

Solutions:

  1. Click in editor — Focus must be on the code editor
  2. Check history — Some actions clear undo history
  3. Use version control — Create copies before major changes

Symptoms:

  • Loading spinner shows indefinitely
  • “Validating…” message persists

Solutions:

  1. Wait longer — Large scripts take more time
  2. Check network — TradingView API requires connectivity
  3. Retry manually — Click Validate again
  4. 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:

  1. Runtime errors — Only visible with chart data
  2. Series length — Issues with specific data conditions
  3. Version mismatch — Different Pine Script versions

Solutions:

  1. Run the script on a TradingView chart to see full errors
  2. Fix runtime errors that only appear with actual data
  3. Ensure //@version=6 header is present

Symptoms:

  • AI fix introduces different errors
  • Validation shows more issues after fix

Solutions:

  1. Undo the changeCtrl/Cmd + Z
  2. Provide more context — Share more of your code
  3. Fix one at a time — Address errors sequentially
  4. Manual fix — Sometimes hand-editing is faster

Symptoms:

  • Send button doesn’t respond
  • Message stays in input box

Solutions:

  1. Check credits — Ensure you have credits available
  2. Check connection — Network issues prevent sending
  3. Refresh page — Reload the editor
  4. Try shorter message — Very long messages may timeout

Symptoms:

  • Previous messages disappeared
  • Chat tabs are empty

Solutions:

  1. Check correct tab — You may have switched chats
  2. Refresh page — History loads from server
  3. Session expired — Log in again
  4. Browser issue — Try incognito/private mode

Symptoms:

  • Attachments don’t appear in context area
  • AI doesn’t seem to see attached code

Solutions:

  1. Verify attachment — Check the context area shows the item
  2. Re-share code — Remove and re-add the attachment
  3. Check token budget — Large context may be truncated
  4. Explicitly reference — Tell AI to look at the attachment

Symptoms:

  • Typing has noticeable delay
  • Scrolling is choppy
  • Actions take long to respond

Solutions:

  1. Disable auto-validation — Reduces background activity
  2. Close other tabs — Free up browser resources
  3. Reduce script size — Very large scripts impact performance
  4. Try different browser — Chrome/Edge typically work best

Symptoms:

  • Browser becomes unresponsive
  • System memory warning

Solutions:

  1. Refresh the page — Clears accumulated memory
  2. Close unused chat tabs — Long histories consume memory
  3. Clear old attachments — Remove stale context
  4. Reduce date ranges — When using report context

Symptoms:

  • “Open in AI Editor” does nothing
  • Report doesn’t appear in context

Solutions:

  1. Save the report first — Only saved reports can be attached
  2. Check navigation — Report should load automatically
  3. Manual attachment — Use the 📊 button to find the report
  4. Refresh and retry — Page state may be stale

Symptoms:

  • Validation behaves differently than expected
  • Private indicators not recognized

Solutions:

  1. Verify username — Check spelling in Account Settings
  2. Public profile required — Private profiles may not work
  3. Update settings — Ensure changes are saved

Contact support if you experience:

  • Persistent errors not resolved by troubleshooting
  • Data loss (missing scripts or chat history)
  • Billing or credit issues
  • Security concerns

When reporting issues:

  1. Description — What happened vs. what you expected
  2. Steps to reproduce — How to trigger the issue
  3. Error messages — Exact text of any errors
  4. Browser & OS — Your system details
  5. Screenshots — Visual evidence if applicable
  • Email: support@algotrade.ai
  • Discord: Community support channel
  • Documentation: You’re already here!