Skip to content

Repository files navigation

PipSync Pine Alerts

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".

Choose a template

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

60-second setup

  1. Open TradingView's Pine Editor and paste one complete .pine file.
  2. Add it to the chart and select Create alert.
  3. Choose the condition shown in the table above.
  4. First send the message to a local receiver or a sandbox endpoint you control.
  5. 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.

Payload contract

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"
}

Safety boundary

  • 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.

Verify locally

npm ci
npm run test:all

The checks reject live-mode payloads, broker secrets, outbound URLs, and strategy.* order calls in the included Pine files.

Continue with PipSync

Use the TradingView and webhook integration guide when you are ready to move from a synthetic paper alert to a managed PipSync integration.

License and support

MIT licensed. See SECURITY.md for private vulnerability reporting. Product and account support is available at pipsync.io/support.

About

Paper-only TradingView alert templates for Pine Script v6, with safe JSON payloads.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages