AI PineScript generatorDescribe the trade. Pip writes the Pine Script.

Pip, TraderFrame’s AI assistant, writes the setup you describe as a Pine v6 script, and our own engine checks every line before you see it. Replay it free on your bot’s own chart, publish a version and choose it on a bot, and your bot trades it under its own size, exits and limits.

  • Paste in from TradingView
  • Copy back out
  • No TradingView webhook needed

On Standard and up. The 7-day trial covers pasting your own TradingView script, checking it, replaying it, publishing it and running it on a bot. Pip starts with the plan’s agent credits when the trial ends, or choose Pay now at checkout to use Pip today.

Illustrative replay, fictional figures

How it works

From one sentence to a bot that trades it

Writing, checking, replaying and publishing happen in the Build window: the chat, the script, the chart and the script’s settings, with your bot’s exits shown beside them. Nothing trades until you publish a version and choose it on a bot, in its Trade Agent panel.

  1. 01

    Say it in plain words

    Describe the setup, tap a starter, or give Pip a chart snapshot, a file or a link to read. When it can’t tell what you mean, it asks one short question.

  2. 02

    Every line checked

    Our engine reads the script before you see it. Every number that matters becomes an input with the script’s own minimum and maximum; pin the ones Pip must never move.

  3. 03

    Replay it free

    Run it on your bot’s own candles, change the script and run again. Every Run is kept with the script that made it, so you can tick two and compare.

  4. 04

    Publish, then choose it on a bot

    Freeze a version with a short note. On a bot, choose the agent in its Trade Agent panel, and it runs the script at every close of its timeframe.

Pine Script checker

A Pine Script checker that reads every line

Our own Pine-compatible engine reads each line Pip writes and each line you paste from TradingView, and tells you which ones run differently here.

Paste v4, v5 or v6, free

Paste into the chat’s Paste a script box or straight into the Script tab. Checking costs nothing. Your text stays as you pasted it; a v6 rewrite is a Pip request.

What runs differently is marked

request.security reads our own candles for the same symbol; other symbols and lower timeframes aren’t fed yet. A strategy.exit’s stop and target count only when you replay the script’s own orders, and trailing ones not at all: in your bot’s replay and live, its Exit panel owns stops and targets.

Fix with Pip touches only those lines

Pip rewrites just the lines that won’t run, then checks the script again. Fixing uses agent credits (2 left to start), even when no change applies cleanly. If a line Pip writes won’t run, Pip gets one more try before you see it.

Back test

See how your bot would have traded it

Back test the script the way your bot would trade it. On a MetaTrader 5 bot on market execution, with a take profit and stop loss in its Exit panel, Replay trades the script’s signals with your bot’s size, martingale or compounding steps and Exit panel, on your broker’s own history. It’s free, up to a year back as far as your terminal holds (90 days on 1-minute bars), and long replays run in the background.

How this was replayed

Traded as Gold Demo MT5 would: the script’s signals, your bot’s Exit panel, size and ladder, over the shown window. 23 of the trades are the bot’s own re-entries after a loss. 14 signals were passed over because a trade was open, as live.

  • Entries fill at the close of the bar that signalled; only the Exit panel closes a trade, and signals while a trade is open are rejected — as the live bot does.
  • Exits: your Exit rule: take profit 800 points, stop loss 500 points (8.00 / 5.00 in price); trailing: 400100 points; profit locks at 400 points (the first trail step), the take profit is the big move. A bar that touches both the stop and the target counts as the stop.
  • No spread or commission on forex history: the candles are mid/bid prices.
  • This bot chases: after a loss it re-enters itself at the next bar’s open, same side, next step, up to 2 in a row before holding for the script’s next signal. 23 of the 66 trades here are chases the bot placed on its own after 43 signals; 2 times the ladder lost its last rung and reset to base.
  • The bot’s daily limits and schedule aren’t applied in this replay yet.

Where the candles come from

MetaTrader 5, any brokerYour broker’s own candles, from your MetaTrader terminal through the TraderFrame EA. Keep MetaTrader open with the EA running.
BinanceBybitOKXBitgetKuCoinHyperliquid
Crypto perpetualsThe exchange’s own public candles for the perpetual your bot trades.

Beyond the editor

Everything around the script

Show Pip a chart, a file or a link

Snapshot the chart, upload a PDF or a CSV of your trades, add a link, or drop in a screenshot of a setup and ask for an indicator. Pip reads it with agent credits.

Run Pip on your own AI key

Connect a key from Anthropic, OpenAI, Google, xAI, Moonshot, DeepSeek, Mistral or Alibaba, or any OpenAI-compatible host, and Pip runs on it. On Standard and up; not during a free trial.

  • One model answers every message
  • No agent credits, and no 30-a-day limit
  • Your provider bills you directly

Indicators trade too

An indicator needs no strategy code: its labels, shapes, alertcondition and alert() calls become signals, and you set each one to Buy, Sell or Ignore.

Scripts that import libraries

jdehorty’s MLExtensions and KernelFunctions are built in. For any other library, paste its source once from TradingView and it’s kept for every trader after you.

No webhook, no TradingView plan

A published script runs on our side at every close of its timeframe. No TradingView alert, webhook or paid TradingView plan is needed to trade it.

Every run kept, two side by side

Each Run and Replay is kept with the script that made it, and with your words when Pip wrote it. Tick two to see what changed in the script, and what the change did on the same window.

Publishing

Publish a version. It never changes once it’s out.

