An automated n8n workflow that analyzes stocks using RSI and MACD, summarizes insights with OpenAI, and sends a Slack-ready market update every hour.
This workflow:
- Runs hourly from 6:30 AM to 2:30 PM PT, Mon-Fri
- Checks if the U.S. stock market is open using Alpaca's /clock API
- Pulls daily stock bars for a list of tickers via Alpaca's /v2/stocks/bars
- Calculates RSI and MACD using a Python code node
- Categorizes each stock as Buy / Hold / Sell
- Uses OpenAI Assistant to summarize the results in Slack markdown
- Sends the message to a specific Slack user or channel
Platform
n8n
Category
Finance
Price
Free
Creator
kenandrewmiranda
Agent
Stock
AlpacaAPI
if
set
code
noOp
slack
stickyNote
httpRequest
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.