Edgoro
AI · Free tool

Free AI Pine Script Generator

Describe an indicator in plain English and get complete Pine Script v6 code for TradingView, with alerts and install steps.

0 / 1,500

Say what it should plot, when it should signal and which alerts you want. Missing settings get common defaults, stated in the answer.

3 free scripts a month, no sign-up.

Trading involves substantial risk of loss and is not suitable for every investor. Edgoro is a software tool, not a broker or financial adviser: nothing it produces is investment advice, and past or backtested performance does not guarantee future results.

What the Pine Script generator does

Describe the indicator you want the way you would explain it to a friend, and the generator writes the complete TradingView script in Pine Script version 6: every setting as an input you can change, an alert for each signal, and the steps to add it to your chart. It runs the same instructions as Edgoro's indicator builder, so what you get here is what members get on their first message.

No account is needed. You get 3 free scripts a month.

How to use it

  1. Describe the indicator in up to 1,500 characters: what it plots, when it signals, and which alerts you want.
  2. Click Write my Pine Script and wait a few seconds while the script streams in.
  3. Copy the code block, open the Pine Editor at the bottom of a TradingView chart, paste it, click Save, then Add to chart.
  4. Check that it compiles and that the plots and signals look right on a few charts before you rely on it.

Write a description the AI can follow

The more exact the description, the fewer assumptions the script has to make:

Vague:     show me when the trend changes

Precise:   plot the 50 and 200 EMA on the chart; when the 50
           crosses above the 200, draw a green triangle below
           the bar and fire an alert; mirror it for shorts
  • Name the indicators and their settings: "RSI 14", "20-period Bollinger Bands at 2 standard deviations".
  • Say when a signal counts: at the close of the bar, or as soon as price touches the level.
  • Say how to show it: a line, a background color, a label, a table in a corner.
  • List the alerts you want: each one becomes an alert condition you can pick in TradingView.

More tips in how to describe a trading strategy to AI.

What you get

  • A one-line summary of what the script does.
  • The complete script, starting with //@version=6, never cut short.
  • How it works: the logic in plain English.
  • Install on TradingView: the steps from the Pine Editor to an alert.
  • Ideas to refine: three changes you can ask for next.

The script avoids repainting (no future data in request.security) and uses only Pine v6 syntax. If TradingView still reports an error, paste the code and the message into the free Pine Script error fixer.

Free generator or Edgoro's builder

The free generator answers one description at a time. In Edgoro's builder you can refine the same script in a conversation ("add a volume filter", "make it a strategy with a 1.5 ATR stop"), keep every version in your library, backtest strategies, and build the same logic as an MT5 Expert Advisor that is compiled in MetaEditor before you get it.

Limits

  • TradingView only. This tool writes Pine Script. MT5 Expert Advisors and crypto bots are made in Edgoro's bot builders.
  • No advice. It writes code from your rules; it never says whether an idea is profitable. Test any signal on historical data and on a demo account first.
  • Check before you trade. AI-written code can contain mistakes. Read the explanation, look at the signals on several charts, and keep risk small until you trust it.

Frequently asked questions

Is the Pine Script generator really free?

Yes. You can generate 3 scripts a month without an account. Each one is a complete Pine Script v6 indicator or strategy with alerts and install steps.

Will the script compile on TradingView?

It is written for Pine Script v6 with strict rules (inputs, no deprecated functions, no repainting) and usually compiles on the first try. If TradingView reports an error, the free Pine Script error fixer explains it and returns a corrected version.

Can it write strategies with backtests?

Yes. Ask for a strategy and it uses strategy() with initial capital, position sizing and commission so TradingView's Strategy Tester can backtest it. Edgoro does not judge whether the results are good: that is up to your testing.

Can it write MT5 Expert Advisors or Python bots?

Not this free tool, which writes Pine Script only. Edgoro's bot builders write MT5 Expert Advisors in MQL5, compiled in MetaEditor before delivery, and Python crypto bots for Binance, Bybit and OKX.

Who owns the code?

You do. Copy it, change it and publish it on TradingView under your own name if you like.

Related guides

All guides
All free tools

Let AI build the indicator behind your numbers.

Turn the rules you just calculated into a TradingView indicator, an MT5 bot or a crypto bot. Instant access, with a 7-day money-back guarantee.