Placeholder and Plot Mapping

Reference for alert message placeholders and plot values in the Smart Signals Assistant.

When setting up TradingView alerts for the Smart Signals Assistant, you can use placeholders in your alert messages that get replaced with dynamic values when the alert fires. This page documents the available placeholders and their corresponding plot mappings.

TradingView Built-in Placeholders

These are standard TradingView placeholders that work with any indicator:

PlaceholderDescription
{{ticker}}The symbol name (e.g., BTCUSDT)
{{exchange}}The exchange name (e.g., BINANCE)
{{close}}The closing price of the current bar
{{open}}The opening price of the current bar
{{high}}The high price of the current bar
{{low}}The low price of the current bar
{{volume}}The volume of the current bar
{{time}}The timestamp of the current bar
{{interval}}The chart timeframe (e.g., 60 for 1H)
{{timenow}}The current server time when the alert fires

SSA-Specific Plot Values

The Smart Signals Assistant exposes several plots that can be referenced in alert messages using the plot_N syntax. These plots contain indicator-calculated values.

Signal Plots

PlotDescription
{{plot_0}}Signal direction (1 for buy, -1 for sell, 0 for no signal)
{{plot_1}}Signal strength or confidence value
{{plot_2}}Trend direction (1 for bullish, -1 for bearish)
{{plot_3}}Exit signal (1 for bullish exit, -1 for bearish exit, 0 for none)

Confluence Plots

PlotDescription
{{plot_4}}Trend Ribbon value
{{plot_5}}Momentum Oscillator value
{{plot_6}}Volume analysis value

Plot indices may vary between indicator versions. Check the TradingView Data Window (accessible from the indicator's status line) to verify the current plot order for your version.

Using Placeholders in Alert Messages

Basic Alert Message

A simple message that tells you the signal direction and price:

SSA {{ticker}} on {{interval}}: Signal={{plot_0}}, Price={{close}}

This would produce output like: SSA BTCUSDT on 60: Signal=1, Price=67432.50

JSON Webhook Message

For webhook integrations, format the message as JSON:

{
  "indicator": "SSA",
  "symbol": "{{ticker}}",
  "exchange": "{{exchange}}",
  "timeframe": "{{interval}}",
  "signal": "{{plot_0}}",
  "strength": "{{plot_1}}",
  "trend": "{{plot_2}}",
  "price": "{{close}}",
  "time": "{{timenow}}"
}

Conditional Messages

TradingView does not support conditional logic in alert messages. If you need different messages for buy vs. sell signals, create separate alerts — one for buy signals and one for sell signals — each with its own message template.

Verifying Plot Mappings

To confirm which plot index corresponds to which value:

  1. Add the SSA to your chart
  2. Hover over a bar where a signal appears
  3. Open the Data Window panel (press D or click the data icon)
  4. The Data Window lists all plot values for the hovered bar, in order
  5. Match the plot names to the plot_N indices

Plot mappings may change when the indicator is updated. If your alerts suddenly show unexpected values after an update, re-verify the plot mappings using the Data Window method above.

Common Patterns

Discord Bot Integration

If you are sending alerts to a Discord webhook, format the message to display cleanly:

**{{ticker}}** {{interval}} — Buy Signal at {{close}}
Trend: {{plot_2}} | Strength: {{plot_1}}

Spreadsheet Logging

For logging signals to Google Sheets or similar:

{{timenow}},{{ticker}},{{interval}},{{plot_0}},{{close}},{{volume}}

This produces a comma-separated row that can be appended to a spreadsheet via a webhook-to-sheets integration.

⌘K