This page lists what TradeCloner's webhook receiver reads from a TradingView alert, taken from the code that runs it. If a field, alias or value is not on this page, the receiver does not use it. For the setup steps, see TradingView alerts to multiple prop accounts.
The receiver places the order on your Master account, which must be on Tradovate or NinjaTrader (through its Tradovate login). Your followers then copy it like any other trade, if the copy group is active.
The URL
TradeCloner shows your full webhook URL when you create the webhook. It looks like this, with your own id in place of the placeholder:
https://tradecloner.com/api/tv-webhooks/receive/YOUR_WEBHOOK_IDThe id only says which webhook the alert is for. It is not the secret, so a leaked URL cannot place orders. TradingView's own page says it accepts only ports 80 and 443, and this URL uses 443.
Where the passphrase goes
The passphrase goes in the JSON body, in the field passphrase. The receiver also accepts the same value in secret or token. Never put it in the URL.
The message must be valid JSON. TradingView's page says a valid JSON message is sent as application/json and anything else as plain text. The receiver cannot read a passphrase from plain text, so it refuses the alert.
TradingView also says "webhook alerts are only allowed when 2-factor authentication is enabled." (TradingView, read 2026-11-14.) That page does not list which plans include webhook alerts, so check yours.
Fields
| Field | Also accepted as | Values | If missing |
|---|---|---|---|
passphrase | secret, token | The secret shown once when you create the webhook | Refused as unauthorized |
action | data, side, order_action | See the table below | Refused: Invalid or missing action |
ticker | symbol, instrument, contract | A product (MNQ), a continuous ticker (NQ1!), an exchange-qualified one (CME_MINI:NQ1!) or a contract (MNQZ6) | The webhook's Default Contract. Refused if there is none |
quantity | qty, contracts, size | A whole number from 1 to 99. Decimals are rounded | The webhook's Default Qty |
order_type | orderType, type | market, limit or stop | Limit if a price is present, otherwise market |
price | limit_price, stop_price | A number above 0. The limit price for a limit order, the trigger for a stop | Required for limit and stop |
sentiment | market_position | Only flat matters: it turns the alert into a close | No effect |
id | alert_id, alertId, client_order_id, clientOrderId | Any text you choose | Only used by duplicate protection |
Names are matched in the order shown, and the first one present is used. A quantity above 99 is refused, never trimmed. Any other field is ignored.
Actions
Matching ignores capitals and treats a hyphen as an underscore.
| Value | What it does |
|---|---|
buy, long | Buys the quantity on the Master |
sell, short | Sells the quantity on the Master |
close, exit, flat, flatten | Closes the Master's whole position in the alert's product at market. The quantity is ignored. With no position, the log says "No open position to exit" and nothing is sent |
flatten_all, flattenall, close_all, closeall, exit_all | Closes every position in every product, one at a time, and stops at the first refusal. Works only if you ticked Allow close-all alerts |
cancel, cancel_all | Recognised, but no webhook can enable it. The alert is logged as ignored |
A new webhook accepts buy, sell, close, flatten and exit.
Order types
market also reads as mkt, m or 1. limit reads as lmt, l or 2, and stop as stp, s or 3. Market orders are sent immediate-or-cancel. Limit and stop orders rest until filled or cancelled.
- Limit and stop need the webhook's Limit Orders switch set to Enabled. On a Market Only webhook they are refused, never turned into market orders.
- A price on an explicit market order is refused. Leave
priceout, or uselimit. - Trailing stop and stop-limit are refused.
trailing_stop,trailingstop,trail,trailing,4,stop_limitandstoplimitall get "is not supported. Use market, limit or stop".
How a ticker becomes a contract
Three layers, most trusted first:
| Layer | Used when | What it means |
|---|---|---|
| Explicit contract | The ticker names an expiry, such as MNQZ6, MNQU25 or MNQU2025 | Sent as written. Two- and four-digit years become the one-digit year Tradovate uses. It is never moved to the front month |
| Listing | The ticker is a product or a continuous ticker | The front-month contract in TradeCloner's contract list, kept from the broker's own listing. A listed contract that has expired is skipped |
| Calendar estimate | The listing has no usable entry | A contract worked out from a calendar of active months and roll dates. It is a guess |
A continuous ticker such as NQ1! loses its exchange prefix and its 1!, leaving the product NQ. It goes to the listing, then to the calendar.
TradeCloner does not read TradingView's roll date, so around a roll its contract can differ from the one TradingView charts. To pin a contract, name it: NQZ6.
A close matches your Master's open position by product, so its contract month need not match the alert's. The webhook log shows the contract that actually traded, but not which layer chose it.
Duplicate alert protection
TradingView can deliver one alert twice. The receiver fingerprints every alert, ignoring the passphrase fields, and ignores an identical alert that arrives within 5 seconds of the first. The Webhooks page has no setting for that window.
If a message has an id, alert_id, alertId, client_order_id or clientOrderId, that id alone is the alert's identity. If you send identical alerts on purpose, make one field differ. If the duplicate check itself is unavailable, the alert goes through rather than being dropped.
What the receiver does with an alert it cannot accept
It answers HTTP 200 even when it refuses an alert, so TradingView never retries and cannot turn one alert into two orders. The reply body says what happened, for example {"ok": false, "error": "Invalid webhook credentials"}. TradingView says it cancels a request that takes over three seconds, so rely on the log, not on TradingView's alert history.
Open TV Webhooks, then View Logs, to see the last 50 events with status, action, contract, quantity, order id and error. The Failed tab lists failed, invalid_payload, rate_limited, unauthorized and blocked_ip.
Duplicate, ignored and paused events show only under All. A webhook accepts 10 alerts a minute once the passphrase checks out.
What is not supported
- Brackets. A take profit or stop loss cannot ride on an entry. The fields are ignored and the entry goes in alone. Send a protective stop as its own alert.
- Trailing stops and stop-limit orders. Refused, as above.
- ProjectX and Rithmic Masters. The log says "TradingView webhooks currently support Tradovate and NinjaTrader masters only".
- Cancel-all by alert. Not enabled.
Four examples
Replace YOUR_PASSPHRASE with your own. Prices are examples only.
1. Buy 1 at market. It uses action buy, a continuous ticker, a quantity and an explicit market type.
{"passphrase": "YOUR_PASSPHRASE", "action": "buy", "ticker": "MNQ1!", "quantity": 1, "order_type": "market"}2. Buy 1 with a limit. It needs Limit Orders set to Enabled, and price is the limit price.
{"passphrase": "YOUR_PASSPHRASE", "action": "buy", "ticker": "MNQ1!", "quantity": 1, "order_type": "limit", "price": 21000}3. Close the position. It closes the Master's whole MNQ position at market, so no quantity is needed.
{"passphrase": "YOUR_PASSPHRASE", "action": "close", "ticker": "MNQ1!"}4. Flatten everything. It needs Allow close-all alerts, and no ticker is needed.
{"passphrase": "YOUR_PASSPHRASE", "action": "flatten_all"}Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Log status unauthorized | Wrong or missing passphrase, a rotated passphrase, or a message that is not valid JSON | Paste the current passphrase into a valid JSON message |
| No log row at all | The id in the URL is wrong (unknown ids are not logged), or TradingView never sent the alert | Re-copy the URL. Check the alert, and that 2-factor authentication is on |
| blocked_ip | The sender was not TradingView, for example a test from your own computer | Test with a real TradingView alert |
| invalid_payload: Invalid or missing action | The action is not in the table above | Use a listed value |
| invalid_payload: market orders only | A limit or stop alert on a Market Only webhook | Create a webhook with Limit Orders set to Enabled |
| invalid_payload: Price can only be used with limit and stop orders | An explicit market order carries a price | Remove the price, or use limit |
| invalid_payload: Quantity over the 99-contract limit | The quantity is above 99 | Send 99 or fewer |
| ignored: Action not allowed | The webhook does not allow that action, usually flatten_all | Tick Allow close-all alerts |
| failed: No symbol in the alert | No ticker, and no Default Contract on the webhook | Add a ticker, or set a Default Contract |
| failed: Master connection offline | The Master's connection is down | Reconnect it on Connections |
| duplicate | An identical alert arrived within 5 seconds | Remove the duplicate alert, or add an id that differs |
| Executed, but followers did not copy | The group is paused, or a follower skipped or failed | See Orders Not Copying |
Full setup details are in the help article TradingView Webhooks.