Webhooks
TradingView webhook JSON examples for futures strategy alerts
Educational payload patterns for connecting chart strategy alerts to MimikTrader. TradingView is a separate product; MimikTrader is not affiliated with TradingView, Tradovate, or any prop firm. For step-by-step UI setup, see the webhook strategies help guide.
Baseline market entry
Use strategy placeholders, not indicator plot text. TradingView fills these when the alert fires.
{
"secret": "your-secret",
"action": "{{strategy.order.action}}",
"symbol": "{{ticker}}",
"quantity": "{{strategy.order.contracts}}",
"price": "{{strategy.order.price}}",
"position": "{{strategy.market_position}}",
"id": "{{timenow}}-{{ticker}}-{{strategy.order.id}}"
}Entry with bracket overrides
Overrides only apply when the matching take-profit or stop override is enabled on the MimikTrader strategy. Tick offsets and absolute prices are both supported.
{
"secret": "your-secret",
"action": "buy",
"symbol": "{{ticker}}",
"quantity": "1",
"takeProfit": { "ticks": 40 },
"stopLoss": { "ticks": 20 },
"id": "{{timenow}}-{{ticker}}-long"
}{
"secret": "your-secret",
"action": "sell",
"symbol": "{{ticker}}",
"quantity": "1",
"takeProfit": { "limitPrice": 5325.00 },
"stopLoss": { "stopPrice": 5280.00 },
"id": "{{timenow}}-{{ticker}}-short"
}Limit, stop, and stop-limit entries
Non-market entries need a price. orderType applies to entries when entry override is enabled; it is ignored on close and flatten so a stray field cannot turn a flatten into a resting order.
{
"secret": "your-secret",
"action": "sell",
"symbol": "{{ticker}}",
"quantity": "1",
"orderType": "stop",
"price": "{{close}}",
"id": "{{timenow}}-{{ticker}}-stop-entry"
}Close vs flatten
close exits the alert symbol only. flatten liquidates every open position on the leader account — including manual trades and other strategies.
{
"secret": "your-secret",
"action": "close",
"symbol": "{{ticker}}",
"id": "{{timenow}}-{{ticker}}-exit"
}{
"secret": "your-secret",
"action": "flatten",
"id": "{{timenow}}-flatten-all"
}Idempotency
TradingView retries webhooks. A unique id per alert prevents the same signal from placing twice. If you omit id, receivers fall back to a short time-window fingerprint — two legitimate alerts for the same symbol inside that window can collide.
Common rejection reasons
- Plain-text default alert messages instead of JSON
- Missing or wrong secret
- Strategy group with zero or multiple leaders
- Account locked by daily loss, trailing drawdown, or consistency
Related
Paste-ready JSON, then copy to every account
Create a webhook strategy in MimikTrader, drop the URL and JSON into your chart alerts, and route entries through your leader with brackets and per-account risk enforced.
Start Free Trial