πŸ“ˆ Generate stock trading signals with Gemini 2.5 Pro & TwelveData via Telegram Bot

⚑ 479 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

Purpose and Audience

This n8n workflow template creates an intelligent stock technical analysis system that delivers professional-grade trading signals directly to your Telegram. Designed for retail traders, investors, and financial professionals who want to combine technical analysis with AI-powered insights for better market timing decisions.

Who Is It For

How It Works

The workflow operates as a comprehensive technical analysis engine:

  1. Data Collection: Fetches real-time stock prices and 90-day historical data from TwelveData API
  2. Technical Calculation: Computes key indicators including EMAs, RSI, ATR, and support/resistance levels
  3. AI Analysis: Uses Google Gemini 2.5 Pro to analyze confluence of indicators and generate single, high-probability signals
  4. Signal Generation: Produces clear BUY/SELL/NEUTRAL recommendations with specific entry, stop-loss, and take-profit levels
  5. Delivery: Sends formatted analysis and interactive charts via Telegram bot
  6. Risk Management: Includes built-in risk parameters and confidence scoring

Setup Requirements

  1. Create Telegram bot via BotFather
  2. Set up Google Gemini credentials
  3. Configure additional nodes as you see in the sticky notes
  4. Deploy and test with stock symbols (e.g., β€œAAPL”, β€œTSLA”)

Note: Complete setup guide is provided with the workflow file.

Technical Indicators Used in Strategy

Core Indicators (1-Day Timeframe):

  1. EMA 50 & EMA 200: Trend direction and momentum confirmation
  2. RSI (14-period): Momentum oscillator for overbought/oversold conditions
  3. ATR (14-period): Volatility measurement for risk sizing
  4. Support/Resistance: Dynamic levels calculated from 90-day price history.
  5. Fibonacci Retracements: Additional confluence levels.

Important Disclaimers

Key Features

Use Case Examples

  1. Pre-market Analysis: Send β€œAAPL” stock ticker as a message to your telegram bot and get comprehensive technical analysis with 1 Day candlesticks chart
  2. Swing Trading: Use signals to time entries on already-researched stocks
  3. Portfolio Review: Analyze multiple positions for exit timing
  4. Educational Tool: Learn technical analysis through AI explanations

This template transforms complex technical analysis into accessible, actionable trading insights while maintaining professional risk management standards.

πŸ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, Simple Memory, Structured Output Parser

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup