πŸ“Ί 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

ActionDescription
BUYOpen long position
SELLOpen short position
CLOSEClose existing position

πŸ”§ TradingView Variables

Use TradingView placeholders for dynamic values:

VariableDescriptionExample
{{ticker}}Symbol nameEURUSD
{{close}}Current close price1.0850
{{time}}Alert time2024-01-15T10:30:00Z
{{exchange}}Exchange nameOANDA

Example with Variables

{
  "symbol": "{{ticker}}",
  "action": "BUY",
  "volume": 0.01,
  "price": {{close}},
  "api_key": "your_api_key"
}

πŸ“š Related Guides