Scripts

Your code, trading on your own account.

Paste it once, it trades every close

Paste the Pine-compatible script you already use. It runs on our own engine at every candle close and sends buy and sell to your bot. No AI is asked and no credits are spent, on any plan.

Build window +

Rather describe it in words? Pip writes the script for you on Agents

Scripts / EMA 5/13 cross Built in v1 on 1 bot Binance-BTCDemo Replay 30 days Make a copy
BTC/USDT Indicators · 2 SIMULATED REPLAY
BTCUSDT.P · 1m · BinanceO 60,439.3 H 60,449.1 L 60,426.9 C 60,441.9
EMA 5EMA 13
SellBuySellBuySell 60,40060,600 04:3904:5505:1105:2705:4305:59 60,441.9
EMA 5/13 cross · 3,391 trades, as Binance-BTC wouldlast 30 days · 41,540 bars
ScriptPerformanceTrades 3,391Runs 1
EMA 5/13 crossv1 · 10 linesRunCOMPILED · 0.2 SPine v5
//@version=5
indicator("EMA 5/13 cross", overlay=true)
fast = ta.ema(close, 5)
slow = ta.ema(close, 13)
plot(fast, "EMA 5", color=color.orange)
plot(slow, "EMA 13", color=color.purple)
if ta.crossover(fast, slow)
alert("Buy", alert.freq_once_per_bar_close)
if ta.crossunder(fast, slow)
alert("Sell", alert.freq_once_per_bar_close)
Try it on real candlesChange the timeframe or what each alert does, and the replay redraws on 30 days of real BTC/USDT.

Example: the built-in script replayed on a Demo bot. Try the timeframe and what each alert does.

From your chart to your bot in three moves

The same code you keep on TradingView. Here it trades by itself, on the broker account you already use.

How it works +
New scriptPasted · 14 lines
//@version=5
indicator("RSI reversal")
r = ta.rsi(close, 14)
Compiled · every line runs here
Paste

Bring your code

Copy the script from TradingView and paste it, or type it in. If a line isn’t supported yet, it says which one.

Replay · 30 days · 15m−$3.66 at 100 USDT a trade
Trades209Win rate27%Bars2,769
Replay

See what it would have done

Run it over the last 30 days on your bot’s own candles, with your bot’s own size and exits. Here, the built-in cross on BTC/USDT: a real result, losses included. A replay is a look back, not a promise.

SCRIPTS · FREE, NO CREDITS
EMA 5/13 crossBuilt in · buys when EMA 5 crosses above 13
RSI reversalYour script · v1 · 15mAdded
New scriptPaste a Pine-compatible script, or type it in
Add to a bot

Pick it as a signal source

Open any bot’s source picker. The script sits next to TradingView, Telegram and Pip, and trades that bot’s pair.

The script says when. Your bot says how much.

A script only gives signals. It can never change the size, the exits or the limits you set on the bot.

Who decides what +

From the script

Read at every candle close
  • Buyan alert you map to Buyalert "Buy"
  • Sellan alert you map to Sellalert "Sell"
  • Closeonly when the bot follows the signal to exitoptional
  • Timingthe close of each candle on your timeframe1m to 1d

On your bot

Set once, kept for every signal
  • Sizeper trade, in your account’s moneyPosition size
  • Stop and targetor follow the signal to closeExit rule
  • Leverage and trades a daythe day’s limits stay on the botDaily limits
  • Broker and accountLive or Demo, never mixedBroker

Each trade a script opens counts toward your plan’s trades, like any other source.

Built for another market? You hear it first.

Some scripts are written for one market, or only trade set hours. Before one runs on a bot that differs, a pop-up says what it was built for and what it would do here.

Never silent +
  • Hours shown in your own clock, next to the exchange’s.
  • A version for your market, one tap away when there is one.
  • Or use it as it is. Your size and exits never change.

Every script, where it runs and what it did

One list for the built-in script and your own. Drafts stay apart until you publish; a bot keeps the version it runs until you move it.

Your scripts +
SCRIPTS41 built in · 3 yours
RUNNING2 on 2 botsone bot each
COSTFreeno agent credits
SIGNALS TODAY14buys and sells your scripts sent

Your scripts

SCRIPTWHERE IT RUNSTHIS MONTHSIGNALS TODAY
EMA 5/13 crossBuilt in · by TraderFrame · Pine v5 · 10 lines
Built inFree on every plan
Binance-BTCDemoBuy + Sell · the only source
+38.20 USDTDemo · 12 trades on 1 bot
9last 18:41 · buy
Open
RSI reversalYour script · 14 lines · 15m
v1 running
Gold-MT5LiveBuy + Sell · with TradingView
−12.40 USDLive · 7 trades on 1 bot
5last 18:20 · sell
Open
London sweepsYour script · 62 lines · 4h
Draft v2
Not on a bot yetCheck it on a chart, then add it from a bot
Not on a botadd it from a bot’s source picker
0none yet
Open
Breakout retestYour script · 31 lines · 1h
Draft v1
Not on a bot yetReplay it first
Not on a bota draft never trades
0none yet
Open

Example list. Script names and figures are for illustration.

Scripts you can keepFree to run on every plan. The plan sets how many you can save.
Free5
Basic20
Standard50
Pro100
UltimateUnlimited

Our own Pine-compatible engine

Built in house and checked bar by bar against TradingView’s own output, so a script reads the same on both.

The engine +
Pine v5, and v4

v5 runs as written. A v4 script is upgraded as it loads: study becomes indicator, and so on.

The usual toolbox

ta.ema, ta.rsi, ta.atr, SuperTrend, Bollinger, pivots, VWAP and more, with inputs and their bounds.

Alerts and strategies

An alert() becomes a signal you map. A strategy’s strategy.entry becomes a buy or a sell.

Higher timeframes

request.security on the same symbol, so a 1-hour trend can filter 5-minute entries.

Libraries

Paste a library’s source next to the script that imports it, and it runs together.

Every candle close

On your bot’s own candles and its venue’s clock, from 1 minute to 1 day. No AI is asked, so it costs nothing.

Questions

About scripts

  • No. A script runs on our engine, not on an AI model, so it uses no agent credits on any plan, Free included. Each trade it opens counts toward your plan’s trades, like any other source.

  • Free keeps 5, Basic 20, Standard 50, Pro 100 and Ultimate as many as you like. Every one runs free; the plan only sets how many you can save.

  • Most will. Pine v5 runs as written and v4 is upgraded as it loads. If a line isn’t supported yet, the editor names it before the script goes near a bot.

  • No. A script only says buy, sell or close. Size, leverage, stop, target and the day’s limits stay on the bot, exactly as you set them.

  • No. The script runs here at every candle close, on your bot’s own candles. Your computer can be off.

  • Before it runs on a bot that differs, a pop-up says what it was built for and what it would do here, with the version for your market when there is one.

  • On a plan with Pip, yes: it drafts a fix for the lines the engine flags, and that uses agent credits. The script itself still runs free.

Start with code

Write it once. It trades every close.

Paste the script you already trust, replay it on your own candles, and put it on a bot. The rules for size and risk stay yours.

Free on every plan · no agent credits
Example
RSI reversalv1
  1. Pasted14 lines · every line runs0.2 s
  2. Replayed30 days on the bot’s candles119 trades
  3. On a botBinance-BTC · Demo15m
Runs at every candle close0 credits