Manual
We Made It Easy, Just for You.
Getting Started
Welcome to Pine Script AI Generator – your AI-powered tool to transform natural language trading strategies into ready-to-use Pine Script code for TradingView. Whether you're a beginner or a pro, this guide walks you through how to use the platform.
1. Login
Before generating multiple scripts, you'll need to have an account.
- Click on login button and enter your credentials of your already made account. If you are new to the platform click register and enter your details.
- You can also use your google account to login.
Once you're in, you'll land on your personal dashboard where you can start crafting trading strategies instantly.
2. How to Enter a Prompt
On your dashboard, you'll see a large input box. This is where you describe your trading idea in plain English. You don't need to know any Pine Script — just explain your strategy naturally.
Examples:
- "Buy when 50 EMA crosses above 200 EMA and RSI is below 30."
- "Short when MACD crosses down and volume is decreasing."
Once you're done, click the "Generate" button. The AI will take a few seconds to understand your logic, and then return clean, ready-to-use Pine Script code.
Tips for better prompts:
- Be specific about your indicators, timeframes, and entry/exit conditions.
- Mention Stop Loss / Take Profit if applicable.
- Include timeframe logic if needed (e.g. "on the 1-hour chart").
3. What Happens After You Submit a Prompt?
After clicking Generate, the AI processes your input and converts it into Pine Script v5 code.
This output appears right below the prompt box. The script is:
- Fully formatted and ready to paste into TradingView.
- Commented for better understanding.
- Highlighted in a clean code viewer for readability.
You can immediately copy the code, or regenerate it if you want a variation or correction.
4. How to Debug the Code
While the AI does its best to generate accurate Pine Script, there may be occasional issues due to the complexity of trading logic.
- Use the AI's inline comments to understand the script's structure, so you can identify where things might be breaking.
- Even if errors occur, most are minor and quick to fix — think of it like fine-tuning a strategy, not starting from scratch.
- The debugging process is straightforward, and with a little testing inside TradingView, your strategy will be up and running in no time.
5. Saving Your Scripts (Pro & Business Plans)
If you're on a Pro or Business plan, you can save your generated scripts for later. After generation, click the "Save Script" button. You'll be able to:
- Name your script
- Tag it for organization
- Return later to re-generate or edit it
This makes it easy to build a library of strategies over time — without starting from scratch every session.