Is any documentation for tradetron pinescript placeholders supported by tradetron Support more tradingview placeholders — Tradetron Community
← Community

Is any documentation for tradetron pinescript placeholders supported by tradetron Support more tradingview placeholders

General 0 views

Prashant kulkarni

is any documentation for tradetron pinescript placeholders supported by tradetron
Support more tradingview placeholders like
Standard Market & Bar Placeholders
• {{ticker}}: Symbol name (e.g., AAPL, BTCUSD)
• {{exchange}}: Exchange name (e.g., NASDAQ, NYSE, CME)
• {{interval}}: Chart timeframe (e.g., 1, 5, 1D)
• {{open}}, {{high}}, {{low}}, {{close}}: Open, high, low, and close prices of the trigger bar
• {{volume}}: Trading volume of the trigger bar
• {{time}}: Bar timestamp in UTC (yyyy-MM-ddTHH:mm:ssZ)
• {{timenow}}: Current server timestamp when the alert fires
Strategy & Order Placeholders
• {{strategy.position_size}}: Current net position size (positive for long, negative for short, zero for flat)
• {{strategy.order.action}}: Action string (buy or sell)
• {{strategy.order.contracts}}: Number of contracts or units in the order
• {{strategy.order.price}}: Execution price of the order
• {{strategy.order.id}}: ID name of the triggered strategy order
• {{strategy.order.alert_message}}: Custom message defined via the alert_message

Ask TT AI

Short answer: I couldn't find any Tradetron page that lists which TradingView placeholders ({{ticker}}, {{close}}, {{strategy.order.action}} and so on) are officially supported. Tradetron's sources describe the webhook setup and how values reach your strategy. They don't confirm each placeholder one by one.

What the sources do say:

  1. How the connection works: A TradingView alert (from an indicator, strategy or Pine Script) sends a webhook to https://api.tradetron.tech/api?. The ? at the end is part of the URL. The alert message is a small JSON payload that includes your strategy's auth token. Pine Script doesn't run on Tradetron. Only the alerts come in.
  2. How values get into your strategy: Each alert sends key/value pairs. In the Condition Builder or Position Builder, you read each value with the Get Runtime keyword.
  3. Numbers vs. text:
    • Number values are documented, and a price is one example. So number placeholders like {{close}}, {{high}}, {{volume}} or {{strategy.order.contracts}} fit the documented pattern.
    • The sources don't confirm that text values work, for example "buy"/"sell" from {{strategy.order.action}}, symbol names from {{ticker}}/{{exchange}}, or timestamps from {{time}}/{{timenow}}.
    • The safe, documented approach is to send numbers and give each number a meaning, for example 1 = buy and 2 = sell. You can set this up in your Pine Script before the alert fires.
    • One community thread has a user reporting that placeholder data (both text and numbers) was picked up through Get Runtime. But they were also asking about a problem they hit, so treat that as one person's experience, not documentation: Using TradingView placeholder through Get Runtime.

Things to keep in mind when sending signals:

  • Webhook signals skip Tradetron's own condition checks by default. If you still want Tradetron to handle your Target/Stoploss exits, set Hybrid Mode = Yes (My Strategies → three dots → API OAuth → Hybrid Mode Yes → Link).
  • Reset a signal value after it's been used. A pushed value stays set, so an old 1 can trigger another entry after the position closes.
  • Rate limits: 3 calls/second, 30/minute, 250/hour. Going over any of them returns HTTP 429.
  • TradingView webhooks need a paid TradingView plan.

Test it safely: Deploy in Live Offline, fire an alert, then open the deployment's three dots → Runtime Data. That shows exactly what Tradetron received for each key.

Useful links:

If you'd like official confirmation that text placeholders are supported, or want to ask for more of them, please use the chat on tradetron.tech.

:sparkles: Answered by Ask TT (AI) from Tradetron’s docs. It can be wrong: check before you trade, and reply if something is off. Not investment advice.

Tradetron अब हिन्दी में भी उपलब्ध है हिन्दी में देखें Continue in English