Paper-only TradingView alert templates for Pine Script v6. Copy a complete script, create an alert, and inspect predictable JSON without embedding a webhook URL, API key, or broker credential in source code.
Educational tooling only. The moving-average conditions are deliberately simple examples, not trading advice, a strategy recommendation, or a performance claim. Every included payload is fixed to
"mode":"paper".
| Template | Use it when | TradingView alert condition |
|---|---|---|
pipsync-paper-alert-builder.pine |
You want runtime JSON with normalized symbols and ISO timestamps | Any alert() function call |
pipsync-paper-alertconditions.pine |
You prefer separate BUY and SELL entries in the condition picker | PipSync paper BUY or PipSync paper SELL |
buy-paper-alert.json / sell-paper-alert.json |
You already have your own Pine condition | Paste into TradingView's Message field |
- Open TradingView's Pine Editor and paste one complete
.pinefile. - Add it to the chart and select Create alert.
- Choose the condition shown in the table above.
- First send the message to a local receiver or a sandbox endpoint you control.
- Confirm the body says
"mode":"paper"before connecting any managed integration.
The example conditions only fire on confirmed bars by default. Each signal_id includes the symbol, timeframe, bar timestamp, and side so a receiver can use it as an idempotency input.
The runtime builder restricts its metadata label to two short allowlisted values
so the generated alert remains valid JSON and within the local schema.
The local paper-alert schema documents this educational TradingView envelope. It is intentionally narrower than a broker order and contains no route, account, credential, or execution instruction. For PipSync's published read-only API response contracts, use pipsync-spec.
{
"schema_version": "1.0",
"mode": "paper",
"source": "tradingview",
"signal_id": "tv-EURUSD-15-1787659200000-buy",
"instrument": "EURUSD",
"side": "BUY",
"order_type": "MARKET",
"observed_price": "1.0850",
"occurred_at": "2026-08-25T12:00:00Z"
}- The repository does not place trades or call a broker.
- No production ingest URL is published here.
- Never place credentials in Pine source, an alert body, a screenshot, or a public chart.
- Keep initial tests in paper/sandbox mode and make receivers fail closed on malformed or duplicate payloads.
- The included SMA cross is only a visible trigger for testing alert plumbing.
npm ci
npm run test:allThe checks reject live-mode payloads, broker secrets, outbound URLs, and strategy.* order calls in the included Pine files.
Use the TradingView and webhook integration guide when you are ready to move from a synthetic paper alert to a managed PipSync integration.
MIT licensed. See SECURITY.md for private vulnerability reporting. Product and account support is available at pipsync.io/support.