Every version is frozen with its script and settings, and with the run you published it on when you ran it first: none can be edited or deleted, and an earlier one can run again from Versions. A published version only says when to buy or sell. Each signal then goes through your bot like any other signal, so the bot’s own rules below still apply.

  • One trade at a time
  • Its size and ladder
  • Its Exit rule
  • Daily limits
  • Filters and schedule
  • Prop-firm guard (MT5)
  • Your plan’s monthly trades

On Suggest, the bot asks you first and the proposal waits five minutes; on Enter, it places the trade within its limits. Pip never places a trade from the chat.

Tuning stays inside the script’s bounds

Replay a tuning to see the script tuned against fixed settings, then use it or not. Live tuning is off until you switch it on, and it needs a published version on a bot set to Signal + Pip. It moves only unpinned inputs inside the script’s own bounds, and your bot’s stop and target stay as set.

Run Pine Script on MetaTrader 5 and crypto perpetuals

Forex and gold on any MetaTrader 5 broker through the TraderFrame EA, and Binance, Bybit, OKX, Bitget, KuCoin and Hyperliquid perpetuals. No TradingView alert, webhook or paid TradingView plan needed.

MetaTrader 5Forex and gold, any broker, through our EA
Binanceperpetuals
Bybitperpetuals
OKXperpetuals
Bitgetperpetuals
KuCoinperpetuals
Hyperliquidperpetuals

What it costs

Checking and replaying are free. Writing uses credits.

The generator is on Standard and up. Agent credits come with the plan; on your own AI key the chat uses none.

Always free
Pasting and checking a script
Run and Replay, including long background replays
Live tuning
Running a published version on your bot
Uses agent credits
Writing, changing or fixing a script, at what it costs (a fix that can’t apply is still charged)
Pip reading a chart, file, link or image
Messages past the 30 a day Pip answers free on a paid plan
A published script’s trades count toward your plan’s monthly trades.Extra credit packs start at 100 for $15 and never expire.
Plans with the generator
Standard$59 / mo2 agents150 agent credits a month
Pro$99 / mo4 agents400 agent credits a month
Ultimate$179 / mo10 agents1,000 agent credits a month

Each script you build lives in an agent, with its versions and runs. A 7-day trial includes the Build window but no agent credits or free messages, and credit packs open when it ends. Choose Pay now at checkout to use Pip today.

Questions

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 every line with our own engine, replays it on your bot’s own candles, and your bot can trade it once you publish it and choose it on the bot.

Which Pine Script version does it write?

Pine v6: an indicator() when you want something to look at, or a strategy() when you want entries. It reads v4, v5 and v6 scripts you paste. On TraderFrame your bot’s Exit panel owns the exits.

Can it convert my v4 or v5 script to v6?

It reads v4, v5 and v6 as you paste them, free, and marks what runs differently. Pip rewrites a short script as v6 for agent credits; a script of 40 lines or more is changed line by line, so it keeps its version line.

Can I use the script on TradingView?

Yes. Pip writes standard Pine v6 text you can select and paste into TradingView’s Pine Editor. We check it with our own engine, not TradingView’s, so TradingView may still flag the odd line.

Do I need TradingView webhooks or a paid TradingView plan?

No. A published script runs on our side at every close of its timeframe, so no TradingView alert, webhook or paid TradingView plan is needed to trade it. The TradingView webhook signal source is a separate feature.

Can I paste my own TradingView script?

Yes. Use Paste a script from the chat’s plus menu, or paste it straight into the Script tab. Checking it is free, and our engine marks any line that runs differently here. Fix with Pip rewrites just the lines that won’t run, with agent credits.

What about scripts that import libraries?

jdehorty’s MLExtensions (v2 and v3) and KernelFunctions (v2) are built in. For any other library, the Script tab asks you to open it on TradingView, copy its source code and paste it in; it’s kept for every trader after you.

How far back can I back test?

Up to a year on 5-minute bars and longer, and 90 days on 1-minute bars: on MetaTrader 5 from your broker’s own candles, as far back as your terminal holds; on crypto from the exchange’s public candles, as far as it serves. The bot needs market execution and a take profit and stop loss in its Exit panel. Long replays run in the background, and you get an in-app notification when one is ready.

Can I back test an indicator, not just a strategy?

Yes. An indicator’s labels, shapes, alertcondition and alert() calls become signals. Set each one to Buy, Sell or Ignore under IT TRADES ON, then Run or Replay it like a strategy.

Does Pip place trades for me?

No. Your bot trades a published version. On Suggest it asks you first, with Place it or Skip; on Enter it places the trade within your bot’s limits. Pip never places a trade from the chat.

Which markets can a script trade?

Forex and gold on any MetaTrader 5 broker through our EA, and crypto perpetuals on Binance, Bybit, OKX, Bitget, KuCoin and Hyperliquid.

How much does it cost?

The generator is on Standard and up, with 150 agent credits a month (Pro 400, Ultimate 1,000). On a paid plan Pip answers up to 30 messages a day free; writing, changing or fixing a script uses agent credits, at what it costs. Pasting, checking, running and replaying are free. On your own AI key the chat uses no credits. Free trials include neither agent credits nor the 30 free messages: choose Pay now at checkout to use Pip today.

Describe it. Replay it. Then let your bot trade it.

On Standard and up. Free trials don’t include agent credits or free messages.

TradingView and Pine Script are trademarks of TradingView, Inc. TraderFrame is not affiliated with TradingView.