FILE · TP Scripts

TraderPeak Script library. Pine-flavored, shareable.

22 TA functions, sandboxed Web Worker execution (5s timeout), 8 starter scripts in the dashboard. Below: every public script shared by the community. Click to preview + clone.

What is TraderPeak Script?

A Pine-flavored DSL for writing custom indicators and strategies that run on TraderPeak's chart engine. Same primitives as Pine v5 — sma, ema, rsi, macd, bb, atr, stoch, adx, vwap, crossover, highest, lowest, change, roc, valuewhen, barssince, cum, sum, linreg, percentile — plus plot / plothist / plotshape / plothline / fill / bgcolor / alertcondition / strategy / input.

Execution is sandboxed in a Web Worker with a 5-second timeout. No DOM access. No network. No persistence. Safe to run untrusted scripts from the public library.

Public library

Loading scripts…

Starter scripts (built-in)

  • SMA cross 50/200 — classic golden-cross / death-cross with strategy stats
  • RSI divergence — bullish + bearish divergence detector with overlay markers
  • BB squeeze — Bollinger Band width compression breakout
  • ATR Chandelier exit — trailing stop based on ATR multiple
  • MACD signal cross — long/short on histogram zero-cross
  • Donchian Turtle — 20-day breakout entry, 10-day breakout exit
  • Volume spike — > 3× SMA(20) volume bar highlight
  • Z-score mean reversion — 14-day rolling z-score with ±2σ entries