Put this in your buy alert
Pick an exchange. Copy the buy or sell alert, or send it straight into the sandbox and see the fill. No keys, no login, no setup. Nothing here reaches a real exchange.
A market order fills the moment your alert arrives: buys at Kraken's best ask, sells at the best bid. A limit fills the same way only if the book has reached it (a buy limit at or above the ask, a sell limit at or below the bid). Otherwise it stays open, not filled, and the sandbox never fills it later. This applies to BTC/USD orders sent to your webhook URL in step 3. Orders for other symbols are not checked: they fill, and a limit fills at its fp= price. The Send to sandbox button below does not check prices. The price shown is only an example, so set your own. Do not use p= for the price: p= moves the price away from the market, like p=-1%.
e= picks the exchange here in the sandbox. On a live webhook your linked account picks the exchange, and e= has no effect.
On OANDA, b=long and b=short also work. They place the same orders as b=buy and b=sell.
This URL is yours. Paste it into the Webhook URL box of a TradingView alert, or send to it from any tool that can post a webhook. Put the alert text from step 2 in the alert message. Each alert you send shows up below. Nothing reaches a real exchange.
Or try it from a terminal:
The command is shown on three lines for macOS and Linux terminals. Copy puts it on one line, so it also works in the Windows Command Prompt.
Nothing yet. Send an alert to your URL and it shows up here.
The sandbox keeps your last 10 alerts for 24 hours. Anyone who has this URL can send to it and see what was sent, so never put keys or passwords in an alert.
Running more than one strategy? Compare them on the strategy desk: fills, position, and P&L before and after fees, next to holding BTC.
Put the copied command in your TradingView alert's Message box. In the Notifications tab, turn on Webhook URL. Paste the URL from your Autoview account. Read the webhook guide.
On a webhook, the linked account sets the exchange. e= has no effect there. A webhook linked to several accounts sends the command to each one.
Create an account or read the alert syntax reference.