Search documentation

Search every page of the Trade Wzrd docs

Reference

TradingView Cheatsheet

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

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

text
BUY,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS
text
SELL,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS

Entry with Risk Percentage

text
BUY,{{ticker}},RISK=1,SL=100,TP=200,TPSLTYPE=PIPS
text
SELL,{{ticker}},RISK=1,SL=100,TP=200,TPSLTYPE=PIPS

Close Positions

text
CLOSEALL
text
CLOSE,{{ticker}}
text
CLOSE,{{ticker}},SIDE=BUY

Partial Close

text
CLOSE,{{ticker}},PERCENT=50

Pending Orders

text
BUYLIMIT,{{ticker}},VOL=0.01,PRICE=1.0800,SL=100,TP=200,TPSLTYPE=PIPS
text
SELLSTOP,{{ticker}},VOL=0.01,PRICE=1.0700,SL=100,TP=200,TPSLTYPE=PIPS

Breakeven

text
BREAKEVEN,{{ticker}},OFFSET=0.0010

Close Profitable Only

text
CLOSEALL,{{ticker}},POSITIVE=true

Multi-Command

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

text
CLOSE,{{ticker}};BUY,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS
text
CLOSE,{{ticker}};SELL,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS

TradingView Placeholders

PlaceholderDescriptionExample Output
{{ticker}}Symbol nameEURUSD
{{time}}Alert time14:30:00
{{interval}}Chart timeframe15
{{open}}Candle open1.0850
{{high}}Candle high1.0900
{{low}}Candle low1.0840
{{close}}Candle close1.0880
{{volume}}Candle volume12345

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

text
BUY,{{ticker}},VOL=0.01,SL={{low}},TP={{high}}

Sell Signal with Candle-Based SL/TP

text
SELL,{{ticker}},VOL=0.01,SL={{high}},TP={{low}}

Pine Script Examples

Basic Alert in Strategy

javascript
//@version=5strategy("Trade Wzrd Example", overlay=true) longCondition = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))if longCondition    strategy.entry("Long", strategy.long)    alert('BUY,' + syminfo.ticker + ',VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS', alert.freq_once_per_bar_close) shortCondition = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))if shortCondition    strategy.entry("Short", strategy.short)    alert('SELL,' + syminfo.ticker + ',VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS', alert.freq_once_per_bar_close)

Alert with Dynamic Price SL/TP

javascript
//@version=5indicator("Trade Wzrd Dynamic SL/TP", overlay=true) longCondition = ta.crossover(ta.rsi(close, 14), 30)if longCondition    sl = str.tostring(low, format.mintick)    tp = str.tostring(close + (high - low), format.mintick)    alert('BUY,' + syminfo.ticker + ',VOL=0.01,SL=' + sl + ',TP=' + tp, alert.freq_once_per_bar_close)

Close All Positions Alert

javascript
//@version=5indicator("Close All Signal") closeCondition = ta.crossover(ta.rsi(close, 14), 70)if closeCondition    alert('CLOSEALL', alert.freq_once_per_bar_close)

FLIP Pattern (Close + Reverse)

javascript
//@version=5indicator("Trade Wzrd Flip Pattern") flipLong = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))if flipLong    alert('CLOSE,' + syminfo.ticker + ';BUY,' + syminfo.ticker + ',VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS', alert.freq_once_per_bar_close) flipShort = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))if flipShort    alert('CLOSE,' + syminfo.ticker + ';SELL,' + syminfo.ticker + ',VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPS', alert.freq_once_per_bar_close)

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