πΊ TradingView Integration
Connect TradingView alerts to Secure Algo for automated MT5 trading.
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β TradingView ββββββΆβ Webhook ββββββΆβ Secure Algo ββββββΆβ MT5 β β Alert β β (HTTPS) β β Server β β Terminal β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
Requirements
Webhooks require a paid TradingView plan (Pro, Pro+, or Premium). Free plan does NOT support webhooks.
π Webhook URL
Your Secure Algo webhook endpoint:
https://api.securealgo.in/api/webhook/tradingviewπ Quick Setup Steps
1
Get Your API Key
Login to Secure Algo β Dashboard β TradingView Bridge β Copy your API Key
2
Create TradingView Alert
Open any chart in TradingView β Press Alt + A or click Alert icon β Set your alert conditions
3
Configure Alert Message
In the Message tab, paste your JSON with symbol, action, volume, and api_key
4
Add Webhook URL
Go to Notifications tab β Enable Webhook URL β Paste the webhook URL
5
Create Alert
Click Create to save the alert
π JSON Message Format
Basic Format
{
"symbol": "EURUSD",
"action": "BUY",
"volume": 0.01,
"api_key": "your_api_key"
}With Stop Loss & Take Profit
{
"symbol": "EURUSD",
"action": "BUY",
"volume": 0.01,
"stop_loss": 1.0800,
"take_profit": 1.0900,
"api_key": "your_api_key"
}π Supported Actions
| Action | Description |
|---|---|
| BUY | Open long position |
| SELL | Open short position |
| CLOSE | Close existing position |
π§ TradingView Variables
Use TradingView placeholders for dynamic values:
| Variable | Description | Example |
|---|---|---|
| {{ticker}} | Symbol name | EURUSD |
| {{close}} | Current close price | 1.0850 |
| {{time}} | Alert time | 2024-01-15T10:30:00Z |
| {{exchange}} | Exchange name | OANDA |
Example with Variables
{
"symbol": "{{ticker}}",
"action": "BUY",
"volume": 0.01,
"price": {{close}},
"api_key": "your_api_key"
}