Pine v5 vs v6
The Indicator Creator can write in two versions of Pine Script. You pick the version in the header, and you can switch anytime.
Pick your version
There's a Pine version selector in the header of the Indicator Creator. Whatever version is selected when you send a message is the version the AI writes for that message.
📷 the Pine v5 / v6 selector in the header
Pine v5
- Stable since 2021.
- The version most tutorials, guides, and the TradingView public library use.
- Best for portability — if you want a script that plays nicely with examples you find online or that you'll share with others, v5 is the safe pick.
Pine v6
- Released in 2024.
- Adds newer capabilities, such as dynamic
request.*calls and methods on user-defined types. - Best when you want the latest language features and don't need to match older examples.
Switching versions
You can change the version whenever you like. Keep in mind:
- Each new message uses the currently selected version. Switching doesn't rewrite earlier scripts — it applies to what you send next.
- If you want an existing script converted, switch the version and then ask the AI to rewrite it in the new version.
💡 Tip: Not sure? Start with v5. It's the most widely supported, and almost everything you'll want to build works perfectly in it.
Premium
Version selection is part of the Premium Indicator Creator.
Related articles
Was this article helpful? Reach us at support@tradestacker.co.