GuidesTradingView Bot
TradingView strategy
TradingView Bot
Turn your TradingView alerts into automated orders on perp DEXs, running your strategies 24/7 in the cloud even when you're offline.
How it works
Your alert becomes a live order
When your TradingView strategy triggers, the alert is POSTed to your Coinner webhook. Coinner validates the token, applies your size and risk rules, and places the order on your exchange, flipping your position long or short. It runs 24/7 in the cloud, even while you're offline.
Trading flow
How the automation works
- You create alerts on TradingView using indicators, strategies, or custom scripts.
- TradingView sends alert data to Coinner via a secure webhook URL.
- Coinner validates the alert, applies your sizing and risk rules, and places the trade on your exchange.
- Orders are executed automatically without manual intervention.
Settings
Available settings explained
- Market
Select the perpetual market where orders will be executed.
- Alert Webhook URL
A unique webhook endpoint generated by Coinner and used inside TradingView alerts. Copy the URL and message shown after creating the bot into your alert, and keep the token private to prevent unauthorized orders.
- Order Size
Size of each TradingView-triggered order.
- Maximum Position Size
Caps total exposure the bot is allowed to build, even if alerts keep firing.
- Flip position
When enabled, each alert first cancels any open position on the opposite side, then opens a new one sized to the order size, keeping max exposure equal to a single alert.
- Take Profit (%)
Automatically closes the entire position when the average entry price reaches the defined profit target.
- Stop Loss (%)
Automatically closes the entire position if price moves against the average entry beyond the defined threshold.
- Continue After TP / SL
Controls bot behavior after a position is closed.
- Disabled: the bot stops listening to alerts.
- Enabled: the bot keeps listening and executing new alerts.
Alert payload requirements
Webhook message
{
"token": "yr-private-webhook-token",
"action": "{{strategy.order.action}}",
"symbol": "{{ticker}}",
"price": "{{close}}"
}TradingView substitutes the {{ }} placeholders at fire time. Keep your token private, it is what authorizes orders on your account. The exact fields Coinner expects are shown on the setup screen after you create the bot.
Walkthrough
Step-by-step creation flow
- Create a TradingView strategy or alert condition.
- Copy the Coinner webhook URL and message provided after creating the bot into your TradingView alert configuration.
- Define order size, position limits, and optional TP/SL settings.
- Activate the bot and enable the TradingView alert.
- Monitor executions and position changes from the Coinner dashboard.
Important behavior notes
- The bot executes trades only when alerts are received.
- If Take Profit or Stop Loss is enabled, the bot closes the entire position using the exchange's average entry price.
- If TP/SL is disabled, positions are opened and closed only based on incoming alerts.
- Mixing manual trades with TradingView bots on the same market may lead to unexpected position changes.
- Flip position mode exits any opposite exposure before building a position on the new side, so each alert effectively resets your direction.
Risk notes
Test before you scale
- TradingView alerts may trigger late due to chart resolution or network delays.
- High-frequency alerts can result in rapid order execution and increased risk.
- Strategy logic errors on TradingView will be mirrored directly into real trades.
- Always backtest your alerts or test with small size before scaling.
Ready to automate TradingView?
Wire up a webhook, set your limits, and let your alerts trade for you.
