Skip to main content

Reference

TradingView Cheatsheet

Copy-paste TradingView alert templates, placeholder reference, and Pine Script examples for Trade Wzrd automation.


TradingView Cheatsheet

Ready-to-use TradingView alert templates for Trade Wzrd. All signals use comma-separated format. Copy, paste, and customize.

Important: TPSLTYPE Defaults to PRICE

When you omit TPSLTYPE, the default is PRICE (not pips). If your SL/TP values are in pip format, you must include TPSLTYPE=PIPS. If your values are price levels, you can omit TPSLTYPE or set it to TPSLTYPE=PRICE.

Essential Templates

Simple Entry

Entry with Risk Percentage

Close Positions

Partial Close

Pending Orders

Breakeven

Close Profitable Only

Multi-Command

Use semicolons to chain commands. The FLIP pattern closes existing positions and opens in the opposite direction:

TradingView Placeholders

Placeholder Description Example Output
{{ticker}} Symbol name EURUSD
{{time}} Alert time 14:30:00
{{interval}} Chart timeframe 15
{{open}} Candle open 1.0850
{{high}} Candle high 1.0900
{{low}} Candle low 1.0840
{{close}} Candle close 1.0880
{{volume}} Candle volume 12345

Dynamic SL/TP with Price Values

Use candle prices as stop loss and take profit levels. Set TPSLTYPE=PRICE (or omit it since PRICE is the default).

Buy Signal with Candle-Based SL/TP

Sell Signal with Candle-Based SL/TP

Pine Script Examples

Basic Alert in Strategy

Alert with Dynamic Price SL/TP

Close All Positions Alert

FLIP Pattern (Close + Reverse)

Alert Setup Checklist

  1. Create your webhook in Trade Wzrd and copy the webhook URL
  2. In TradingView, open the chart for your symbol
  3. Click Alert → set condition → set Action to Webhook URL
  4. Paste the webhook URL into the URL field
  5. Paste the signal template into the Message field and save

Common Mistakes

  • Wrong separator - Trade Wzrd uses commas to separate parts, not spaces. Use BUY,EURUSD,VOL=0.01 not BUY EURUSD VOL=0.01
  • Missing TPSLTYPE=PIPS - when using pip values for SL/TP, include TPSLTYPE=PIPS. The default is PRICE
  • Wrong placeholder syntax - use {{ticker}} (double curly braces), not {ticker} or [[ticker]]
  • Webhook URL not set - the Action field in TradingView must be set to “Webhook URL”, not “Show popup” or “Play sound”
  • Newlines in message - keep the signal on a single line; newlines will break parsing
  • Spaces around equals - avoid spaces in parameters: use VOL=0.01 not VOL = 0.01
  • Mixing semicolons and commas incorrectly - use commas within a command, semicolons between commands