Generate Pine Script
with AI.
Pine Script AI is in development. Join the waitlist for an editor that turns a description into TradingView indicators, strategies and alerts.
//@version=6
indicator("RSI alerts")
length = input.int(14, minval=1)
rsi = ta.rsi(close, length)
plot(rsi)
alertcondition(ta.crossover(rsi, 30),
"RSI crossed above 30")Describe it. Generate it. Deploy it.
Describe the indicator
Specify the inputs, chart markings and alerts you want.
Generate the script
The editor drafts a Pine Script v6 indicator or strategy from the prompt.
Review the logic
Check its conditions, inputs and handling of unfinished bars.
Run it on a chart
Paste the script into the TradingView Pine Editor and compile it.
Example prompts
- Create an RSI divergence indicator with alerts
- Build a scalping strategy with EMA crossover and volume filter
- Add a trailing stop loss to my existing script
- Convert this Pine v4 script to v6
Planned editor features
- Indicators
- Build chart overlays, oscillators and multi-pane indicators from a description.
- Strategies
- Define entries, exits and risk settings for the TradingView Strategy Tester.
- Debugging
- Review a compile error, a deprecated function or a signal that changes after a bar closes.
- Version migration
- Update the syntax of a Pine v4 or v5 script for v6.
- Alerts
- Generate alert conditions and webhook messages for a script.
Pine Script AI questions
When can I use the editor?
The editor is in development. Join the waitlist to hear when access opens.
What can I ask it to write?
The planned editor supports Pine Script v6 indicators, strategies and alerts. Describe the input, the condition and what should appear on your chart.
Where will I run the code?
Review the script in the TradingView Pine Editor, compile it and add it to a chart. Use the Strategy Tester for scripts that define entries and exits.
Join the Pine Script AI waitlist
Leave your email to hear when the editor opens.