Generate daily stock buy/sell signals using technical indicators and Google Sheets
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls alphavantage.co over HTTP.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- Define Stock List (Code): runs custom JavaScript code
- Send Error Alert (Gmail): uses Gmail
- Loop Through Stocks (Loop Over Items (Split in Batches)): loops over the items in batches
- Fetch Historical Prices (Alpha Vantage) (HTTP Request): calls alphavantage.co
- Prepare Price Series (Code): runs custom JavaScript code
- Check Price Data Exists (If): checks a condition and branches into true / false
- Calculate RSI, MA & MACD (Code): runs custom JavaScript code
- Store Indicator Signals in Google Sheets (Google Sheets): append or update
Services it uses
Other Google Sheets + Gmail templates (2,102)
HTTP calls to: alphavantage.co
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Error Trigger
n8n-nodes-base.errorTrigger - Gmail
n8n-nodes-base.gmail
From the author
📊 Description This automation calculates commonly used technical indicators for selected stocks and presents the results in a simple, structured dashboard. It removes the need for manual chart analysis by automatically fetching price data, calculating…