Skip to content
Algo Trade Analytics Docs

AI Chat Panel

Basic & Pro Plans

The AI Chat Panel is your direct line to a Pine Script expert. The assistant is specifically trained on Pine Script v6, TradingView’s platform, and Algo Trade Analytics webhook standards.


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ [Chat 1] [Chat 2] [+] β”‚ ← Chat Tabs
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Context: RSI Strategy.pine (full) β”‚ ← Active Context
β”‚ report-backtest-001 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚
β”‚ User: Create an RSI strategy... β”‚
β”‚ β”‚ ← Message History
β”‚ AI: Here's a Pine Script strategy... β”‚
β”‚ β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ [πŸ“Ž] [πŸ“Š] Type your message... [Send] β”‚ ← Input Area
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Mode: [Agent β–Ό] Model: [GPT-5 Codex β–Ό] β”‚ ← Settings
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

In Agent mode, the AI:

  • Actively suggests code changes
  • Returns diffs that can be applied directly
  • Modifies your script based on requests

Best for:

  • Generating new code
  • Fixing errors
  • Refactoring existing code

In Answer mode, the AI:

  • Provides explanations and guidance
  • Does not modify your code directly
  • Acts as a consultant rather than an editor

Best for:

  • Learning Pine Script concepts
  • Understanding existing code
  • Getting recommendations without changes

Click + to create a new chat conversation.

Why use multiple chats:

  • Keep different topics separate
  • Maintain focused context per conversation
  • Reference old conversations while starting new ones

Click any chat tab to switch. Each chat maintains its own:

  • Message history
  • Context attachments
  • Session state

Double-click a chat tab name to rename it. The first message often becomes the default name.


Good prompt:

Create an EMA crossover strategy for BTCUSD on the 1-hour chart:
- Fast EMA: 9 periods
- Slow EMA: 21 periods
- Entry: Fast crosses above slow
- Exit: Fast crosses below slow
- Include webhook alerts for Algo Trade Analytics

Why it works:

  • Specific timeframe and symbol
  • Clear parameters
  • Defined entry/exit logic
  • Integration requirement

Good prompt:

Fix this TradingView error:
Line 23: Could not find function or function reference 'security'
Here's my code context:
- I'm trying to get the daily close price
- Using Pine Script v6

Why it works:

  • Includes the exact error message
  • Provides line number
  • Explains the intent

Good prompt:

Explain what this Pine Script code does, especially:
1. What is the `var` keyword doing?
2. Why are there two alertcondition() calls?
3. What does the JSON payload contain?

Why it works:

  • Asks specific questions
  • References particular elements
  • Seeks understanding, not just changes

Your messages appear on the right side with:

  • Timestamp
  • Any attached context items
  • The full message content

AI responses include:

  • Text explanation β€” What the AI is suggesting and why
  • Code blocks β€” Highlighted Pine Script code
  • Diff blocks β€” Showing changes to apply
  • Reasoning trail β€” (If using reasoning models) The AI’s thought process

The AI automatically has access to:

Your currently selected editor tab is always visible to the AI.

Items you explicitly share:

  • Code selections
  • Full script tabs
  • Analysis reports
  • Images

The last 10 messages provide context for the current request.


  • Enter β€” Send message (single line)
  • Shift + Enter β€” New line (multi-line input)
  • Ctrl/Cmd + Enter β€” Send message (from anywhere)

If the AI is taking too long or going in the wrong direction:

  • Click the Stop button that appears during generation
  • The partial response is preserved

When the AI returns code suggestions:

Accepts the AI’s changes and applies them to your script.

Rejects the changes and clears the diff viewer.

Copies the suggested code to your clipboard without applying it.


Instead of…Try…
”Make it better""Add a trailing stop loss of 2%"
"Fix the bug""Fix the undefined variable error on line 15"
"Add alerts""Add webhook alerts that send JSON to Algo Trade Analytics”

When asking about specific code:

  1. Select the relevant code in the editor
  2. Click β€œShare Selection”
  3. Ask your question

This ensures the AI focuses on exactly what you’re asking about.

Build your strategy in stages:

  1. Generate basic structure
  2. Add entry logic
  3. Add exit logic
  4. Add risk management
  5. Add alerts
  6. Optimize
  • Generating/editing code β†’ Agent mode
  • Understanding/learning β†’ Answer mode

Opens options to attach:

  • Current script tab
  • Selection from editor
  • Image file
  • Analysis report

Quick access to attach analysis reports from your Backtest vs Alerts or Alerts vs Fills analyses.