Webhook Alert Syntax & Parameters
Comprehensive guide to sending TradingView Pine Script alerts to MetaTrader 5 with TradeLynk. Supports both modern JSON and PineConnector text syntax.
Interactive Alert Payload Generator
Customize values below to generate your ready-to-copy TradingView webhook payload.
{
"key": "YOUR_SECRET_KEY",
"action": "buy",
"symbol": "EURUSD",
"risk": 1,
"sl": 25,
"tp": 50,
"be": 15,
"comment": "TrendBreakout"
}Webhook Parameters Reference
All parameters supported in TradeLynk JSON and text webhooks.
Pine Script Integration Examples
Easily attach TradeLynk webhook alerts to strategies or indicators in TradingView.
//@version=5
strategy("TradeLynk EMA Breakout", overlay=true)
fastEMA = ta.ema(close, 9)
slowEMA = ta.ema(close, 21)
longSignal = ta.crossover(fastEMA, slowEMA)
shortSignal = ta.crossunder(fastEMA, slowEMA)
if (longSignal)
strategy.entry("Long", strategy.long, alert_message='{
"key": "your-tradelynk-secret-key",
"action": "buy",
"symbol": syminfo.ticker,
"risk": 1.0,
"sl": 25,
"tp": 50,
"be": 15
}')
if (shortSignal)
strategy.entry("Short", strategy.short, alert_message='{
"key": "your-tradelynk-secret-key",
"action": "sell",
"symbol": syminfo.ticker,
"risk": 1.0,
"sl": 25,
"tp": 50,
"be": 15
}')Common MT5 Execution Errors & Troubleshooting
If an order fails to execute in your MT5 Experts tab, here is how to resolve it immediately.
Cause: Broker requoted price during high volatility.
Solution: Increase slippage tolerance in your EA settings or use market execution.
Cause: Pending order price is too close to current bid/ask.
Solution: Check broker minimum freeze levels and stops distance.
Cause: Stop Loss or Take Profit is inside broker's minimum stop level.
Solution: Ensure SL distance is at least 5-10 pips above broker minimum spread.
Cause: Algo trading is disabled or broker closed market.
Solution: Verify 'Algo Trading' button is enabled in MT5 toolbar and market is open.
Cause: Not enough free margin to open requested lot size.
Solution: Use dynamic risk % sizing or reduce static lot size.
Need Help with Custom Pine Script Syntax?
Our engineering team can assist you in converting complex indicator alerts into TradeLynk webhooks.