TradingView Ultimate icon

TradingView Ultimate

Ultimate TradingView integration with AI analysis, real-time data, and comprehensive market insights

Alert → Create

AI-generated

Summary

Create a TradingView alert for a specified trading symbol with customizable condition, webhook URL, and message, optionally leveraging AI analysis, caching, and storage features.

Inputs

  • Authentication (required) — Select the authentication method: Email & Password or OAuth2 to authorize the request.
  • Symbol (required) — The trading symbol (e.g., BTCUSD) for which to create the alert.
  • Condition (required) — The condition that triggers the alert.
  • Webhook URL — Optional webhook URL that TradingView will call when the alert is triggered.
  • Message — Optional message content sent with the alert.
  • Options — Collection of optional features including 'Use AI Analysis' (enables AI-powered analysis), 'Store in Database' (saves alert results to MongoDB), 'Cache Results' (caches results in Redis), 'Cache TTL (seconds)' for cache duration, and connection strings for MongoDB and Redis when applicable.

Output shape

a single JSON object representing the created alert details returned from TradingView's API

The output object may include AI analysis results if enabled and is cached or stored according to options. Errors during processing may appear in the output JSON if continueOnFail is enabled.

Examples

Example 1: Create an alert on symbol BTCUSD with a price crossing condition and a webhook URL, using AI analysis and caching enabled, caching results with a TTL of 3600 seconds, but without storing results to the database.

Authentication: Email & Password; Symbol: BTCUSD; Condition: price crossing; Webhook URL: specified; Message: optional; Options: useAI=true, cacheResults=true, cacheTtl=3600, storeInDb=false

Discussion