Automated stock technical analysis with xAI Grok & multi-channel notifications
Go to WorkflowDescription
Who is this for?
This workflow is designed for stock traders, financial analysts, investment enthusiasts, and anyone interested in automated stock market analysis. It's particularly useful for those who want to make data-driven trading decisions based on technical indicators without spending hours manually analyzing charts and data.
Who is this for?
This workflow is designed for:
Stock traders** who want automated technical analysis
Investment enthusiasts** seeking data-driven insights
Financial analysts** who need daily market summaries
Portfolio managers** tracking multiple stocks
Anyone interested** in algorithmic trading signals
What this Workflow Does / Key Features
Automatically triggers daily at 9 PM to analyze stock market data
Checks if the market is open before proceeding with analysis
Fetches historical price data for major tech stocks (GOOGL, NVDA, META, AMZN, TSLA, MSFT)
Calculates technical indicators:
RSI (Relative Strength Index) to identify overbought/oversold conditions
MACD (Moving Average Convergence Divergence) to identify trend changes
Generates Buy/Sell/Hold signals based on technical indicators
Uses AI (xAI's Grok model) to analyze and interpret the technical data
Distributes analysis results through multiple channels:
Email via Gmail
Personal Telegram chat
Telegram channel
WhatsApp via Rapiwa
Google Sheets for historical tracking
Fetches market news via RSS feed to enhance analysis
Requirements
Alpaca API credentials (for market data)
xAI API credentials (for AI analysis)
Gmail OAuth2 credentials (for email notifications)
Telegram Bot API credentials (for Telegram notifications)
Rapiwa API credentials (for WhatsApp notifications)
Google Sheets OAuth2 credentials (for data storage)
How to Use — step-by-step Setup
1. Configure Credentials
Alpaca API**: Add your Alpaca API credentials to n8n (named "Custom Auth account" in the example)
xAI API**: Add your xAI API credentials to n8n (named "xAI account" in the example)
Gmail OAuth2**: Set up Gmail OAuth2 credentials (named "Gmail account" in the example)
Telegram Bot API**: Configure Telegram Bot API credentials (named "Telegram account" in the example)
Rapiwa API**: Add Rapiwa API credentials (named "Rapiwa account 2" in the example)
Google Sheets OAuth2**: Set up Google Sheets OAuth2 credentials (named "Google Sheets" in the example)
2. Configure Stock Symbols
In the "Currency/Symble List" node, modify the JSON to include your preferred stock symbols
Default symbols are: "GOOGL, NVDA, META, AMZN, TSLA, MSFT"
Useful Links
n8n Documentation**: docs
Alpaca API Documentation**: docs
xAI API Documentation**: docs)
Telegram Bot API**: [docs
Technical Analysis Concepts**: docs
Support & Help
WhatsApp**: Chat on WhatsApp
Discord**: SpaGreen Community
Facebook Group**: SpaGreen Support
Website**: https://spagreen.net
Developer Portfolio**: Codecanyon SpaGreen