What you need
- A TradingView plan that sends webhooks. TradingView sends them only on paid plans and asks for two-factor authentication.
- ribqa bot on Windows 10 or 11, signed in with a free ribqa.com account.
- A TradingView bot in the app. It starts on Paper.
- The app running when alerts arrive. An alert that comes in while the app is offline is not executed later.
Set it up
- In ribqa bot, create a TradingView bot under Bots. Set its budget, maximum size per alert, entries per day, open positions and the pairs it may trade.
- Open Settings, TradingView and create a webhook URL. The app shows it once, so copy it then. Rotate makes a new URL and stops the old one at once.
- Turn on Receive alerts and Execute alerts. With Receive alone, alerts are listed and nothing is executed.
- In TradingView, create an alert on your chart or strategy.
- Under Notifications, turn on Webhook URL and paste the URL.
- Copy a message from the app's message builder (Settings, TradingView) into the alert's message box.
- Press Send test alert in the app. It checks the chain from the relay to the app; a test alert is recorded and never executed.
- Watch Recent alerts: each alert shows its outcome, the fill, the slippage against the alert's price and the latency.
The alert message
The message is JSON. This is what the builder writes with its default settings:
{"action":"buy","symbol":"{{ticker}}","tp_pct":3,"sl_pct":1.5,"price":"{{close}}","id":"{{timenow}}"}- action is buy (a long), sell (a short) or close, which closes the TradingView bot's own position on that pair.
- An entry needs one take profit and one stop: tp or tp_pct, and sl or sl_pct. tp and sl are prices; the _pct forms are distances from the price in percent.
- price lets the app compare the live price with the price at the alert. size_usdt is optional; without it the bot uses its maximum per alert.
- symbol takes {{ticker}} or a pair. BINANCE:BTCUSDT.P, BTCUSDT.P and BTCUSDTPERP all read as BTCUSDT futures. USDT pairs only.
- A strategy alert sends {{strategy.order.action}} as the action and adds market_position.
The 3% and 1.5% are the builder's starting values, not a recommendation.
Checks every alert passes
The app checks each alert before it can trade and logs every refusal with its reason.
- Test alerts are recorded and never executed.
- An alert older than the bot's stale window (30 seconds by default, on the server's clock) expires.
- An optional passphrase must match. The app stores it only as an Argon2id hash.
- The same message, or the same id, within 5 minutes is ignored.
- The bot's limits apply: budget, size per alert, entries per day, open positions and the pair list.
- The price guard refuses an alert when the live price has moved more than 0.5% (the default) from the alert's price.
- Each pair holds one futures position. A reversal closes the open position first and opens the new side only after the close is confirmed.
Worked example
An alert says buy at a price of 50.00 with tp_pct 3 and sl_pct 1.5. If the live price is 50.30 when the alert arrives, it has moved 0.6%, more than the 0.5% guard, and the app refuses it with that reason. If the long fills at 50.00, the take profit is 50.00 × 1.03 = 51.50 and the stop is 50.00 × 0.985 = 49.25. On a Live bot both are measured from the real fill.
Paper first, then Live
A Paper TradingView bot simulates every alert. A Live one sends real orders on Binance USD-M futures under the same rules as every Live bot in the app: you type LIVE to switch it, the app checks that your key is trade-only, you type LIVE again after every restart, and the first entries are capped. Spot alerts always stay on paper.
Questions
Do I need a paid TradingView plan?
For webhooks, yes: TradingView sends them only on paid plans. ribqa bot also has a Pine bot that runs Pine-lite scripts on your PC on closed 15m, 1h, 4h or 1d bars, with no TradingView account.
What happens if my PC is off when an alert fires?
The relay keeps alerts for 7 days, but an alert that arrives while the app is offline is not executed later. The bot trades only while the app is running.
Can someone else send alerts to my bot?
Anyone who has the webhook URL can send alerts to it. Keep the URL private, rotate it if it leaks, and set a passphrase on the bot: an alert without the right passphrase is refused.
Which exchange does the TradingView bot trade on?
Live orders go to Binance USD-M futures only. Everything else stays on paper.
Past results and simulations, not a forecast and not financial advice. ribqa makes no return claim and gives no price direction.