Stock market technical analysis alerts with Alpha Vantage & Discord
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on a schedule (every week at 17:00). Along the way it connects Postgres. It also calls alphavantage.co and discord.com over HTTP.
How it runs
Trigger: On a schedule (every week at 17:00).
- Set - Ticker List (Edit Fields (Set)): sets 1 field: symbol
- Split - Tickers (Split Out): splits a list into separate items
- Fetch Daily History (HTTP Request): calls alphavantage.co
- Getting today's data (Code): runs custom JavaScript code
- Insert rows in a table (Postgres): uses Postgres
- Execute a SQL query (Postgres): run a query
- Compute 60/120 SMAs (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Set - Golden Cross Msg (Edit Fields (Set)): sets or maps fields
- If: checks a condition and branches into true / false
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: alphavantage.co, discord.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Postgres
n8n-nodes-base.postgres - If
n8n-nodes-base.if
From the author
This n8n template demonstrates how to automate stock market technical analysis to detect key trading signals and send real-time alerts to Discord. It's built to monitor for the Golden Cross (a bullish signal) and the Death Cross (a bearish signal) using…