What's the difference between a TradingView script's filename and display name?
What’s the difference between a TradingView script’s filename and display name?
Section titled “What’s the difference between a TradingView script’s filename and display name?”TL;DR
The filename is how TradingView stores your script in the Pine editor; the display name (title/shorttitle) is what users see in dialogs. They can be different—and often are.
At a Glance
Section titled “At a Glance”| Filename | The .pine file stored in your personal library. |
| Display name | The title (and optional shorttitle) defined in code. |
| Used to… | Filename: open scripts, manage versions. \ Display name: add indicators/strategies, publish scripts. |
Quick Actions
Section titled “Quick Actions”- Open Pine Editor and check the script name in the tab.
- Update
strategy(title=...)orindicator(title=...)to match the filename. - Rename the file via Save As… if the names diverge.
Why It Matters
Section titled “Why It Matters”If your filename and display name drift apart, you’ll search the Indicator dialog for “My Strategy” while the script is saved as script1.pine. Aligning them makes personal libraries manageable and avoids confusion when publishing.
File vs Display Name in Practice
Section titled “File vs Display Name in Practice”//@version=5strategy(title="Breakout Dashboard", shorttitle="Breakout DB", overlay=true)- Filename: whatever you saved in the Pine editor, e.g.,
breakout-dashboard.pine. - Indicator dialog search: looks for the filename (
breakout-dashboard). - On-chart title & public listing: shows the display name (
Breakout DashboardorBreakout DB).
Best Practices
Section titled “Best Practices”- Name the file right away
Use Save As… and choose a filename that mirrors the display name. - Update both when you rename
Change thetitle/shorttitleand immediately rename the file to match. - Use prefixes for personal organisation
e.g.,indicators/ma-colorizer.pine,strategies/breakout-db.pine. - Before publishing
Ensure the display name is final—users will see it in the public library.
Common Workflows
Section titled “Common Workflows”| Task | Filename used? | Display name used? |
|---|---|---|
| Opening a script in Pine editor | ✅ | ❌ |
| Searching “Indicators & Strategies” dialog | ✅ | ❌ |
| Adding to a chart from “My Scripts” | ✅ | ✅ (shown once loaded) |
| Publishing to the TradingView community | ❌ | ✅ |
| Sharing screenshots/videos | ❌ | ✅ |
Quick Checklist
Section titled “Quick Checklist”- Does the Pine editor tab match the code’s
title? - Have you given the script a unique short title (optional but helpful on charts)?
- Are you using folder prefixes to group scripts (e.g.,
education/…)?
Key Takeaways
Section titled “Key Takeaways”- Treat the filename as the system name—used for storage and search.
- Treat the display name as the marketing name—used on charts and public pages.
- Align the two to avoid confusion and make collaboration easier.
Keep Going
Section titled “Keep Going”- Open AI Editor to tidy up names across your scripts
- Review publishing guidelines if you plan to share your work
- Browse Strategy Examples for naming inspiration
Adapted from tradingcode.net, optimised for Algo Trade Analytics users.