Edgoro
TradingView · Pine Script v6

AI Pine Script generator for TradingView indicators and strategies

Describe the indicator you want in plain English: the condition, the filter, the alert. Edgoro writes the complete Pine Script v6 code, explains how it works and tells you how to add it to your chart. Ask for a change and you get a new version, with the earlier ones kept in your library.

It works for indicators that mark signals and levels, and for strategies you can test in TradingView's Strategy Tester. No coding needed, and the code is yours.

  • Complete Pine Script v6 scripts
  • Alerts and install steps included
  • Included in both plans

Free Pine Script generator

Describe an indicator and get the complete Pine Script v6. No account needed, 3 free scripts a month.

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.

How it works

  1. Describe it

    Write the rules the way you'd explain them to another trader: market, timeframe, entry, exit, filters and the alerts you want. Where something is ambiguous, Edgoro states the assumption it made instead of asking a list of questions.

  2. Get the complete script

    The answer opens with one sentence on what the script does, then the full code in a single block (never a fragment), a plain-English walkthrough and the steps to install it on TradingView.

  3. Add it to your chart

    Open the Pine Editor, paste, save and add to chart. If TradingView reports an error, paste the exact message into the same chat and Edgoro returns a corrected version.

  4. Refine in plain English

    Click a suggested refinement or type your own, like "only signal in the London session". Each answer becomes a new version you can copy or download as a .pine file.

Example: an EMA crossover with a trend filter

Here's a typical request and the kind of code that comes back. The script is the EMA crossover from our free indicator library, written to the same rules Edgoro follows: v6 syntax, an input for every setting, a trend filter you can switch off and one alertcondition() per signal.

RequestPlot a 9 and a 21 EMA, mark crosses only in the direction of the 200 EMA, and add alerts for both signals.

Pine Script v6
//@version=6
indicator("EMA crossover with trend filter", shorttitle = "EMA cross", overlay = true)

src      = input.source(close, "Source")
fastLen  = input.int(9, "Fast EMA", minval = 1)
slowLen  = input.int(21, "Slow EMA", minval = 2)
useTrend = input.bool(true, "Only signal in the direction of the trend EMA")
trendLen = input.int(200, "Trend EMA", minval = 2)

fast  = ta.ema(src, fastLen)
slow  = ta.ema(src, slowLen)
trend = ta.ema(src, trendLen)

crossUp   = ta.crossover(fast, slow)
crossDown = ta.crossunder(fast, slow)
longOk    = not useTrend or close > trend
shortOk   = not useTrend or close < trend

buySignal  = crossUp and longOk
sellSignal = crossDown and shortOk

fastPlot = plot(fast, "Fast EMA", color = color.new(color.teal, 0), linewidth = 2)
slowPlot = plot(slow, "Slow EMA", color = color.new(color.orange, 0), linewidth = 2)
plot(useTrend ? trend : na, "Trend EMA", color = color.new(color.gray, 0))
fill(fastPlot, slowPlot, color = fast > slow ? color.new(color.teal, 85) : color.new(color.orange, 85), title = "Cross fill")

plotshape(buySignal, "Bullish cross", shape.triangleup, location.belowbar, color.new(color.teal, 0), size = size.small)
plotshape(sellSignal, "Bearish cross", shape.triangledown, location.abovebar, color.new(color.orange, 0), size = size.small)

alertcondition(buySignal, "EMA bullish cross", "Fast EMA crossed above slow EMA on {{ticker}} ({{interval}}) at {{close}}")
alertcondition(sellSignal, "EMA bearish cross", "Fast EMA crossed below slow EMA on {{ticker}} ({{interval}}) at {{close}}")
Excerpt of the answer: the code block. The full answer also explains each part and lists the install steps. An example of the code, not a performance claim.

From there, a follow-up such as "turn this into a strategy with a 1.5 × ATR stop and a 2R target" returns a strategy() version with initial capital, position size as a percent of equity and commission already set. Read how to build an EMA crossover strategy for what to check in the results.

Written to Pine Script v6 rules

Every script follows a fixed set of rules aimed at code that compiles in TradingView and behaves the way you expect:

  • //@version=6 on the first line, indicator() by default and strategy() when you ask for backtesting.
  • Every value you might tune is an input.*() with a title and a group, so you change settings without touching code.
  • Higher-timeframe data goes through request.security() with lookahead_off, which avoids the most common source of repainting.
  • No deprecated v4 or v5 calls such as study() or security(), and colours through color.new().
  • One alertcondition() per signal, with messages that use TradingView's real placeholders like {{ticker}} and {{close}}.
  • Within TradingView's limits, such as 500 drawings per script.

Before you see it, every script goes through Edgoro Pine Check, our own v6 checker, which fixes the common mistakes automatically and flags repainting, strategies without costs and missing alerts. You can run the same check on any script with the free Pine Script checker. Edgoro doesn't run your script on TradingView's servers, so the Pine Editor is where it gets compiled. If it reports an error, the fix is one message away.

What's included, and what isn't

Included

  • Complete Pine Script v6 indicators and strategies
  • Checked by Edgoro Pine Check before you get it, with automatic fixes
  • A plain-English explanation of how each script works
  • Install steps for TradingView, and alerts for each signal
  • One-click refinement ideas after every answer
  • A library with every version, copy and .pine download
  • Answers in the language you write in (code comments in English)
  • AI chart analysis from screenshots, in the same plan

Limits, plainly

  • Scripts run on TradingView only. MetaTrader 5 and crypto bots are a separate option.
  • Edgoro Pine Check is our own v6 checker, not TradingView's compiler: TradingView compiles the script when you add it, and you paste any error back for a fix.
  • An indicator marks signals and sends alerts. It never places trades.
  • Alert webhooks need a paid TradingView plan.
  • Strategy Tester results describe the past, not what comes next.

Who it's for

Traders with a setup but no code

You know the conditions you trade. Edgoro turns them into an indicator with alerts, so you stop staring at charts waiting for them.

Pine Script users short on time

Skip the boilerplate: inputs, plots, alerts and strategy settings come written, and you edit the part that matters.

Traders testing ideas

Turn an idea into a strategy for TradingView's Strategy Tester, check it, refine it, and keep every version.

Compared with doing it yourself or a generic AI chatbot

EdgoroDoing it yourselfA generic AI chatbot
First scriptOne request, complete scriptHours to days, depending on your Pine experienceFast; completeness depends on your prompt
Pine Script versionAlways v6Whatever you writeNot fixed: ask for v6 and check
Inputs, alerts, install stepsIn every answerYou write themOnly if you ask
ErrorsEdgoro Pine Check fixes common ones first; paste any TradingView error in the same chatDebug it yourselfPaste it back and re-explain if needed
VersionsEvery version saved, .pine downloadYour own filesScroll back through the chat

Pricing

Pine Script indicators and strategies are included in both plans: Pro Monthly at $29 a month or Lifetime at $49 once. Monthly can be cancelled anytime in Settings, and both plans include AI chart analysis. Your first purchase comes with a 7-day money-back guarantee. The indicator scripts and calculators on this site are free, without an account.

Compare the plans

Frequently asked questions

Which version of Pine Script does Edgoro write?

Pine Script version 6. Every script starts with //@version=6 and avoids deprecated v4 and v5 functions such as study() and security().

Is the Pine Script checked before I get it?

Yes. Every script goes through Edgoro Pine Check, our own Pine Script v6 checker. It catches the mistakes AI models make most often (old v4 and v5 names, v6 bool rules, removed arguments, brackets, indentation, plots inside blocks, typos) and checks what a compiler ignores: repainting lookahead, strategies without costs or exits, scripts that draw nothing, missing alerts. Problems are fixed automatically, and suggestions come with a one-click fix. It isn't TradingView's compiler: the Pine Editor compiles the script when you save it, and if it shows an error, paste the exact message into the same chat.

Can it write strategies I can backtest?

Yes. Ask for a strategy and you get strategy() code with initial capital, position size as a percent of equity and commission set, ready for TradingView's Strategy Tester. Treat the results as a description of the past.

Can I paste my own script and ask for changes?

Yes: add a filter, change an alert, turn an indicator into a strategy. Converting Pine Script to MQL5 for MetaTrader 5 happens in the bot builder, which is part of the trading bots option.

Does it work for any market?

Scripts run on any chart TradingView offers: forex, stocks, indices, crypto, commodities and futures. Mention the market and timeframe so defaults such as lengths and sessions make sense.

Do I need to know how to code?

No. Describe the rules in plain English. Every answer explains the code in plain words, and beginners get more explanation and conservative defaults when their profile says so.

Who owns the scripts?

You do. Use them, change them or publish them on TradingView.

Guide

Pine Script v6 for beginners: the concepts that make everything click

A beginner's tour of Pine Script v6: how scripts run bar by bar, series and history, inputs, plots, strategies, what changed from v5, with working examples.

Read the guide
Guide

How to add a Pine Script indicator to TradingView

Paste, save and add a Pine Script v6 indicator or strategy to your TradingView chart, then change its settings, create alerts and fix common compile errors.

Read the guide
Guide

Pine Script alerts: alertcondition() vs alert(), messages, webhooks and frequency

alertcondition() or alert()? How Pine Script v6 alerts work, dynamic and webhook messages, strategy order alerts, and the frequency that stops false alerts.

Read the guide
Free indicator

EMA crossover, with Pine Script v6 code

How the EMA is calculated, why fast/slow EMA crosses are popular, which lengths traders use, and a free EMA crossover script with a trend filter.

Get the code
Free indicator

Supertrend, with Pine Script v6 code

How Supertrend builds an ATR trailing line that flips with the trend, how traders use it for direction and stops, settings to try, and a free script.

Get the code
Free tool

Pine Script Checker

Paste a Pine Script for an instant v6 check: old v4/v5 code, syntax and scope errors, repainting, strategies without costs or exits. Free.

Open the tool
Free tool

AI Pine Script Error Fixer

Paste your Pine Script and the TradingView error: AI explains what went wrong and returns a corrected Pine Script v6 version.

Open the tool

Describe your first indicator

Answer a few questions about how you trade, choose a plan, and get your Pine Script v6 code with install steps.

Instant access after checkout. 7-day money-back guarantee on your first purchase.

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.