Pine Script v6 · indicators and strategies

AI PineScript Generator

Describe a trading strategy in plain words. Pip, our AI trading agent, writes the Pine Script, checks that it runs, back tests it on real history, and trades it on your broker.

No coding needed · works with TradingView · runs on forex, crypto futures, stock futures and options

Pip writing an Optimized Trend Tracker strategy in the Trader Frame Build window

Supported Venues

MetaTrader 5
Bybit
Binance
OKX
Bitget
Hyperliquid
Interactive Brokers

How the generator works

From one sentence to a strategy your bot trades

Every step happens in one window: the chat, the script, the chart and your bot's settings. Nothing goes live until you publish it.

Asking Pip for a strategy in plain words

Step 01

Describe the trade

Write it the way you would say it: "buy BTC when price crosses above the OTT line, sell when it crosses back under". Pip asks when it needs more.

The generated Pine Script open in the editor

Step 02

Read the Pine Script

You get the whole script, not a black box. Our engine checks it before you see it, and every number that matters is an input with bounds you set.

Back test performance of the generated strategy

Step 03

Back test it as your bot would trade

Replay real history with your bot's own size, ladder and exits, then read net profit, win rate, drawdown and every trade the script took or passed over.

Publishing the script as a new version your bots run

Step 04

Publish it to your bot

Freeze the script as a version with a note. Your bot runs it at the next candle close, and any earlier version is one click away.

Built for real trading, not demos

What makes this Pine Script generator different

Pine Script v6 you can read

Standard indicator() or strategy() code with named inputs, so you can open it in TradingView's Pine Editor too.

Checked before you see it

Our Pine engine runs every script it writes. If a line fails, Pip fixes it first, so you don't debug errors by hand.

Paste, fix or convert

Bring a script from TradingView, including older versions. Pip loads it, tells you what runs differently here, and can rewrite it for you.

Start from a chart image

Drop in a screenshot of a setup from anywhere, a file or a link, and ask Pip to turn it into an indicator.

Inputs Pip can tune

Set a range for each input and pin the ones you want fixed. Pip only tunes inside your bounds, and you can undo any change.

Your own AI model, if you like

Use TraderFrame credits, or connect your own key from OpenAI, Anthropic, Google, DeepSeek and more, and pay the provider directly.

Example

One sentence in, a working strategy out

An EMA 9/21 cross, only in the direction of the 200 EMA
  • A strategy with entries in both directions
  • Three inputs, each with a minimum and maximum
  • Checked by our engine, ready to back test
EMA 9/21 with 200 EMA filter
Pine v6 · 17 lines · reads cleanly
//@version=6
strategy("EMA 9/21 with 200 EMA filter", overlay = true, process_orders_on_close = true)
 
fastLen  = input.int(9, "Fast EMA", minval = 2, maxval = 50)
slowLen  = input.int(21, "Slow EMA", minval = 5, maxval = 100)
trendLen = input.int(200, "Trend EMA", minval = 50, maxval = 400)
 
fast  = ta.ema(close, fastLen)
slow  = ta.ema(close, slowLen)
trend = ta.ema(close, trendLen)
 
if ta.crossover(fast, slow) and close > trend
    strategy.entry("Long", strategy.long)
if ta.crossunder(fast, slow) and close < trend
    strategy.entry("Short", strategy.short)
 
plot(fast, "Fast EMA", color.orange)
plot(slow, "Slow EMA", color.teal)
plot(trend, "Trend EMA", color.gray, 2)

Markets

One script, the markets you already trade

The script only says buy or sell. Your bot's size, exits, daily limits and filters still decide every order.

Forex

Any MetaTrader 5 broker, through our Expert Advisor.

Crypto futures

Bybit, Binance, OKX, Bitget and Hyperliquid perpetuals.

Stock futures

Index futures such as MES, MNQ, ES and NQ with Interactive Brokers.

Options

Calls and puts on US stocks and ETFs with Interactive Brokers.

Why not a general chatbot?

A chatbot writes code. This writes code that trades.

What you need
General AI chatbot
Trader Frame
Checks that the script runs
You find out when you paste it
Our engine runs it first
Back test with your real sizing and exits
Not built in
Your bot's size, ladder and exits
Trades it live on your broker
Not built in
Forex, crypto futures, stock futures, options
Versions you can roll back
Copy and paste
Every publish kept, one click back

FAQ

AI PineScript generator questions

What is an AI PineScript generator?

A tool that turns a strategy you describe in plain words into Pine Script, the language TradingView uses for indicators and strategies. Ours also checks, back tests and trades the script for you.

Which Pine Script version does it write?

Pine Script v6, as an indicator() when you want something to look at or a strategy() when you want entries and exits.

Can I use the script on TradingView?

Yes. It is standard Pine Script, so you can copy it into TradingView's Pine Editor, or keep it in Trader Frame and let your bot trade it.

Do I need to know how to code?

No. Describe the trade and Pip writes the code. You can still read and edit every line if you want to.

Can I paste my own TradingView script?

Yes. Paste it into the chat. Pip loads it, checks it with our engine, tells you which lines run differently here, and can fix or convert it.

How much does it cost?

Writing a script uses agent credits, included in paid plans. On your own AI model key it uses no credits. See pricing.

Describe your strategy. Pip writes the Pine Script.

Back test it on real history, then let your bot trade it on the broker you already use.