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
BUY,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSSELL,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSEntry with Risk Percentage
BUY,{{ticker}},RISK=1,SL=100,TP=200,TPSLTYPE=PIPSSELL,{{ticker}},RISK=1,SL=100,TP=200,TPSLTYPE=PIPSClose Positions
CLOSEALLCLOSE,{{ticker}}CLOSE,{{ticker}},SIDE=BUYPartial Close
CLOSE,{{ticker}},PERCENT=50Pending Orders
BUYLIMIT,{{ticker}},VOL=0.01,PRICE=1.0800,SL=100,TP=200,TPSLTYPE=PIPSSELLSTOP,{{ticker}},VOL=0.01,PRICE=1.0700,SL=100,TP=200,TPSLTYPE=PIPSBreakeven
BREAKEVEN,{{ticker}},OFFSET=0.0010Close Profitable Only
CLOSEALL,{{ticker}},POSITIVE=trueMulti-Command
Use semicolons to chain commands. The FLIP pattern closes existing positions and opens in the opposite direction:
CLOSE,{{ticker}};BUY,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSCLOSE,{{ticker}};SELL,{{ticker}},VOL=0.01,SL=100,TP=200,TPSLTYPE=PIPSTradingView 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
BUY,{{ticker}},VOL=0.01,SL={{low}},TP={{high}}Sell Signal with Candle-Based SL/TP
SELL,{{ticker}},VOL=0.01,SL={{high}},TP={{low}}Pine Script Examples
Basic Alert in Strategy
//@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
//@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
//@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)
//@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
- Create your webhook in Trade Wzrd and copy the webhook URL
- In TradingView, open the chart for your symbol
- Click Alert → set condition → set Action to Webhook URL
- Paste the webhook URL into the URL field
- 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.01notBUY EURUSD VOL=0.01 - Missing TPSLTYPE=PIPS - when using pip values for SL/TP, include
TPSLTYPE=PIPS. The default isPRICE - 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.01notVOL = 0.01 - Mixing semicolons and commas incorrectly - use commas within a command, semicolons between commands







