Skip to content
Algo Trade Analytics Docs

Credits & Models

Basic & Pro Plans

The Pine Script AI Editor uses a credit-based system for AI interactions. This page explains how credits work and how to choose the right model for your task.


  1. You send a message → Credits are consumed
  2. AI processes request → Credit cost based on complexity
  3. Response generated → Cost deducted from your balance
ActionUses Credits
✅ Chat messagesYes
✅ Code generationYes
✅ Fix with AIYes
❌ Editing codeNo
❌ ValidationNo
❌ Saving filesNo

Credit cost depends on:

  • Input length — Your message + attached context
  • Output length — AI’s response size
  • Model choice — More capable models cost more

Your remaining credits appear in the chat panel footer:

Credits: 1,234 remaining

Navigate to Account Settings → AI Credits for:

  • Current balance
  • Usage history
  • Purchase options

PackageCreditsPriceBest For
20 credits20$10Small projects, testing
50 credits50$20Regular development
100 credits100$40Heavy daily use
  1. Click Buy Credits in the editor (when balance is low)
  2. Or go to Account Settings → AI Credits
  3. Select a package
  4. Complete checkout

The default model, optimized for code generation.

Strengths:

  • Best at generating Pine Script code
  • Understands complex trading logic
  • Produces accurate diffs

Best for:

  • Strategy generation
  • Bug fixing
  • Refactoring

Credit cost: Medium

Faster, more economical model.

Strengths:

  • Quick responses
  • Lower credit cost
  • Good for simple tasks

Best for:

  • Quick questions
  • Simple explanations
  • Code comments

Credit cost: Low

Advanced model with explicit reasoning.

Strengths:

  • Shows reasoning process
  • Better at complex problems
  • More thorough analysis

Best for:

  • Complex debugging
  • Strategy optimization
  • Report analysis

Credit cost: High


TaskRecommended Model
Generate a strategyGPT-5 Codex
Fix simple errorGPT-5 Mini
Explain conceptGPT-5 Mini
Complex bugGPT-5 Reasoning
Optimize from reportGPT-5 Reasoning
Quick syntax questionGPT-5 Mini
  1. Find the model dropdown below the chat input
  2. Select your preferred model
  3. All subsequent messages use the new model

  • Be concise — Shorter prompts cost less
  • Share selections — Only attach relevant code, not full scripts
  • Remove old context — Clear stale attachments
  • Simple tasks → Mini (cheap)
  • Standard tasks → Codex (balanced)
  • Complex tasks → Reasoning (expensive but thorough)

Instead of:

Message 1: "Add a stop loss"
Message 2: "Add a take profit"
Message 3: "Add a trailing stop"

Try:

"Add risk management:
1. Stop loss at 2% below entry
2. Take profit at 4% above entry
3. Trailing stop of 1.5%"

  • Yellow — Balance getting low
  • Red — Very few credits remaining
  • Error — Cannot process request

When credits are exhausted:

  • AI requests fail with an error message
  • You can still edit and save code
  • Validation continues to work
  • A prompt appears to purchase more

  • Monthly credit allocation included
  • Access to all models
  • Standard support
  • Higher monthly credit allocation
  • Priority processing
  • Extended support

Request TypeApproximate Cost
Short question5-15 credits
Code generation20-50 credits
Full strategy generation50-150 credits
Report analysis100-300 credits
Complex optimization200-500 credits

Actual costs vary based on input/output length and model.

Attached context increases costs:

AttachmentCost Impact
Code selection (small)+5-10 credits
Full script+20-50 credits
Analysis report+50-150 credits
Image+20-40 credits

Purchased credits: Never expire Plan credits: Refresh monthly (don’t accumulate)

Yes, in Account Settings → AI Credits → Usage History

The current request fails, but your conversation and code are preserved. Purchase credits and continue.

Credit purchases are typically non-refundable. Check the terms of service for details.